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 13 MAR 2000 09:56:38AM Bob Silverstein wrote:

How do you get these to work?

I created the MDI frame with the menu. It calls a child which in turn calls other children. The children do not have any menus so the only menu around is on the frame. However, it does not work. That is, if I try to save a record, nothing happens. It will give me a new child or close the entire MDI frame.

How do I get the menu on the MDI frame to talk to the children? I have tried checking the MDI boxes in the menu builder but this does not work.

Any ideas?


At 13 MAR 2000 10:25AM Stephen S. Revelation wrote:

Bob,

If you are starting the MDI clildren from Start_MDIChild, make sure you are passing @MDIFRAME as the second parameter.

-Stephen


At 13 MAR 2000 12:34PM Don Bakke wrote:

Bob,

All events that are triggered by the MDIFrame need to be sent to the active MDIChild. For instance, the "Save" menu should have a QuickEvent that looks like this:

Send Message to: Control/Window - @MDIACTIVE

Message: WRITE

If you code your events then you will take a similar approach in your code as well. So for instance, @WINDOW will be the name of your MDIFrame and you would use the MDIACTIVE property to get the active MDIChild. Let's say you wanted a button/menu to clear the active MDIChild, the code would look like this:

MDIChild=Get_Property(@Window, "MDIACTIVE")

Send_Event(MDIChild, "CLEAR", No$, No$, No$)

dbakke@srpcs.com

SRP Computer Solutions


At 14 MAR 2000 08:21AM Bob Silverstein wrote:

Don and Stephen,

I got the menus to work properly. The trick is to define the quick event as a general quick event rather than accepting the default value.

The tile and cascade do not work with @mdiframe or any of the other values. Any ideas?


At 14 MAR 2000 10:14AM Don Bakke wrote:

Bob,

With CASCADE and TILE just use @WINDOW.

dbakke@srpcs.com

SRP Computer Solutions

View this thread on the forum...

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