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

how to change dialog box control visibility?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
vedervax
Newbie
Newbie


Joined: 13 Apr 2010
Posts: 1

PostPosted: Tue Apr 13, 2010 2:36 am    Post subject: how to change dialog box control visibility? Reply with quote

hello Smile

I'm new to ooo basic , but i've done some vba (excel) programming. anyway, i am developing a questionnaire tool and i need to change visibility of dialog box controls. how can i do this? Please, help ...

this is the code i'm using to "call" my dialog box:

dim oLibContainer As Object, oLib As Object
dim oInputStreamProvider As Object
dim oDialog As Object
dim Const sLibName = "Standard"
dim Const sDialogName = "Dialog1"
REM library container
oLibContainer = DialogLibraries
REM load the library
oLibContainer.loadLibrary( sLibName )
REM get library
oLib = oLibContainer.getByName( sLibName )
REM get input stream provider
oInputStreamProvider = oLib.getByName( sDialogName )
REM create dialog control
oDialog = CreateUnoDialog( oInputStreamProvider )
REM: Here I need to change controls visibility
REM show the dialog
oDialog.execute()
Back to top
View user's profile Send private message
ottoshmidt1
Power User
Power User


Joined: 15 May 2009
Posts: 69
Location: Tbilisi, Georgia

PostPosted: Thu May 20, 2010 5:06 am    Post subject: quick reply Reply with quote

for instace you have a ListBox1 control elemten on thaat dialog then you can make invisible or visible by this code

oDialog.getbyname("ListBox1").setVisible(False) [or (0)]

and visible

oDialog.getbyname("ListBox1").setVisible(True) [or (1)]
_________________
[Solved] mark in title significantly facilitates the work of those who try to help. So please, be gentle and don't forget to insert it. Wink

IRC: /join #openoffice.org on irc.freenode.net
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc 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