Dialog/Window merge
Posted: Thu Dec 27, 2007 10:53 pm
OK ... here is probably a basic question but I'm suffering a very stuffy head today ...
I have some controls that work OK in a window but not a dialog. I have some controls that work OK in a dialog, but not a window. I need to use both concurrently.
This is a non-MDI application !
I tried opening the window and dialog together. A button bar (OK on either ) and calendar control (which won't work on a dialog ) exist on the window. Thats no problem. Now I want to also use the dialog. It contains edit fields, buttons, and a TSBrowse ( which doesn't want to work on a window. The problem is getting the dialog into a decent position. I also need to then be able to click on window or dialog objects at any time.
I tried:
DEFINE WINDOW ...
DEFINE DIALOG ...
ACTIVATE DIALOG NOWAIT
ACTIVATE WINDOW
It shows, but no matter what I do, I'm not successful getting the dialog to get into a position other then the upper left corner which overshadows the window controls.
So, anyone have some sample code that shows bringing up a dialog in a window, and using it cleanly, with repositioning ?
Thanks.
I have some controls that work OK in a window but not a dialog. I have some controls that work OK in a dialog, but not a window. I need to use both concurrently.
This is a non-MDI application !
I tried opening the window and dialog together. A button bar (OK on either ) and calendar control (which won't work on a dialog ) exist on the window. Thats no problem. Now I want to also use the dialog. It contains edit fields, buttons, and a TSBrowse ( which doesn't want to work on a window. The problem is getting the dialog into a decent position. I also need to then be able to click on window or dialog objects at any time.
I tried:
DEFINE WINDOW ...
DEFINE DIALOG ...
ACTIVATE DIALOG NOWAIT
ACTIVATE WINDOW
It shows, but no matter what I do, I'm not successful getting the dialog to get into a position other then the upper left corner which overshadows the window controls.
So, anyone have some sample code that shows bringing up a dialog in a window, and using it cleanly, with repositioning ?
Thanks.