Radio buttons in PropertyGrid
-
Hi experts, a software I made provides the user with a PropertyGrid[^] to change certain values. Some of them are enum-based. Customer doesn't like to be forced to click twice: first to open the UITypeEditor[^], second to choose the value. Customer would rather want to have possible values constantly displayed as RadioButton[^]s. (See this illustration[^].) Is PropertyGrid that customizable to draw a property as something other than $PropertyName and $PropertyValue as one-line-texts? Is there some OwnerDraw possibility I didn't recognize? Is there a third-party control that supports that (this[^] looks nice but User still has to pull the editor down)?
Ciao, luker
-
Hi experts, a software I made provides the user with a PropertyGrid[^] to change certain values. Some of them are enum-based. Customer doesn't like to be forced to click twice: first to open the UITypeEditor[^], second to choose the value. Customer would rather want to have possible values constantly displayed as RadioButton[^]s. (See this illustration[^].) Is PropertyGrid that customizable to draw a property as something other than $PropertyName and $PropertyValue as one-line-texts? Is there some OwnerDraw possibility I didn't recognize? Is there a third-party control that supports that (this[^] looks nice but User still has to pull the editor down)?
Ciao, luker
-
-
But it still shows a value as one line. At least I haven't found a way to create multi-line visualizations of multiple-choice options.
Ciao, luker
lukeer wrote:
But it still shows a value as one line.
That's what the PropertyEditor dictates; one property per line. You can "unfold" some of the properties (try the Font property in a WinForm as example), but that's as close as it gets.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]