MDI Client window to start without title bar (OpenInsight Specific)
At 05 NOV 1998 11:00:06AM Nick Stevenson wrote:
I am trying to get an MDI Client window to start without displaying its title bar. The Client window is designed WITHOUT it, but when I start it using START_MDICHILD(), a title bar is automatically added. Anyone with ideas?
At 05 NOV 1998 11:16AM Don Bakke wrote:
Nick,
That's just the inherent nature of MDI Child windows. You may just want to launch a dialog box instead.
dbakke@srpcs.com
At 05 NOV 1998 01:16PM Greg James, ISIS, Inc. wrote:
Nick,
I don't know if this is what you want, but…..
If you set all menu items on the MDI Frame and the MDI Child forms to 'Hidden', you won't see the minimize/maximize/close buttons for the MDI Child; however, the frame title and frame minimize/maximize/close buttons remain visible.
We did this to give the MDI Frame and MDI Child forms the feel that they were a single, multi-page form. And, at the same time, we didn't want users to be able to close a single MDI child and leave other MDI child forms open.
gjames@cyberhighway.net onmouseover=window.status=email greg james;return(true)"
At 05 NOV 1998 04:43PM amcauley@sprezzatura.com onmouseover=window.status=why not click here to send me email?;return(true)" [url=http://www.sprezzatura.com" onMouseOver=window.status=Why not click here to visit our web site?';return(true)]Sprezzatura Ltd[/url] wrote:
Well what we do (and this is one of those cool things which we really must get round to doccing one of these days) is to start the MDI child Window with a negative Y coordinate, thus not allowing the user to get at the title bar.
Cool trick.
amcauley@sprezzatura.com
World Leaders in all things RevSoft
At 06 NOV 1998 08:51AM Oystein Reigem wrote:
Andrew,
Cool trick for sure, but what if some enterprising user sets up his Windows with a different caption font size or a wider border…
Sure you can have a safety margin but there's often precious little space in the frame client area so if you're like me and stuff your child windows to the gills you want to be precise with that positioning.
So instead of relying on fixed coordinates I'd rather find the caption height and border width first, and do some calculations to come up with the proper coordinates.
I guess there are Windows functions for getting this info, but here's a low-brow method that I think should work well:
Size=Get_Property( ChildWinId, "SIZE" ) /* X, Y, Width, Height */
ClientSize=Get_Property( ChildWinId, "CLIENTSIZE" ) /* Width, Height */
BorderWidth=int((Size - ClentSize) / 2)
TopClientOffset=Size - Size) - BorderWidth
X=-BorderWidth /* or something like that */
Y=-TopClientOffset /* or something like that */
- Oystein -