-
MDI Resizing > |
As per i've tested, tried methods, trial'd n error'd, googled the whole story, but nothing!
Here's the gist quickly before I nip out...
MDI APP > Contains Subapp for the frames containing the Scintilla object. Upon resizing the child frame, I set in those events for the scintilla object to always resize to the height and width of the frame.
It does this, however, it is taking the height and width of the parent app instead.
I need to resize the object for the child frame to be the parent. So I tried the same procedure in a seperate app and chuck that in the subapp. In a seperate app you would think the object's parent frame would be the main app, but that just doesn't correspond at all.
I'll take screenies when I get back tonight to show what I mean, don't have time right now but hopefully someone gets my gist!
Ciao! :cool:
-
Re: MDI Resizing > |
Ok Here we go...
Here's the app setup...
[img:center]http://ebitnetworks.co.uk/danny/scr1.jpg[/img]
Here is the frame maximized in the main app (No Scrollbars showing)
[img:center]http://ebitnetworks.co.uk/danny/scr2.jpg[/img]
Here is the main app maximized...(Shows Scrollbars)
[img:center]http://ebitnetworks.co.uk/danny/scr3.jpg[/img]
So my guessing is (because I can't debug by getting the width and height of the scintilla object at runtime, is that the scintilla object is resizing to the faprication app window size rather than the child window size!
-
Re: MDI Resizing > |
-
Re: MDI Resizing > |
Would you like to share your solution?
-
Re: MDI Resizing > |
I was going to do just that but had to dash off...
Rather simple really, just set the width and height of the Scintilla object to the WinX and WinY using the Windows Control!
There are quite a few options in the MDI and frame settings that you have to adjust to cater for it, but once you've messed about with a few of the options it's relatively easy.
May do an article on it for future reference. Screeny attached.
Thanks to Looki for the Scintilla Object and waking me up in chat this morning! :cool:
http://www.ebitnetworks.co.uk/danny/scr4.jpg