| View previous topic :: View next topic |
| Author |
Message |
vedervax Newbie

Joined: 13 Apr 2010 Posts: 1
|
Posted: Tue Apr 13, 2010 2:36 am Post subject: how to change dialog box control visibility? |
|
|
hello
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 |
|
 |
ottoshmidt1 Power User


Joined: 15 May 2009 Posts: 69 Location: Tbilisi, Georgia
|
Posted: Thu May 20, 2010 5:06 am Post subject: quick reply |
|
|
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.
IRC: /join #openoffice.org on irc.freenode.net |
|
| Back to top |
|
 |
|