Jump to content
  • Advertisement
Sign in to follow this  
ChaosEngine

display boolean state

This topic is 3984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, this is more of a UI design question than an actual programming question. I need to display some readonly boolean state on a GUI. The first thing that comes to mind is a checkbox. However, a checkbox is an interactive control, (i.e. it's design more to accept input than show state), so I'm wondering if anyone can recommend a better widget to display state.

Share this post


Link to post
Share on other sites
Advertisement
Thanks, Antheus, but that doesn't really answer my question. I could use a disabled checkbox or even derive a new checkbox type and add a readonly state, but my point is that I don't believe a checkbox is the right widget to display readonly boolean state. Even a disabled checkbox suggests that there should be something the user can do to edit this value.

I'm looking for a better way to convey readonly boolean state to the user (short of a label that says "1" or "0" [grin])

Share this post


Link to post
Share on other sites
I would just use a descriptive static label. Like "lighting on" vs. "lighting off" or whatever.

What exactly does this state represent?

Share this post


Link to post
Share on other sites
Quote:
Original post by Simian Man
I would just use a descriptive static label. Like "lighting on" vs. "lighting off" or whatever.

What exactly does this state represent?


This is more of a general query than a specific instance. Usually it's some server variable that the user has no control over, but needs to know (for example if something is in stock).

A descriptive label certainly conveys the info in a "readonly" way, but when looking at a dialog box (this is for a business app in my day job) a label doesn't really stand out.

Ah, I'm probably just being overly fussy.



Share this post


Link to post
Share on other sites
First thing that pops up in my mind is a radio button. Though most of these widgets are used for input, so secondly I thought of a green/red box.

Share this post


Link to post
Share on other sites
Quote:
Original post by Obbedemus
First thing that pops up in my mind is a radio button. Though most of these widgets are used for input, so secondly I thought of a green/red box.


Sorry, no cookie for you [smile]. The semantics of a radio button are choosing one option from many, not a boolean switch.

Share this post


Link to post
Share on other sites
Quote:
Original post by ChaosEngine
Quote:
Original post by Simian Man
I would just use a descriptive static label. Like "lighting on" vs. "lighting off" or whatever.

What exactly does this state represent?


This is more of a general query than a specific instance. Usually it's some server variable that the user has no control over, but needs to know (for example if something is in stock).


Reserve some space and show either a green checkmark or a red X icon.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!