0

I am working on an old CDialog based application which uses Codejock XTP. On this dialog, I have a separate TaskPanel on the right edge of the Dialog. (I can't post images yet, not enough reputation)

I want to provide a way for the user to be able to Detach/Attach the taskpanel from the dialog. So if the panel is detached, the user can move the main dialog and the now detached "Tasks" dialog individually (maybe on multiple monitors). If attached, the panel is part of the main dialog only.

There are a lot of controls on the panel which I want to try and separate. Most of the controls modify multiple controls which may or may not be part of the tasks panel (so assuming I create a new Dialog, may be part of any of the two dialogs).

What approach should I follow to separate and un-separate the panel? I think it is inevitable that I would have to create a new dialog for that separated panel. I need to consider that the controls may have changed values and states which I will need to keep in sync. Also, the current handlers for the controls might be referring to other controls, assuming they are on the same dialog. There are a lot of controls so changing this will require a lot of work.

Can anyone suggest any resources/samples or anything which may be helpful?

manimatters
  • 424
  • 3
  • 11
  • Is it a modal dialog? – snowdude Sep 08 '13 at 07:23
  • Yes, the original dialog is modal. I am not sure if the new detached dialog needs to be modal. – manimatters Sep 08 '13 at 15:21
  • Good luck. (More seriously I think you have a design problem here. Can you think of any mainstream programs that allow such a thing? On a technical level the modal dialog will intercept all messages so placing the control on another window will be hard.) – snowdude Sep 08 '13 at 21:04

0 Answers0