DCX - Dialog Control Xtension Home | Translations | Download | Forum | Bug Tracker
v1.3.7
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, notheme, tabstop and transparent apply to all DCX controls.
alpha Control is alpha blended.
shadow Display text with a shadow.
tooltips The link will have a tooltip.
 
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)
 
Note.
  • The number of colors is limited to 4, everything past the 4th color is ignored.
  • 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 C:/mIRC/shell.dll
Parameters:
+FLAGS Icon flags
g Convert to grayscale 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-2006 Last Updated: 14th January, 07

Valid XHTML 1.0 Transitional Valid CSS!