I'm fairly new with PB/DLL 6 and I use DDT style programming. I'm getting pretty good at just using one window (dialog). Would now like to play with having more than one dialog in the program. Is there a sample program available that would show how to do this? Thank you very much for your help.
Announcement
Collapse
No announcement yet.
Multiple windows help
Collapse
X
-
Phil, have you examined the ADDRESS.BAS example? It is a good starting place.
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>Lance
mailto:[email protected]
-
-
Phil,
I have not played much with DDT lately, so I am a little rusty with its
specifications. I assume you want the child windows to be contained within
the parents frame.
I have not seen anybody do it yet with DDT. I have a mulitple
window app demo in the source code forum, it's about 10-12 months old.
All though it is SDK style, it could be converted to DDT easily. Note that
it does not use the MDI class spec.
The demo contains code to manage 4 child windows, i.e. active/deactive caption ,
and custom tiling. You can +/- the number of child windows you want to create.
HTH
Regards, Jules
Comment
-
-
Lance,
I have looked at the address.bas example, and I have a two questions:
Is the 'key' to the multiple windows the %DS_MODALFRAME style and 'how' equivalent is the %WS_DLGFRAME style?
And, Is %DS_CONTROL only to be used for MODELESS dialogs?
Also, it would be very helpful if the address.bas example included a file that had at least three dummy records.
Joe Murphy
------------------
Comment
-
-
%DS_DLGFRAME dialogs cannot have a caption bar, so they are of slightly more limited use for main application windows as compared to %DS_MODALFRAME.
%DS_CONTROL make a dialog act like a child control of a the parent dialog... tyically this style is used to allow a child dialog to "merge" into a parent dialog so that the TAB key can be used move seamlessly between controls on the child and the parent dialog. The parent must have the extended style %WS_EX_CONTROLPARENT.
These two "control" styles are used to give the correct keyboard control to a tabbed dialog (which consists of a parent dialog containing a tab control, plus a bunch of modeless dialogs - one for each "page" of the tab control).
See the WIN32.HLP file for more information on the effects of dialog styles. If you have not done so, download the 8Mb WIN32.HLP file from ftp.powerbasic.com/pub/mstools/win32.hlp .
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>Lance
mailto:[email protected]
Comment
-
Comment