DCX - Dialog Control Xtension
 
ColorCombo
This control enables you to create a colorcombo.

Control Styles
These control styles are available when creating a ColorCombo 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.
shownumbers Show the mIRC colour number.

/xdid flags
Control commands are input to the control with the /xdid command.
/xdid -a
This command lets you add a color to the colorcombo at the specified position.
Syntax:
/xdid -a [DNAME] [ID] [N] [RGB] (TEXT)
Example:
/xdid -a dcx 4 2 $rgb(0,0,255) Blue
 
Note. If N is 0, inserts color at the end of the list.
Text supports mirc ctrl codes but will have a start colour auto set to contrast with the item's colour (black or white)

/xdid -c
This command lets you select the Nth item in the colorcombo.
Syntax:
/xdid -c [DNAME] [ID] [N]
Example:
/xdid -c dcx 4 2
 
Note. If N is 0, it unselects the current color.

/xdid -d
This command lets you delete the Nth item in the colorcombo.
Syntax:
/xdid -d [DNAME] [ID] [N]
Example:
/xdid -d dcx 4 2

/xdid -m
This command lets you load all the mIRC colors into the colorcombo.
Syntax:
/xdid -m [DNAME] [ID]
Example:
/xdid -m dcx 4

/xdid -o
This command lets you overwrite the Nth item in the colorcombo.
Syntax:
/xdid -o [DNAME] [ID] [N] [RGB]
Example:
/xdid -o dcx 4 2 $rgb(255,0,0)

/xdid -r
This command lets you clear the contents of the colorcombo.
Syntax:
/xdid -r [DNAME] [ID]
Example:
/xdid -r dcx 4

/xdid -t
This command lets you change the text of a specific item.
Syntax:
/xdid -t [DNAME] [ID] [N] (TEXT)
Example:
/xdid -t dcx 4 2 Aqua
 
Note. If N is 0, inserts color at the end of the list. No text supplied means clear the items text.
Text supports mirc ctrl codes but will have a start colour auto set to contrast with the item's colour (black or white)

$xdid() Properties
The $xdid identifier is a given mIRC alias that communicates with the DCX DLL to extract information in DCX controls.
$xdid().color
This property lets you retreive the Nth colorcombo color.
Syntax:
$xdid(dialog, ID, N).color
Example:
$xdid(dcx, 4, 1).color

$xdid().num
This property lets you retreive the number of items in the colorcombo.
Syntax:
$xdid(dialog, ID).num
Example:
$xdid(dcx, 4).num

$xdid().sel
This property lets you the selected item number in the colorcombo.
Syntax:
$xdid(dialog, ID).sel
Example:
$xdid(dcx, 4).sel

ColorCombo Events
These events are fired when activity occurs in the ColorCombo 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

sclick
When a sclick event is fired on an item.
Syntax:
/cb_alias DNAME sclick ID ITEM
Example:
/cb_alias dcx sclick 4 6
Parameters:
ITEM The item number that was selected

Contact © 2005-2022 Last Updated: 19th November, 22

Valid XHTML 1.0 Transitional Valid CSS!