Listing / couting MDI child windows (None Specified)
At 09 JUL 1999 03:36:05AM Stefano Cavaglieri wrote:
Does anyone out there know if there's an easy way to know how many and/or what MDI child windows are currently open within an MDI frame ? My problem is to make sure that one specific window (with FOCUS) is the only one running before launching a new process.
Greatful for any suggestions
At 09 JUL 1999 04:21AM amcauley@sprezzatura.com [url=http://www.sprezzatura.com]Sprezzatura Ltd[/url] wrote:
[notag]you might want to try UTILITY OBJECTLIST
[<A HREF="mailto:amcauley@sprezzatura.com" 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>Why not check out some of Sprezzatura's sample apps on-line now? <OPTION VALUE="http://www.sprezzatura.com/Sample.htm">Sample Applications <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:support@sprezzatura.com">Send mail to support at Sprezzatura <OPTION VALUE="mailto:sales@sprezzatura.com">Send mail to sales at Sprezzatura </SELECT> </FORM>][/notag] </QUOTE> —- === At 09 JUL 1999 02:55PM Scotty Hunt wrote: === <QUOTE>Try this… LOCATE_PARENT=the parent window you are trying to find MDIs for' CHILDS=' WINDOWS=UTILITY('OBJECTLIST','','WINDOW') CONVERT @FM TO @RM IN WINDOWS PARENTS=GET_PROPERTY(WINDOWS,'PARENT') WINDOW_POS=0 PARENT_POS=0 LOOP REMOVE WINDOW FROM WINDOWS AT WINDOW_POS SETTING MORE_WINDOWS REMOVE PARENT FROM PARENTS AT PARENT_POS SETTING MORE_PARENTS IF PARENT EQ LOCATE_PARENT THEN CHILDS=WINDOW END WHILE MORE_WINDOWS OR MORE_PARENTS REPEAT now the CHILDS variable holds a fieldmark delimited string of the MDI childs for the LOCATE_PARENT window. </QUOTE> —- === At 14 JUL 1999 11:21AM Carl Pates - Sprezzatura Group wrote: === <QUOTE>Scotty, All MDI Children have as their PARENT property the MDI Frame's MDICLIENT object, so to use OBJECTLIST to do the work… MDIKids=Utility( "OBJECTLIST", "MYWIN.MDICLIENT", "WINDOW" ) Regards, Carl Pates Sprezzatura Group </QUOTE> —- === At 15 JUL 1999 10:53PM ScottyHunt wrote: === <QUOTE>thanks thanks thanks… its so neat to find out new stuff. that utility routine is very mysterious to me still. </QUOTE> View this thread on the Works forum...