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 know the label of a Check box

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


Joined: 25 Jun 2011
Posts: 10
Location: Colombia

PostPosted: Wed Jul 13, 2011 7:37 am    Post subject: HOw to know the label of a Check box Reply with quote

HI thats my question, i want to know how do i know the label that the checkbox has?

Actually i know its state by this method:

Code:

Dim chkCasilla As Object
chkCasilla = oDialogo.getControl("Activar") 'Activar its checkbox's name
Msgbox chkCasilla.state


i tried in this way:

Code:
MsgBox chkCasilla.Label  but it throws me a mistake


Thanks for the help


Last edited by felipe12357 on Wed Jul 13, 2011 9:25 am; edited 1 time in total
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1414
Location: France

PostPosted: Wed Jul 13, 2011 9:01 am    Post subject: Reply with quote

Hi,

Exclamation for your messages use the Code button before and after your code.

In the control view, Label is in fact method setLabel("xxx"), and there is no getLabel() method.

You have to get the Model of the control, and there you find a property Label that you can read and write.
Code:
MsgBox chkCasilla.Model.Label


Use Xray to help you, see the sticker post in this forum section.
_________________
Bernard

OpenOffice.org 1.1.5 fr / OpenOffice.org 3.4.1 en-US + langpacks, MS-Windows XP Home SP3
This forum is unusable, use instead Apache OpenOffice forums
Back to top
View user's profile Send private message Visit poster's website
felipe12357
General User
General User


Joined: 25 Jun 2011
Posts: 10
Location: Colombia

PostPosted: Wed Jul 13, 2011 9:27 am    Post subject: Thanks! Reply with quote

Thanks for the advice, and for the answer thats was what i was looking for, and your explanation was very clear , thanks for the help
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