Hi Paolo

It sounds quite strange to me that a UNOControlDialog behaves as non-modal.


a hack iirc is to set the visible property to true
do not use execute
but loop over a global boolean to detect a stop set
do not forget a wait statement in the loop to allow other process to work :-)

the global idea (tested a long time ago)

public myContinue

myDialog.setVisible(true)
while myContinue
  wait(100)
wend
myDialog.setVisible(false)

somewhere else

sub myStopButton_click()
  myContinue = false
end sub

Feel free to ask, i may find some old code

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to