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 23 SEP 1999 09:07:52PM Jo Peoples wrote:

When I open an MDI Child window in a parent window, the focus remains with the parent until I click in the child. However, when I click back in the parent the focus does NOT return to the parent. This is awkward, since I may want to return to the menu belonging to the parent without closing the current child.

Also how do I make the parent window open maximised? (I know this has to be simple, but just can't find the details in the manuals. Can it be specified as part of the SIZE property?).

Any solutions?


At 23 SEP 1999 10:49PM Richard Hunt wrote:

Well i can answer the "maximize" qusetion.

1) Unclick the visible box for the window. Yes make it invisible.

2) In the "create" event for the window, use the "visible" property to "maximize" (value 3 maximizes) the window.

note: RESULT=SET_PROPERTY(CTRLENTID,'VISIBLE',3)

note: This will automatically make your window visible. Setting your window to "not" visible makes the window become visible maximized.

For the other question… I do a "dialog box". it seems to eliminate what i think you are explaining.


At 24 SEP 1999 04:53AM Oystein Reigem wrote:

Jo,

When I open an MDI Child window in a parent window, the focus remains with the parent until I click in the child.

I'm not an expert on MDI, so I can't tell you if this is normal or not. I did some programming once but it stranded on the island of Not Enough Time.

But can't you just set the focus programmatically after you open it? I guess you have two alternatives:

(1) Either do it from the parent…

What have you got that opens the child window? If it is a user event it should be easy to add the necessary code to set focus to the child (OldVal=Set_Property( "SYSTEM", "FOCUS", ChildWindowId : "." : CtrlName )). If it's a quickevent you could add a user event that first does a Forward_Event (so that the quickevent is done first) and then sets the focus.

(2) …or from the child window.

Make a child window CREATE handler that sets the focus.

- Oystein


At 24 SEP 1999 08:10AM Jo Peoples wrote:

Oystein,

'What have you got that opens the child window?'

I'm calling a child window from the menu in the MDI window. My problem is not that the focus does not move to the child window (this is a normal case of clicking in the window where you want the focus to be), but that it does not move back. When the child is active, the menu of the parent becomes that of the child, which means that all the other windows that can be called from the parent can't be accessed. So.. simply click in the parent and the focus will return to it. Except that doesn't work. So I have to close the child window if I want to get back to the main menu and that can be very inefficient if you have a number of child windows open.

Do you see my problem? Is there a solution?

Jo


At 24 SEP 1999 08:21AM [email protected] [url=http://www.sprezzatura.com]Sprezzatura Ltd[/url] wrote:

[notag]Jo

Don't have a menu on the child window. Default behaviour is for the child menu to become the parent menu so simply delete it from the child and put the options on the parent frame.

[<A HREF="mailto:[email protected]" onMouseOver="window.status='Why not click here to send me Email?';return(true)">Andrew McAuley</A>]

[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Why not click here to visit our web site?';return(true)">Sprezzatura Group</A>]

[<I>World Leaders in all things RevSoft</I>]

[<img src="http://www.sprezzatura.com/zz.gif">]

[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0";}end hiding from non-JS browsers –></script>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator" <SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"> <OPTION>Pull down this menu to choose whereabouts on Sprezz site to go <OPTION VALUE="http://www.sprezzatura.com">Home Page <OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New <OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL <OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST <OPTION VALUE="mailto:[email protected]">Send mail to support at Sprezzatura <OPTION VALUE="mailto:[email protected]">Send mail to sales at Sprezzatura </SELECT> </FORM>] [/notag] </QUOTE> —- === At 27 SEP 1999 08:27AM Oystein Reigem wrote: === <QUOTE>Jo, My problem is not that the focus does not move to the child window … Sorry. Misread your posting. Thought you presented this as a problem too. but that it does not move back This second problem I had no answer for. Was there any help in Andrew's suggestion? Might mean you have to change the (MDI frame) menu according to which child window is active. If you think such an approach could work try to search for postings on changing menus programmatically. - Oystein - </QUOTE> View this thread on the Works forum...

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