OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Non modal dialogs in OO : a very simple solution

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
dysmas
Power User
Power User


Joined: 14 Apr 2007
Posts: 59
Location: Grenoble, France

PostPosted: Tue Apr 24, 2007 2:47 am    Post subject: Non modal dialogs in OO : a very simple solution Reply with quote

If anyone is interested in non-modal dialogs (a dialog which lets you interact with your document, select text, modify anything) see the answer to that question in the thread :

http://www.oooforum.org/forum/viewtopic.phtml?t=14095

The main point is :

Here is the code necessary to display a non-modal dialog Dialog1 of the library "modaless", provided the Dialog1 has a toggle button which name is CloseButton, to close the dialog.

=========================

Sub dialog_modal()

dim dlg as object
dim n as integer

dlg = loadDialog ("modaless","Dialog1")
dlg.visible = true

do
n = dlg.model.CloseButton.State
if n = 1 then exit do
wait (100)
loop

exit sub


That's all guys. Enjoy.
_________________
Dysmas
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group