Posts

Showing posts from July, 2010

Removing enum value from a form combobox

This is an example of how to remove a enum value at runtime from a combobox in a form. The enum have 2 values Enum::value1 Enum::value2 Overwrite the "enter" method on the combobox and write the following. combobox:enter() { super(); this.delete(enum2str(Enum::value2)); } Now only option 1 will be displayed.