BBC BASIC for Windows
Programming >> User Interface >> Docking a dialogue box in an MDI interface http://bb4w.conforums.com/index.cgi?board=ui&action=display&num=1403206936 Docking a dialogue box in an MDI interface
Post by JB91 on Jun 19th, 2014, 7:42pm
Hello,
Is it possible to dock a dialogue box into a window of a MDI interface?
Thanks , Josh
Re: Docking a dialogue box in an MDI interface
Post by rtr on Jun 21st, 2014, 06:30am
Is it possible to dock a dialogue box into a window of a MDI interface?
My earlier reply seems to have evaporated, so, once again - I don't think I have ever tried it but I can't think of any reason why it shouldn't work. Does it seem to?
Richard.
Re: Docking a dialogue box in an MDI interface
Post by JB91 on Jun 21st, 2014, 07:19am
I can't seem to get it to work. The docked dialogue box refuses any interaction and the title bar of the window disappears. Re: Docking a dialogue box in an MDI interface
Post by rtr on Jun 21st, 2014, 3:49pm
I can't seem to get it to work. The docked dialogue box refuses any interaction and the title bar of the window disappears.
The title bar disappearing will probably be just an inappropriate style value (make sure that WS_CAPTION is set).
The lack of interaction may mean that the WndProc in MDILIB.BBC needs to be amended to forward the appropriate message(s) to the parent window. As that is assembler code it's a non-trivial modification.
Richard.
Re: Docking a dialogue box in an MDI interface
Post by JB91 on Jun 22nd, 2014, 2:07pm
I can't seem to get that to work either - I probably should learn some more assembly language! Re: Docking a dialogue box in an MDI interface
Post by rtr on Jun 23rd, 2014, 7:57pm
I can't seem to get that to work either - I probably should learn some more assembly language!
Microsoft consider the MDI to be largely obsolete - they no longer use it in any of their products AFAIK. Although it's still notionally supported by the Win32 API, you may have more success by avoiding the use of the MDI and doing things another way.
Richard.
Re: Docking a dialogue box in an MDI interface
Post by JB91 on Jun 26th, 2014, 3:51pm
Thank you for your advice, Richard. I shall try to use a different method instead of the MDI.
I realise now that the user most likely want to resize the dialogue box, which will probably require repositioning its contents - a task that sounds quite tedious.