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

/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]
Example:
/xdid -a dcx 4 2 $rgb(0,0,255)
 
Note. If N is 0, inserts color at the end of the list.

/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() 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-2009 Last Updated: 12th July, 09

Valid XHTML 1.0 Transitional Valid CSS!