How to disable a particular radio button |
Post Reply |
Author | |
dileeptm
Groupie Joined: 15 October 2009 Location: India Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 30 October 2009 at 10:24am |
Hi ,
I have property grid item with 4 radio buttons. How can i disable a particular radio button and the other should be enabled.
I am using, "XStream Property Grid ActiveX v13.1"
Can any one pls help me
Thanks,
Dileep T M (TCS)
Inida
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
There's option to disable optionbuttons
Dim itemOption As PropertyGridItemOption
Set itemOption = Category.AddChildItem(PropertyItemOption, "Options", 2) itemOption.Constraints.Add "0", 0 itemOption.Constraints.Add "1", 1 itemOption.Constraints.Add "2", 2 itemOption.Constraints(1).Enabled = False |
|
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.... |
|
dileeptm
Groupie Joined: 15 October 2009 Location: India Status: Offline Points: 11 |
Post Options
Thanks(0)
|
hi Aaron,
This is not working, it is showing compilation error , stating that "PropertyGridItemConstraint' does not contain a definition for 'Enabled'"
I tried like this ItemOption.Constarints[1].Enabled = False;
Do i need to enable any other property before doing it? Can u pls help me?
Thanks and Regards,
Dileep T M
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
I think you have older version.
Enabled property has been added in V13.2 and I can't think of any other way to accomplish this.
|
|
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.... |
|
dileeptm
Groupie Joined: 15 October 2009 Location: India Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Can any one help me to meet my requirement.. pls..?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You need update version. Old versions didn't allow it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
neetimohindra
Newbie Joined: 04 March 2010 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi dileeptm ,
Can you please tell me how did u create radio button in the grid . I need to do the same .
Please help me . I want to create a list in codejock which has 3 columns out of which , 2 columns for radio butoon and one for info . It will be something like radio button 1a | radio butoon 1b | value 1 radio button 2a | radio butoon 2b | value 2 So for value 1 , either of radio button 1a or 1b will be selected and so on for all values in the list ctrl I created 3 columns with the help of list ctrl . Now how do I draw radio button in 1st and 2nd column and how do I select them . Please help me asap . Thanks a lot , Neeti |
|
dileeptm
Groupie Joined: 15 October 2009 Location: India Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Hi Neeti, In my case i have used Codjock property Grid control v13.1, it is an activex control. It has option to show radion buttons for property item. But that is not going to help you because you need three columns. Anyway u have used list control so you can find drawing for each item in the list. Override that and draw radio button.Thanks
dileeptm
|
|
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 |