| Class | Fox::FXListBox |
| In: |
rdoc-sources/FXListBox.rb
lib/fox12/iterators.rb |
| Parent: | FXPacker |
List Box
The following messages are sent by FXListBox to its target:
| SEL_COMMAND: | sent when a new list item is clicked; the message data is the index of the selected item. |
| SEL_CHANGED: | sent when a new list item is clicked; the message data is the index of the selected item. |
| LISTBOX_NORMAL: | Normal style |
ID_LIST ID_FIELD
| << | -> | appendItem |
| backColor | [R] | Background color [FXColor] |
| currentItem | [RW] | Current item’s index, or -1 if no current item [Integer] |
| font | [RW] | Text font [FXFont] |
| helpText | [RW] | Status line help text [String] |
| numItems | [R] | Number of items in the list [Integer] |
| numVisible | [RW] | Number of visible items [Integer] |
| selBackColor | [RW] | Background color for selected items [FXColor] |
| selTextColor | [RW] | Text color for selected items [FXColor] |
| textColor | [RW] | Text color [FXColor] |
| tipText | [RW] | Tool tip message [String] |
Returns an initialized FXListBox instance.
Calls block once for each item in the list, passing the item’s text, icon and user data as parameters.
Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
Move item from oldIndex to newIndex and return the new index of the item. Raises IndexError if either oldIndex or newIndex is out of bounds.
Replace the item at index with a new item with the specified text, icon and data. Raises IndexError if index is out of bounds.