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

Changing the label of a FrameControl in a DiaIog

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





PostPosted: Thu Mar 27, 2003 2:21 am    Post subject: Changing the label of a FrameControl in a DiaIog Reply with quote

Hello,

I would like to change dynamically the label of FrameControl or GroupBox in a
Basic Dialog from a Calc macro, but I've not found how to do it.
I can change the label of any dialog element such as a button using:

oDialog.getControl("Button").setLabel ("label string")

but it doesnt work for a Frame.

I've tried:
oDialog.getControl("Frame").setLabel ("label string")
&
oDialog.getControl("Frame").Label = "label string"
without success.

Does anybody knows ho I can do it ?

Didier
Back to top
mariuszek
General User
General User


Joined: 24 Mar 2003
Posts: 9

PostPosted: Thu Mar 27, 2003 4:28 pm    Post subject: Reply with quote

try this
oDialog.Title = 'greetings from Mariuszek'
it works at my form

if you want to see properties,methods or supported interfaces of some object you have, type in your
oDialog.dbg_Properties
oDialog.dbg_Methods
oDialog.dbg_SupportedInterfaces


I've learned today Smile Very smart and helpfull
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