Thomas ,

oeps.... forgot "getwindowopen" is a  private function

please :

function GetWindowOpen(sTitle as String) as Object
   oToolkit = Stardesktop.ActiveFrame.ContainerWindow.Toolkit
   lCount = oToolkit.TopWindowCount
for k=0 to lCount -1
 oWin = oToolkit.getTopWindow(k)
 if HasUnoInterfaces(oWin, "com.sun.star.awt.XDialog") then
   if left(oWin.Title, len(sTitle)) = sTitle then '
     GetWindowOpen = oWin
     exit function
     endif
   endif
 next k
end function

Fernand Vanrie schrieb:
Thomas,

Do not look for a "frame" your dialog is opened in a "window"

oWin = GetWindowOpen("Dialog1")

this gives you yes or no a a window object   containing "Dialog1"

hope it helps

not really ...

Where is this function or methode "GetWindowOpen" defined? I searched
inside the IDL but cannot find it.
Just a call "getWindowOpen("xxx")" will produce an error - methode not
find...
believe, there is something missing. But what?

Regards
Thomas




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to