DCX - Dialog Control Xtension
 
Divider
This control enables you to create a divider control. This control acts as a container for other controls. The divider control is consisted of two panes that host a child control. The panes are resized using the divider bar between them. The divider control resizes automaticaly it's child windows when the bar is moved. Multiple dividers can be nested for advanced UI interfaces.

Control Styles
These control styles are available when creating a Divider 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.
vertical The divider has vertical panes.

/xdid flags
Control commands are input to the control with the /xdid command.
/xdid -l|-r
This command lets you add a child control to a divider pane. The -l switch is for the left/top pane, and -r for the right/bottom pane.
Syntax:
/xdid -l|-r [DNAME] [ID] [MIN] [IDEAL] [TAB] [CID] [CONTROL] [X] [Y] [W] [H] (OPTIONS)
Example:
/xdid -l|-r dcx 4 100 0 $chr(9) 12 richedit 10 10 400 25 multi
Parameters:
MIN Minimum Pane Width/Height.
IDEAL Not used yet. Use 0, required but ignored.
CID Unique control ID for the DCX Control. Must be unique for all the controls of the dialog!
CONTROL The type of DCX Control to create. Values can be:
button, calendar, colorcombo, comboex, datetime, directshow, ipaddress, listview, pbar, richedit, statusbar, toolbar, trackbar, treeview, updown, webctrl
box, check, edit, image, line, link, list, radio, scroll, text
divider, pager, panel, rebar, stacker or tab.
X X position of control. Use 0, required but ignored.
Y Y position of control. Use 0, required but ignored.
W Width of control.
H Height of control.
OPTIONS Optional styles and options available on each individual controls.

/xdid -v
This command lets you set the divider bar position.
Syntax:
/xdid -v [DNAME] [ID] [POS]
Example:
/xdid -v dcx 4 150
 
Note. The value must be between the left pane minimum width/height and the width/height of the control minus the right pane minimum width/height.
Left W/H <= POS <= Right W/H.

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

$xdid().position
This property lets you retreive the position of the divider in pixels.
Syntax:
$xdid(dialog, ID).position
Example:
$xdid(dcx, 4).position

Divider Events
These events are fired when activity occurs in the Divider control.
drag
When the user is dragging the divier.
Syntax:
/cb_alias DNAME drag ID X Y
Example:
/cb_alias dcx drag 4 220 354

dragbegin
When the user starts dragging the divier.
Syntax:
/cb_alias DNAME dragbegin ID X Y
Example:
/cb_alias dcx dragbegin 4 220 300

dragfinish
When the user has finished dragging the divier.
Syntax:
/cb_alias DNAME dragfinish ID X Y
Example:
/cb_alias dcx dragfinish 4 220 403

help
Launched when you click on a control using the ? contexthelp button.
Syntax:
/cb_alias DNAME help ID
Example:
/cb_alias dcx help 4

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

Valid XHTML 1.0 Transitional Valid CSS!