OverviewExamples
ListBox.SetProperties ( |
Sets the properties of a listbox object.
(string) The name of the listbox object.
(table) A table containing the listbox object's properties indexed by the following keys:
KEY |
TYPE |
DESCRIPTION |
|||||||||||||||||||||||||||||||||||||||||||||
ListBoxType |
number |
A number representing the type of list box:
|
|||||||||||||||||||||||||||||||||||||||||||||
MultipleSelection |
boolean |
True if multiple selection should be enabled, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
Sort |
boolean |
True if the listbox should be sorted, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
VScrollbar |
boolean |
True if the vertical scrollbar should be enabled, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
HScrollbar |
boolean |
True if the horizontal scrollbar should be enabled, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
FontName |
string |
The font name. |
|||||||||||||||||||||||||||||||||||||||||||||
FontSize |
number |
The font size (in points). |
|||||||||||||||||||||||||||||||||||||||||||||
FontStrikeout |
boolean |
True if the font should be set to strikeout, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
FontUnderline |
boolean |
True if the font should be set to underline, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
FontAntiAlias |
boolean |
True if the font should be set to anti alias, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
FontItalic |
boolean |
True if the font should be set to italic, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
FontWeight |
number |
The weight of the font (how 'dark' the text should appear):
|
|||||||||||||||||||||||||||||||||||||||||||||
FontScript |
number |
The character set that should be used by the listbox object:
|
|||||||||||||||||||||||||||||||||||||||||||||
TextColor |
number |
The color of the text in the listbox object. |
|||||||||||||||||||||||||||||||||||||||||||||
BackgroundColor |
number |
The color of the listbox object's background. |
|||||||||||||||||||||||||||||||||||||||||||||
Border |
number |
The style of the listbox object's border:
|
|||||||||||||||||||||||||||||||||||||||||||||
ReadOrder |
number |
How text should be displayed in the listbox object:
|
|||||||||||||||||||||||||||||||||||||||||||||
Enabled |
boolean |
True if the listbox object should be enabled, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
Visible |
boolean |
True if the listbox object should be visible, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
X |
number |
The horizontal position (in pixels) of the top left corner of the listbox object in relation to the current page or dialog. Note: The top left corner of the current page or dialog has an X value of 0 |
|||||||||||||||||||||||||||||||||||||||||||||
Y |
number |
The vertical position (in pixels) of the top left corner of the listbox object in relation to the current page or dialog. Note: The top left corner of the current page or dialog has a Y value of 0 |
|||||||||||||||||||||||||||||||||||||||||||||
Width |
number |
The width (in pixels) of the listbox object. |
|||||||||||||||||||||||||||||||||||||||||||||
Height |
number |
The height (in pixels) of the listbox object. |
|||||||||||||||||||||||||||||||||||||||||||||
ResizeLeft |
boolean |
True if the left side of the object should move when the application is resized, false if it should not. |
|||||||||||||||||||||||||||||||||||||||||||||
ResizeRight |
boolean |
True if the right side of the object should move when the application is resized, false if it should not. |
|||||||||||||||||||||||||||||||||||||||||||||
ResizeTop |
boolean |
True if the top of the object should move when the application is resized, false if it should not. |
|||||||||||||||||||||||||||||||||||||||||||||
ResizeBottom |
boolean |
True if the bottom of the object should move when the application is resized, false if it should not. |
|||||||||||||||||||||||||||||||||||||||||||||
TooltipText |
string |
The mouseover tooltip of the listbox object. Tip: If you want a "&" character in the text, you must enter "&&&". |
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions