Jump to content

Disabling an List Widget Item


charliefjohnson

Recommended Posts

The documentation mentions that for the List widget,  a item can be in unselected, selected, disabled selected and disabled unselected state.   And that you can have a different image for each.

But I  don't see anywhere in the APIs for the List widget, a way to set an item to disabled selected or disabled unselected.   Do these states exist yet ??

Link to comment
Share on other sites

The disabled state refers to the state of the entire widget (which you can control through gwinSetEnabled() as well as the corresponding gwinEnable() and gwinDisable() wrappers). With the implementation of the default built-in list widget it's not possible to enable/disable individual list items.

If you need such functionality we recommend implement a custom widget. In this particular case you can simply copy the /src/gwin/gwin_list.h and /src/gwin/gwin_list.c files to your project and modify them accordingly.

Please don't hesitate to ask if you have any further questions. We're happy to help.

Link to comment
Share on other sites

  • 4 weeks later...

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
×
×
  • Create New...