Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 10 MAR 2005 02:41:19AM Ed Keeman wrote:

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


At 10 MAR 2005 03:16AM support@sprezzatura.com wrote:

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


At 10 MAR 2005 03:40AM Ed Keeman wrote:

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


At 10 MAR 2005 04:58AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

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.

The Sprezzatura Group

World leaders in all things RevSoft


At 10 MAR 2005 05:00AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

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 …

The Sprezzatura Group

World leaders in all things RevSoft


At 10 MAR 2005 06:18AM Ed Keeman wrote:

I put in the createvent of the window:

designstyle=@WINDOW-]ORIG_STRUCT$

@window-]style$=designstyle

this works….


At 10 MAR 2005 09:07AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

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?

The Sprezzatura Group

World leaders in all things RevSoft


At 10 MAR 2005 10:58AM Ed Keeman wrote:

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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/923895354432bf5a85256fc0002a3c61.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1