OverviewExamples
RadioButton.SetProperties ( |
Sets the properties of a radiobutton object.
(string) The name of the radiobutton object.
(table) A table containing the radiobutton object's properties indexed by the following keys:
KEY |
TYPE |
DESCRIPTION |
|||||||||||||||||||||||||||||||||||||||||||||
GroupID |
string |
The name of the radiobutton group to belong to. |
|||||||||||||||||||||||||||||||||||||||||||||
Value |
string |
The value to assign to the radiobutton. |
|||||||||||||||||||||||||||||||||||||||||||||
Checked |
boolean |
True if the radiobutton should be checked, false if it should be unchecked. Note: By default, radiobutton objects on the same page or dialog are part of the same group (blank group ID), so when you check a radiobutton, the other radiobuttons in that group will automatically be unchecked. This also applies to custom radiobutton groups. Unchecking a radio button has no effect on any other radiobuttons. If you do not want the automatic checking, create each radiobutton with a unique group ID. |
|||||||||||||||||||||||||||||||||||||||||||||
Text |
string |
The text to be displayed in the radiobutton object. |
|||||||||||||||||||||||||||||||||||||||||||||
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 will appear):
|
|||||||||||||||||||||||||||||||||||||||||||||
FontScript |
number |
The character set in use by the radiobutton object:
|
|||||||||||||||||||||||||||||||||||||||||||||
TextAlignment |
number |
The alignment of the text in the radiobutton object. Choose from:
|
|||||||||||||||||||||||||||||||||||||||||||||
ButtonAlignment |
number |
The alignment of the button in the radiobutton object:
|
|||||||||||||||||||||||||||||||||||||||||||||
ReadOrder |
number |
How text should be displayed in the radiobutton object:
|
|||||||||||||||||||||||||||||||||||||||||||||
ColorNormal |
number |
The 'normal' color of the radiobutton object's text. |
|||||||||||||||||||||||||||||||||||||||||||||
ColorHighlight |
number |
The 'highlight' color of the radiobutton object's text. |
|||||||||||||||||||||||||||||||||||||||||||||
ColorDisabled |
number |
The 'disabled' color of the radiobutton object's text. |
|||||||||||||||||||||||||||||||||||||||||||||
ColorDown |
number |
The 'down' color of the radiobutton object's text. |
|||||||||||||||||||||||||||||||||||||||||||||
Enabled |
boolean |
True if the radiobutton object should be enabled, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
Visible |
boolean |
True if the radiobutton object should be visible, false if it should not be. |
|||||||||||||||||||||||||||||||||||||||||||||
X |
number |
The horizontal position (in pixels) of the top left corner of the radiobutton 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 radiobutton 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 radiobutton object. |
|||||||||||||||||||||||||||||||||||||||||||||
Height |
number |
The height (in pixels) of the radiobutton object. |
|||||||||||||||||||||||||||||||||||||||||||||
TooltipText |
string |
The mouseover tooltip of the radiobutton object. Tip: If you want a "&" character in the text, you must enter "&&&". |
|||||||||||||||||||||||||||||||||||||||||||||
Cursor |
number |
The mouse cursor that should be displayed when the mouse is over the radiobutton 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. |
|||||||||||||||||||||||||||||||||||||||||||||
HighlightSound |
number |
The type of sound that should be played when the mouse moves over the object.
|
|||||||||||||||||||||||||||||||||||||||||||||
HighlightSoundFile |
string |
The path to the object's custom highlight sound file. |
|||||||||||||||||||||||||||||||||||||||||||||
ClickSound |
number |
The type of sound that should be played when the mouse clicks the object.
|
|||||||||||||||||||||||||||||||||||||||||||||
ClickSoundFile |
string |
The path to the object's custom click sound file. |
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions