Print Page | Close Window

Feature Request for Property Grid

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=16270
Printed Date: 28 September 2024 at 4:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Feature Request for Property Grid
Posted By: PeterG
Subject: Feature Request for Property Grid
Date Posted: 24 February 2010 at 6:53pm
A feature I would really like to have is the ability to have a check box item and be able to display one of two text messages to the right of the check box, one for True (when the box is checked) and another for False (when unchecked).  The text would change depending on whether the box was checked or not.

In case this is already possible, please let me know how to accomplish this miraculous feat.


-------------
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:08am
Hi,
 
If you are desperate...
 
Just change the PropertyItemBool into PropertyItemOption:
 
 
Set Item = Category.AddChildItem(PropertyItemOption, "Checkbox", 0)
       Item.Constraints.Add "False", 1    'Have only ONE OptionButton as a PropertyGridItem
       Item.CheckBoxStyle = True           'Still show the checkbox as a PropertyGriditem
 
 
to test this:
 
Private Sub wndProperty_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)
    Me.wndPropertyGridFiles.FindItem("Checkbox").Constraints(1).Caption = IIf(Item.Value, "True", "False")
End Sub
 
 


-------------
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