- Home
- General Usage
- DCX Controls
- DCX Features
- About DCX
|
Check |
Checkbox control. Root control: Button
|
Control Styles |
These control styles are available when creating a Check control. Remember that the general styles disabled, group, hidden, notheme, tabstop and transparent apply to all DCX controls except the embedded Dialog and Window controls. |
3state |
Creates a 3 state checkbox. |
alpha |
Control is alpha blended. |
center |
Control text is centered. |
custom |
Control is custom drawn. |
hgradient |
Draws a horizontal gradient with the colors specified. |
pushlike |
Makes the check act and look like a push button. |
right |
Check control box is at the right of text. |
rjustify |
Control text is right justified. |
tooltips |
The checkbox will have a tooltip. |
vcenter |
Control text is vertically centered. |
vgradient |
Draws a vertical gradient with the colors specified. |
/xdid flags |
Control commands are input to the control with the /xdid command. |
/xdid -c |
This command lets you check the checkbox. |
Syntax: |
/xdid -c [DNAME] [ID] |
Example: |
/xdid -c dcx 4 |
| Note. You can set the indeterminate state when using a 3state check by using the -cu switches. |
/xdid -t |
This command lets you set the check text. |
Syntax: |
/xdid -t [DNAME] [ID] (Text) |
Example: |
/xdid -t dcx 4 Check Text |
/xdid -u |
This command lets you uncheck the check control. |
Syntax: |
/xdid -u [DNAME] [ID] |
Example: |
/xdid -u dcx 4 |
/xdid -C |
This command is an overload of the general -C command for colours. |
Syntax: |
/xdid -C [DNAME] [ID] [+FLAGS] [COLOR] |
Example: |
/xdid -C dcx 4 +hc $rgb(0,0,255) |
Parameters: |
+FLAGS |
Color Flags. |
b |
Background color. |
g |
Sets the start gradient color. |
G |
Sets the end gradient color. |
k |
Text background Color. |
r |
Border color. |
t |
Text color. |
c |
Checkbox background color. |
C |
Checkbox Tick color. |
f |
Checkbox Frame color. |
h |
Hot color. Use in conjunction with other flags |
d |
Disabled color. Use in conjunction with other flags |
| Note. The h & d flags only work when combined with the checkbox specific flags. |
$xdid() Properties |
The $xdid identifier is a given mIRC alias that communicates with the DCX DLL to extract information in DCX controls. |
$xdid().state |
This property lets you retreive check selection state. |
Syntax: |
$xdid(dialog, ID).state |
Example: |
$xdid(dcx, 4).state |
$xdid().text |
This property lets you retreive the check text. |
Syntax: |
$xdid(dialog, ID).text |
Example: |
$xdid(dcx, 4).text |
Check Events |
These events are fired when activity occurs in the Check control. |
help |
Launched when you click on a control using the ? contexthelp button. |
Syntax: |
/cb_alias DNAME help ID |
Example: |
/cb_alias dcx help 4 |
rclick |
When you right-click on the text. |
Syntax: |
/cb_alias DNAME rclick ID |
Example: |
/cb_alias dcx rclick 4 |
sclick |
When the text is clicked. |
Syntax: |
/cb_alias DNAME sclick ID |
Example: |
/cb_alias dcx sclick 4 |
|