Jump to content
Sign in to follow this  
karl Jonson

Implement logic in TListView

Recommended Posts

Hi,
If I had these options in TListView:
None
Not Known
OptionOne
OptionTwo

 

Which is the best way to implement this logic:
'None' option cannot be selected in conjunction with another options
'Not Known' option cannot be selected in conjunction with another options

TIA

Share this post


Link to post

In such cases I use RadioGroup. It is easier and the user immediately sees what he can and cannot do. The principle is the same.

Share this post


Link to post
14 minutes ago, Stano said:

In such cases I use RadioGroup. It is easier and the user immediately sees what he can and cannot do. The principle is the same.

Does only work if only one item can be selected from the group, but IO think in OPs case selecting both OptionOne and OptionTwo would be valid.

Share this post


Link to post

Oh, I forgot that. So I use a separate RadioButton. And he put the buttons in groups.

Share this post


Link to post

I would probably design it like this (enabling and disabling the Checkboxes depending on RadioButton3 Checked)

 

image.png.7c5ac8555133c5ecd77714a4d8aab56a.png 

  • Like 4

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×