Changeset 45
- Timestamp:
- 05/13/07 23:26:27 (2 years ago)
- Files:
-
- branches/bughunt/docs/minwin/listbox.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/bughunt/docs/minwin/listbox.d
r44 r45 10 10 class ListBox : WindowChild 11 11 { 12 /// Constructs a new ListBox from the given details. 12 /** Constructs a new ListBox. 13 $(D_PARAM texts) - array of strings to be added to the list. 14 $(D_PARAM vscroll) - enable vertical scrollbar. 15 $(D_PARAM hscroll) - enable horizontal scrollbar. 16 */ 13 17 this(Component parent, char[][] texts, bool vscroll = true, bool hscroll = true, char[] name = ""); 14 18 /// Read/write property for the current selection. 15 /// zero based index, -1 for none.19 /// -1 for no selection. 16 20 int selection; 17 /// Read -onlyproperty for getting the number of strings in the ListBox.21 /// Readable property for getting the number of strings in the ListBox. 18 22 int count; 19 /// Index operator overload for getting a string from the ListBox from a 20 /// zero based index. 23 /// Index operator overload for getting a string from the ListBox by index. 21 24 char[] opIndex(int i); 22 25 }
