Author |
Topic: Creating a child window (Read 1049 times) |
|
g3nrw
Junior Member
member is offline


Posts: 74
|
 |
Re: Creating a child window
« Reply #4 on: Jul 28th, 2014, 7:05pm » |
|
OK, back to basics.
Using DLGBASIC as a model, I have constructed a dialog box containing around 35 controls. Thanks to your ongoing patience and help, this is working very well.
However, the dialog box is now becoming overcrowded, so there is a need to create dialog box #2 to display and control additional information that is only required occasionally. To invoke dialog box #2, there will be a pushbutton on the parent box.
That's "all" there is to it really. (Well, almost all. I want to display a histogram in box #2, but that will be another story).
-- Ian
|
|
Logged
|
|
|
|
rtr
Guest
|
 |
Re: Creating a child window
« Reply #5 on: Jul 28th, 2014, 8:18pm » |
|
on Jul 28th, 2014, 7:05pm, g3nrw wrote:| That's "all" there is to it really. |
|
I'm rather confused. The thread subject is 'Creating a child window' and the code snippets you have listed have confirmed that by containing a call to FN_createwindow.
Yet now you seem to be saying that what you want to do is to open a second dialogue box - which you already know how to do because it's just the same as opening the first one! So where does the child window come into it?
Opening another dialogue box as a result of clicking a button is a common requirement, for example exactly that happens in the BB4W IDE (or the LBB IDE) if you click on the 'Change icon' button in the 'Compile' dialogue.
'Cascaded' dialogues do not (conventionally) have a parent-child relationship - not least because you don't want the second dialogue to be constrained to be within the client area of the first. Rather, you would normally make the second dialogue a 'modal' popup window - that's what happens in the case of the 'Change icon' dialogue as you can see for yourself.
Richard.
|
|
Logged
|
|
|
|
g3nrw
Junior Member
member is offline


Posts: 74
|
 |
Re: Creating a child window
« Reply #6 on: Jul 29th, 2014, 08:32am » |
|
on Jul 28th, 2014, 8:18pm, Richard Russell wrote:The thread subject is 'Creating a child window' |
|
I included "child" in the Subject because I thought I needed a child...
Quote:Yet now you seem to be saying that what you want to do is to open a second dialogue box |
|
That's it exactly. I have now modified my DLGDEMO program to do just that, and it does what I expected.
Case closed. Thanks again Richard.
-- Ian
|
|
Logged
|
|
|
|
|