DCX - Dialog Control Xtension
v1.4.0
Text
Regular text control. Used for labels or captions.

Control Styles
These control styles are available when creating a Text 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.
center Control text is centered.
endellipsis If the end of a string does not fit in the rectangle, it is truncated and ellipses (...) are added.
hgradient Draws a horizontal gradient with the colors specified.
noformat Disables support for mIRC codes in control (faster).
noprefix Prevents interpretation of any ampersand (&) characters in the control's text as accelerator prefix characters. These are displayed with the ampersand removed and the next character in the string underlined.
nowrap Single line of text (default is multiline) (not compatible with center or right).
pathellipsis Replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash (\) characters, pathellipsis preserves as much as possible of the text after the last backslash.
right Control text is right aligned.
shadow Display text with a shadow.
tooltips The text control 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
  • mIRC control codes are only supported when transparent style is set.

/xdid flags
Control commands are input to the control with the /xdid command.
/xdid -a
This command allows you to append text to the control (to bypass the 900 mIRC character limitation).
Syntax:
/xdid -a [DNAME] [ID] [SPACE] (Text)
Example:
/xdid -a dcx 4 Appended text
Parameters:
SPACE A space will automatically be appended between the previous text and the new appended text.

/xdid -r
This command clears the text.
Syntax:
/xdid -r [DNAME] [ID]
Example:
/xdid -r dcx 4

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

$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

Text Events
These events are fired when activity occurs in the Text 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-2007 Last Updated: 25th December, 07

Valid XHTML 1.0 Transitional Valid CSS!