Print Page | Close Window

Change text of an Option item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=16265
Printed Date: 05 May 2024 at 10:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change text of an Option item
Posted By: PeterG
Subject: Change text of an Option item
Date 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



Replies:
Posted By: Aaron
Date Posted: 26 February 2010 at 3:02am
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....


Posted By: PeterG
Date Posted: 26 February 2010 at 6:17pm
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


Posted By: Aaron
Date Posted: 01 March 2010 at 4:07pm
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....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net