DCX - Dialog Control Xtension
 
Link
Regular link control with icon support.

Control Styles
These control styles are available when creating a Link 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.
alpha Control is alpha blended.
hgradient Draws a horizontal gradient with the colors specified.
noformat Disables support for mIRC codes in control (faster).
shadow Display text with a shadow.
tooltips The link will have a tooltip.
vgradient Draws a vertical gradient with the colors specified.
 
Note. shadow will only work if the text color is not black or the same as the default text color on the current windows theme (ie. $rgb(0, 0, 0) or $dcx(GetSystemColor, COLOR_WINDOWTEXT) respectively). Change it by using xdid -C

/xdid flags
Control commands are input to the control with the /xdid command.
/xdid -l
This command lets you change a color in the link palette.
Syntax:
/xdid -l [DNAME] [ID] [N] [COLOR]
Example:
/xdid -l dcx 4 2 $rgb(255,0,255)
Parameters:
N Palette color number 1-4 (see -q for color order).

/xdid -q
This command lets you load a custom palette into the link control.
Syntax:
/xdid -q [DNAME] [ID] [NORMAL] [HIGHLIGHT] [VISITED] [DISABLED]
Example:
/xdid -q dcx 4 $rgb(255,0,0) $rgb(0,0,0) $rgb(255, 0, 255) $rgb(150, 150, 150)
/xdid -q dcx 4 $rgb(255,0,0) $rgb(0,0,0)
 
Note. You can give the command a number of colors inferior to 4, it will then only add thoses colors in order to the palette starting at 1.

/xdid -t
This command lets you set the link text.
Syntax:
/xdid -t [DNAME] [ID] (Text)
Example:
/xdid -t dcx 4 Text Label

/xdid -w
This command lets you set an icon for the link control.
Syntax:
/xdid -w [DNAME] [ID] [+FLAGS] [INDEX] [FILENAME]
Example:
/xdid -w dcx 4 +g 113 shell32.dll
Parameters:
+FLAGS Icon flags
a Uses the icon associated with the given file (as shown in Windows Explorer).
Note: File must exist.
f Uses the icon associated with the given filetype.
Note: Filename is the extension (eg. BMP, PNG, AVI, etc).
g Convert to grayscale icon.
P If GDI+ is enabled, this will use GDI+ to extract the icon.
INDEX Icon index in icon archive
FILENAME Icon archive filename
 
Note. Use 0 for INDEX if the file is a single icon file.

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

Link Events
These events are fired when activity occurs in the Link control.
dclick
When the text is double-clicked.
Syntax:
/cb_alias DNAME dclick ID
Example:
/cb_alias dcx dclick 4

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

Contact � 2005-2009 Last Updated: 12th July, 09

Valid XHTML 1.0 Transitional Valid CSS!