Hi,
How can I make a MDI-Child replaceable but with a fixed size?
I tried the orig_size but this property gives negative values in the height en width fields.
tnx
You could set the Frame Type (in Window Properties) to "Thin"
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
The Thin setting works in testrun.
But when i launch the window with start_mdichild() the Thin setting doesn't prevent the resizing
![]()
=== At 10 MAR 2005 04:51AM support@sprezzatura.com wrote: ===
Yes sorry I was up too early this morning and forgot that small detail. I'll have one of our UI experts post and slink back to my hole :)
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
Ed,
Regardless of the frame settings you choose for your child forms Windows always overrides them and uses a thick border. This is so that the child can within the MDI Client area and have the ability to be minimized, maximized, tiled, cascaded and so on.
There is a way that you can prevent normal windows resizing by using the WM_MINMAXINFO message but I haven't tested it on an MDI child window to see it's effects. It was covered as part of the RevConference presentation we did at New Orleans last year - If you're interested please drop us a line as it's not been published on our website yet.
World leaders in all things RevSoft
Grr…
This is so that the child can within the MDI Client area and have the ability to be minimized, maximized, tiled, cascaded and so on.
Should have read …
Regardless of the frame settings you choose for your child forms Windows always overrides them and uses a thick border. This is so that the child can play nicely within the MDI Client area and have the ability to be minimized, maximized, tiled, cascaded and so on.
Now.. where's that can of Mountain Dew …
World leaders in all things RevSoft
I put in the createvent of the window:
designstyle=@WINDOW-]ORIG_STRUCT$
@window-]style$=designstyle
this works….
Ed,
Good idea :) I remember trying this back in the days of OI16 when I needed something similar to simulate tabbed windows via an MDI frame, but this caused various problems.
I've actually just tried this again on OI7.1 and I get some strange behavior when trying to access the MDI menu and frame controls. It almost seems that the Child is behaving like a dialog box and blocking it's parent. There's also some frame redraw issues. Do you see this?
World leaders in all things RevSoft
Sprezz,
Nope, but i left the path of the style-override.
I now save the size during create in my own @CREATESIZE.
In the size event the width is reset to @CREATESIZE.
Actually i only want the width frozen, the height must be resizeable in some cases.
Thanks