ev.Source.Windows(0).setPosSize(0, 0, aSize.Width, aSize.Height, com.sun.star.awt.PosSize.SIZE)
Sub WindowListener_windowClosing(ev)
' Close window using the window bar close button
' ev.Source.setVisible(FALSE)
' closed = TRUE
ev.source.dispose
End Sub
JeJe wrote:In Windowresized it needs to go back to windows(0) not windows(2)
JeJe wrote:For a non-modal dialog I found that putting dispose in the windowClosing worked - no need for the wait loop
dim windowIndex
Sub ResizableModalDialog
if instr(1, tools.Misc.GetProductName(),"Open") <> 1 then windowIndex = 2
...etc
ev.Source.Windows(windowIndex).setPosSize(0, 0, aSize.Width, aSize.Height, com.sun.star.awt.PosSize.SIZE)
windowIndex= oBaseDialog.AccessibleContext.getAccessibleChildCount
JeJe wrote:A better way to get the windows count is, before the inner dialog is added use:
windowIndex= oBaseDialog.AccessibleContext.getAccessibleChildCount
oDialog = CreateInnerModalDialog(oModalBaseDialog, sURL)
msgbox oModalBaseDialog.AccessibleContext.getAccessibleChildCount
Users browsing this forum: No registered users and 2 guests