1. Computing
in Delphi TIPS :: At design-time properties of enumerated types (including Boolean) appear as editable strings. You can also cycle through the possible values by double-clicking the value column, and there is a drop-down list that shows all possible values.

If you need to allow a user of your application to change the display of the ListView at run-time, you need to provide some sort of "selectable" user interface. Controls like ComboBox, RadioGroup or ListBox can be used - they all display a collection of selectable items.

Read the full article to learn how to Display Enumerated Properties in a Selectable List - Run-Time Enum Selection in Delphi.

Related:

Comments
June 11, 2010 at 12:07 am
(1) kribo says:

extremely cool tips, Zarco…but how to pass enumerated types as a function’s parameter so, single function can handle all ?

June 12, 2010 at 4:41 am
(2) kribo says:

never mind, article “Get Enum Information using RTTI” answered my question…many thanks

June 12, 2010 at 8:55 am
(3) zarko says:

@kribo :)

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.