Change text of an Option item |
Post Reply |
Author | |
PeterG
Newbie Joined: 24 February 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 24 February 2010 at 1:41pm |
Can I change the text of an option item? Based on other logic in my window, I need to change the text displayed to the right of the option item radio button or check box. Can this be done? If so, how?
Property Grid Control version 13.2.1 Windows Vista Business 32-bit Language: Clarion 7.1 |
|
Product: ActiveX PropertyGrid Version 15.0.2
Product: ActiveX Calendar Version 15.0.2 Platform: Windows Vista Business (32bit) Language: Clarion 7.3 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You can change caption of constraint for example in ValueChanged event:
Private Sub wndPropertyGridFiles_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)
Me.wndPropertyGridFiles.FindItem("OptionButtons").Constraints(1).Caption = IIf(Item.Value, "Option 1", "becomes option 2") End Sub It's VB code but maybe it will help you
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
PeterG
Newbie Joined: 24 February 2010 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Does the 1 in Constraints(1) refer to the first Option item?
|
|
Product: ActiveX PropertyGrid Version 15.0.2
Product: ActiveX Calendar Version 15.0.2 Platform: Windows Vista Business (32bit) Language: Clarion 7.3 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Yes, it does. You are also able to loop constraints if needed.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |