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 28 SEP 2012 09:07:27AM Matthew Watson wrote:

I am having a hard time locking down my forms inside an MDI_FRAME.

While I am in the designer and you choose a frame of THIN or DIALOG it locks down the form so that you cannot resize it. (which I want).

Then when I go and save it and launch it inside the MDI_FRAME I can resize it all day no mater what type of frame I choose. There is no reason for the user to resize these forms.

What am I doing wrong?

I do allow the MDI_FRAME to be resizeable incase they want it to fill the screen to show more forms inside the MDI.

Also I have AREV32 inside the MDI and if they maximize it and then close it when they are done. all the forms that were already open become max. I do not want this. I have max button disabled. How can I stop this as well?

Thanks,

Matthew Watson, FLMI, FFSI, AAPA, ARA


At 29 SEP 2012 11:49AM Carl Pates wrote:

Matthew,

The frame style of an MID child window is overridden by Windows at runtime. The best way to achieve what you want is to set the TRACKINGSIZE size property like so:


fixTrackingSize:

   * // Assume that we want to keep the size of the window as defined, and

   * // do not allow it to be changed.

   

   frmSize =        get_Property( @window, "SIZE" )

   

   trkSize =        field( frmSize, @fm, 3, 2 )

   trkSize := @fm : trkSize

   

   call set_Property( @window, "TRACKINGSIZE", trkSize )

   

return

Carl Pates

Sprezzatura

The Sprezzatura Blog

World leaders in all things RevSoft


At 01 OCT 2012 08:19AM Matthew Watson wrote:

Thanks Carl I will give that a try.

Matthew Watson, FLMI, FFSI, AAPA, ARA


At 01 OCT 2012 09:21AM Matthew Watson wrote:

The codes works good Carl with one problem.

If I have AREV32 launched before any other form inside the frame as a child and have it maximized. Then if I open up any other form it will max out without keeping the size that I want it to have. But if I have a form open before AREV32 then max AREV32 the forms stay there normal size if called again and removes AREV32s maximizing.

Thanks,

Matthew Watson, FLMI, FFSI, AAPA, ARA


At 01 OCT 2012 09:59AM Carl Pates wrote:

Matthew,

There's only so much you can do with sizing MDI children because Windows exterts a lot of control over the child behavior.

The only sugesstion I can make is to try and maximize/restore the windows on their ACTIVATED/INACTIVATED events - if you've got an Arev32 window in there then try and detect this in your other child windows ACTAVTED/INACTIVATED and react accordingly.

Carl Pates

Sprezzatura

The Sprezzatura Blog

World leaders in all things RevSoft

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/92e9e38f6e17b6666edd75efb.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1