Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Feature Request for Property Grid
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Feature Request for Property Grid

 Post Reply Post Reply
Author
Message
PeterG View Drop Down
Newbie
Newbie
Avatar

Joined: 24 February 2010
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote PeterG Quote  Post ReplyReply Direct Link To This Post Topic: Feature Request for Property Grid
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.