Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 30 OCT 1998 11:20:32AM Tony Hensby (Medicode) wrote:

Having a problem keeping an MDI child invisible.

Have two MDI children windows, I check for MDIACTIVE and set the active window VISIBLE property to 0 then either start the second window or make it visible if previously created.

The problem is that having swapped between the two windows a couple of times and even though I'm setting the VISIBLE property to 0 to hide the window the previously hidden window has a VISIBLE property of 1.

The two MDI child windows are 2 instances of the same window

Has anybody else had this problem if so how do I get around it

Tony Hensby (Medicode Ltd)


At 30 OCT 1998 12:02PM Greg James, ISIS, Inc. wrote:

Tony,

I think that when you set a form to MDI_Active it is made VISIBLE. You might be able to accomplish what you want to do by using the MDI_Active property.

Instead of setting the form that is the MDI_Active to VISIBLE=0, just set the form that you want to display to MDI_Active.

In my application, I load the MDI Child forms in the reverse order that I want them to appear in. So, in the create event of the frame I would use:

Set_Property('MDI_Frame' 'VISIBLE', 3)

Start_MDIChild('MDIChild_2', 'MDI_Frame')

Start_MDIChild('MDIChild_1', 'MDI_Frame')

I use buttons to set the MDI_Active property for the frame (you click on a button to display the window that you want). I have never had to use the VISIBLE property to allow navigation of the MDI child forms.

Good luck.

gjames@cyberhighway.net onmouseover=window.status=email greg james;return(true)"


At 30 OCT 1998 01:27PM Carl Pates Sprezzatura wrote:

Tony,

I haven't tested or encountered the problem you are seeing but could you set the SIZE property of the MDI to negative coordinates eg

-100 : @Fm : -100 : @Fm : 0 : @Fm : 0

cpates@sprezzatura.com

Sprezzatura Ltd

World Leaders in all things RevSoft


At 31 OCT 1998 12:08PM Don Bakke wrote:

Tony,

If they are two instances of the same window, I'm wondering if you are tracking the fully qualified ID's for each one correctly. Are you aware that multiple instanced windows will have a "*1", "*2", etc., after the name of the window to distinguish them from any others that are running?

dbakke@srpcs.com

SRP Computer Solutions

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a45f3bcdde23ed08852566ad00544712.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1