| Home | Download | Forum | Bug Tracker

|  | v1.4.0

Marked Dialog
Once marked, a regular mIRC dialog becomes a DCX Marked Dialog. This enables DCX to manipulate the dialog and also allows creation of DCX controls on the dialog.
/xdialog flags
The /xdialog command is used to modify a DCX marked dialog.
/xdialog -a
This command lets you animate an opening/closing dialog.
Syntax: | /xdialog -a [DNAME] [+FLAGS] [DELAY]
Example: | /xdialog -a dcx +ab 1000 /xdialog -a dcx +hnu 300
Parameters:
+FLAGS | Animation style flags.
a | Shows the dialog.
b | Alpha-Blending fade effect.
c | Makes the window appear to collapse inward if +h is used or expand outward if the +a is used. The various direction flags have no effect.
h | Hides the dialog.
o | Animates the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with +c or +a.
n | Animates the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with +c or +a.
s | Uses slide animation. It is ignored when used with +c.
v | Animates the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with +c or +a.
u | Animates the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with +c or +a.
DELAY | Delay in millseconds of the animation. (typical system value is 200)
Note. The default effect is a roll animation. Animation on region clipped dialogs will fail on operating systems prior to XP.
/xdialog -b
This command lets modify border and style attributes on a dialog.
Syntax: | /xdialog -b [DNAME] [+FLAGS]
Example: | /xdialog -b dcx +tyszh
Parameters:
+FLAGS | Border/Window style flags.
b | Regular Border.
c | Clientedge border.
d | Dialog frame border.
f | Dialog modal frame border. (Similar to +d)
h | Context help ? button. (Needs +y and can't be used with +m or +n)
m | Maximize button. (Requires +y and can't be used with +m or +n)
n | Minimize button. (Requires +y and can't be used with +m or +n)
o | Tool window. (Can't be used with +h, +m or n)
s | Staticedge border.
t | Has a titlebar.
v | Vista Aero styled dialog. (2k+)
w | Windowedge border.
x | Enables composite window rendering. (XP+)
y | Sysmenu (the little X button)
z | Resizeable border.
Note. Using +x flag can have adverse effects on some controls, most notably the listview.
/xdialog -c
This command lets you create a DCX control on your dialog.
Syntax: | /xdialog -c [DNAME] [ID] [TYPE] [X] [Y] [W] [H] (OPTIONS)
Example: | /xdialog -c dcx 4 pbar 140 30 100 20 smooth notheme
Parameters:
ID | Dialog control ID that will serve as a host for the DCX Control.
TYPE | The type of DCX Control to be created.
button | Creates a Button control.
calendar | Creates a Calendar control.
colorcombo | Creates a ColorCombo control.
comboex | Creates a ComboEx control.
datetime | Creates a DateTime Picker control.
directshow | Creates a Directshow control.
ipaddress | Creates a IpAddress control.
listview | Creates a Listview control.
pbar | Creates a Progressbar control.
richedit | Creates a RichEdit control.
statusbar | Creates a Statusbar control.
toolbar | Creates a Toolbar control.
trackbar | Creates a Trackbar control.
treeview | Creates a TreeView control.
updown | Creates an UpDown control.
webctrl | Creates a Web control.
box | Creates a Box control.
check | Creates a Check control.
edit | Creates a Edit control.
image | Creates a Image control.
line | Creates a Line control.
link | Creates a Link control.
list | Creates a List control.
radio | Creates a Radio control.
scroll | Creates a Scroll control.
text | Creates a Text control.
divider | Creates a Divider control.
pager | Creates a Pager control.
panel | Creates a Panel control.
rebar | Creates a Rebar control.
stacker | Creates a Stacker control.
tab | Creates a Tab control.
dialog | Docks a mIRC dialog. The first parameter in the (OPTIONS) must be the dialog name.
window | Docks a mIRC @window. The first parameter in the (OPTIONS) must be the @window name.
X | X position of control.
Y | Y position of control.
W | Width of control.
H | Height of control.
OPTIONS | Optional styles and options available on each individual controls.
/xdialog -d
This command lets you delete a DCX control on the dialog.
Syntax: | /xdialog -d [DNAME] [ID]
Example: | /xdialog -d dcx 4
/xdialog -f
This command lets you flash a dialog window.
Syntax: | /xdialog -f [DNAME] [+FLAGS] [COUNT] [TIMEOUT]
Example: | /xdialog -f dcx +at 0 1000
Parameters:
+FLAGS | Flash style flags.
a | Flash both the window caption and taskbar button. This is equivalent in using the +c and +r flags.
c | Flash the window caption.
f | Flash continuously until the window comes to the foreground.
r | Flash the taskbar button.
s | Stop flashing. The system restores the window to its original state.
t | Flash continuously, until the +s flag is used.
COUNT | Number of times to flash the window.
TIMEOUT | Rate at which the window is to be flashed, in milliseconds.
Note. If TIMEOUT is zero, the function uses the default cursor blink rate.
/xdialog -g
This command lets you modify the background attributes of the dialog.
Syntax: | /xdialog -g [DNAME] [+FLAGS] [ARGS]
Example: | /xdialog -g dcx +b $rgb(0,0,255) /xdialog -g dcx +is dialog_bg.bmp
Parameters:
+FLAGS | Background flags.
b | Specifies background color.
i | Specifies background image.
n | Reset the background image position to top left. (Used with +i flag)
t | Tile the background image. (Used with +i flag)
s | Stretch the background image. (Used with +i flag)
c | Center the background image horizontally. (Used with +i flag)
v | Center the background image vertically. (Used with +i flag)
r | Right-align the background image. (Used with +i flag)
o | Bottom-align the background image. (Used with +i flag)
Variable parameters ARGS:
b | [COLOR]
COLOR | Specifies the background color in a $rgb() format.
i | [IMAGE]
IMAGE | Specfies the image filename.
Note. Only formats supported by GDI+ can be loaded as a background image.
/xdialog -h
This command lets you hide the dialog.
Syntax: | /xdialog -h [DNAME]
Example: | /xdialog -h dcx
/xdialog -j
This command forces a redraw of the control specified.
Syntax: | /xdialog -j [DNAME] (ID)
Example: | /xdialog -j dcx 4
Note. If no control ID is specified, then all controls will be updated.
/xdialog -l
This command lets you add Cell Layout Algorithm rules to your dialog controls for automatic resizing of the child controls.
Syntax: | /xdialog -l [DNAME] [COMMAND] [PATH] [TAB] [+FLAGS] [CID] [WEIGHT] [W] [H]
Example: | /xdialog -l dcx root $chr(9) +pv 0 1 0 0 /xdialog -l dcx root 1 2 $chr(9) +fi 7 1 200 300 /xdialog -l dcx space 1 $chr(9) + 5 5 5 5
Parameters:
COMMAND | Layout command.
clear | Clears all CLA rules.
root | Sets the root cell element.
cell | Adds a cell element as a child of another cell element.
space | Sets the space padding around a cell element.
update | Updates the cell layout (must be used after adding rules or changing padding settings to refresh display).
PATH | Cell Path from root element (can be root to point to root element).
+FLAGS | Flags to manipulate Cell Layout Algorithm.
f | Creates a fixed cell element.
h | Creates a width fixed cell if used with +f or a horizontal cell pane if used with +p.
i | Indicates that the supplied control ID is valid and is the child control when used with +f or +l.
l | Creates a fill cell element.
p | Creates a pane cell element.
v | Creates a height fixed cell if used with +f or a vertical cell pane if used with +p.
w | When used, it means that the supplied W and H represent the fixed cell width in the applicable direction (if the fixed cell is fixed in width, height or both).
CID | ID of the control (used with fixed or fill cells - use 0 if no control is to be linked to the cell).
WEIGHT | Cell child weight. (used when adding a child cell to a pane cell)
W | Fixed width of control (used with fixed cell).
H | Fixed height of control. (used with fixed cell)
Note. See the Cell Layout Algorithm explanation for concrete examples. If you use the update command in the init event of a dialog, you will have to use ".timer 1 0 xdialog -l dialog update" as a glitch with XP and themes disabled prevents windows from appearing. The timer corrects this problem. When using the space command, the ID WEIGHT W H are in fact the LEFT TOP RIGHT BOTTOM spacings Use the value 0 for the fields not used as the command expects them to be filled even though they aren't used.
/xdialog -m
This command lets you maximize the dialog.
Syntax: | /xdialog -m [DNAME]
Example: | /xdialog -m dcx
/xdialog -n
This command lets you minimize the dialog.
Syntax: | /xdialog -n [DNAME]
Example: | /xdialog -n dcx
/xdialog -q
This command lets you change the dialog cursor.
Syntax: | /xdialog -q [DNAME] [+FLAGS] [CURSOR|FILENAME]
Example: | /xdialog -q dcx +r wait
Parameters:
+FLAGS | Cursor flags.
f | Cursor is defined in FILENAME
r | Cursor is a system cursor name in the list below.
CURSOR | Cursor system names
appstarting | Standard arrow and small hourglass
arrow | Standard arrow.
cross | Crosshair.
hand | Hand.
help | Arrow and question mark.
ibeam | I-beam.
no | Slashed circle.
sizeall | Four-pointed arrow pointing north, south, east, and west.
sizenesw | Double-pointed arrow pointing northeast and southwest.
sizens | Double-pointed arrow pointing north and south.
sizenwse | Double-pointed arrow pointing northwest and southeast.
sizewe | Double-pointed arrow pointing west and east.
uparrow | Vertical arrow.
wait | Hourglass.
FILENAME | Filename containing the cursor.
Note. Cursor files need to be .cur or .ani.
/xdialog -r
This command lets you restore the dialog.
Syntax: | /xdialog -r [DNAME]
Example: | /xdialog -r dcx
/xdialog -s
This command lets you show the dialog.
Syntax: | /xdialog -s [DNAME]
Example: | /xdialog -s dcx
/xdialog -t
This command allows you to set the transparency color for the background image.
Syntax: | /xdialog -t [DNAME] [SWITCH] [VALUE]
Example: | /xdialog -t dcx transparentcolor $rgb(255,0,255) /xdialog -t dcx alpha 70
Parameters:
SWITCH | The type of transparency to be applied.
alpha | Sets the transparency level.
transparentcolor | This will cause the color VALUE on the dialog to be hollowed out.
bgcolor | Sets the transparent background color.
VALUE | The transparent color or alpha value (values range from 0 to 255 if alpha is used). none can be used to remove the alpha or color effects.
/xdialog -w
This command lets you change the dialog icon.
Syntax: | /xdialog -w [DNAME] [+FLAGS] [INDEX] [FILENAME]
Example: | /xdialog -w dcx + 2 shell32.dll
Parameters:
+FLAGS | Icon flags
b | Uses the big icon.
s | Uses the small icon.
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.
/xdialog -x
This command lets you kill (not trigger a close like /dialog -x) the dialog.
Syntax: | /xdialog -x [DNAME]
Example: | /xdialog -x dcx
Note. You will have to use this command to close a dialog if you return noclose in the close event. mIRC's /dialog -x will be ineffective to close the dialog.
/xdialog -z
This command lets you manage controls on the dialog in a tab-like manner. The internal list works in a very similar fashion to icon lists in controls such as the toolbar.
Syntax: | /xdialog -z [DNAME] [+FLAG] [N]
Example: | /xdialog -z dcx +a 2
Parameters:
+FLAG | Command flags.
a | Adds a control to the internal list. This will also auto-hide the control which was added.
p | Positions all controls in the list to the same position as the specified control ID.
s | Shows the control found on the specified internal list index. This will also auto-hide the previous control displayed.
Note. When used with +a, N is the control ID to add. When used with +p, all controls in the internal list will be moved to where control ID N is positioned. When used with +s, N is the internal list index to show, NOT the control ID!
/xdialog -E
This command lets you enable/disable callback events.
Syntax: | /xdialog -E [DNAME] [+FLAGS] [-FLAGS]
Example: | /xdialog -E dcx +c -d
Parameters:
FLAGS | Flags for events.
c | Click events (eg. sclick, dclick, rclick, ...).
d | Drag events (eg. dragbegin, ect..).
e | Edit events (eg. edit, keydown, keyup, ...).
f | Focus events (eg. focus and focusout).
h | Help event.
m | Mouse events (eg. mouseleave, mouseenter, mouse, ...).
s | Sizing events (eg. sizing, min, max, ...).
t | Theme event (eg. themechanged).
C | Close event.
M | Move events (eg. beginmove, endmove, ...).
Note. The first parameter +FLAGS allows the you to specify which events should be enabled. The second flag parameter specifies which events to disable. If you use the same event flag to + and - flags then the events is disabled.
/xdialog -P
This command lets you use XPopup commands on dialog menus.
Syntax: | /xdialog -P [DNAME] [-XPOPUP_FLAG] [ARGS]
Example: | /xdialog -P dcx -t officexp
Parameters:
XPOPUP_FLAG | Valid flags are listed on the XPopup page.
ARGS | Parameters for this command will depend on the XPOPUP_FLAG specified.
/xdialog -R
This command lets you clip the dialog region.
Syntax: | /xdialog -R [DNAME] [+FLAGS] (ARGS)
Example: | /xdialog -R dcx +f $rgb(255,0,255) dialog_shape.bmp /xdialog -R dcx +p 0,0 $+($dialog(dcxtest).w,$chr(44),0) $+($calc($dialog(dcxtest).w /2),$chr(44),$dialog(dcxtest).h)
Parameters:
+FLAGS | Region flags.
d | Allows dragging of the window by clicking anywhere on it.
f | Region is defined in bitmap file.
g | Allows the dialog to be ghosted while dragging.
s | Adds a shadow effect to the dialog.
o | OR new region with existing one. (Can be used with c, p or r)
a | AND new region with existing one. (Can be used with c, p or r)
i | DIFF new region with existing one. (Can be used with c, p or r)
x | XOR new region with existing one. (Can be used with c, p or r)
c | Sets an ellipse region.
p | Sets a polygon region.
r | Sets a rounded rectangle region.
n | Resets the region.
Variable parameters ARGS:
d | [1|0]
f | [TRANSPARENT_COLOR] [FILENAME]
g | [VALUE]
VALUE | The opacity of the dragged window. This can be a value between 0-255.
s | [COLOUR] [SHARPNESS] [DARKNESS] [SIZE] [XOFFSET] [YOFFSET]
COLOR | The color of the shadow in $rgb() format.
SHARPNESS | The fuzziness of the shadow. Can range from 0-20.
DARKNESS | The shadow intensity. Can range from 0-255.
SIZE | The size of the shadow. Can range from -20-20.
XOFFSET | The horizontal distance the shadow will be placed away from the dialog. Can range from -20-20.
YOFFSET | The vertical distance the shadow will be placed away from the dialog. Can range from -20-20.
p | x1,y1 x2,y2 x3,y3 ... x12,y12
COORDINATES | A list of at least 3 coordinates, each coordinate in the format of X,Y.
r | (ROUNDNESS)
ROUNDNESS | An integer defining how round the rectangle should be.
Note. If +s is used without parameters, it will remove the shadow. The flag +s does not rely on Windows XP themes at all, so it can be used on older operating systems.
/xdialog -S
This command allows you to set the size and position of the window. This differs from mIRC's resizing functionality as the height and width does not include the window border.
Syntax: | /xdialog -S [DNAME] [X Y] [W H]
Example: | /xdialog -S dcx 300 100 -1 -1 /xdialog -S dcx -1 75 50 100 /xdialog -S dcx 100 200 300 -1 /xdialog -S dcx 15 30 45 60
Parameters:
X Y | The X and Y coordinates of the window.
W H | The width and height of the window.
Note. You can specify -1 for any value that you do not wish to modify.
/xdialog -T
This command lets you create a tooltip.
Syntax: | /xdialog -T [DNAME] [+FLAGS]
Example: | /xdialog -T dcx +p
Parameters:
+FLAGS | Tooltip flags.
a | Tooltip will always be displayed, even if mIRC is not the active application.
b | Tooltip uses the balloon shape.
f | No fade-in effect.
p | Allows the ampersand character (&) to be displayed
s | No slide-in effect.
Note. You must call this function if you wish to use tooltips on any control with this dialog. (Except controls which naturally have their own tooltips, such as treeview, listview, toolbar, etc)
/xdialog -V
This command allows you to set the Vista Aero glass area.
Syntax: | /xdialog -V [DNAME] [LEFT] [RIGHT] [TOP] [BOTTOM]
Example: | /xdialog -V dcx 10 10 20 10
$xdialog() Properties
The $xdialog identifier is a given mIRC alias that communicates with the DCX DLL to extract information in DCX dialogs.
$xdialog().alias
This property returns the callback alias name supplied when the dialog was marked.
Syntax: | $xdialog(dialog).alias
Example: | $xdialog(dcx).alias
$xdialog().focusid
This property retrieves which control currently has the focus.
Syntax: | $xdialog(dialog).focusid
Example: | $xdialog(dcx).focusid
$xdialog().id
This property retrieves the Nth used ID in the dialog, or the total number of used IDs if N is 0.
Syntax: | $xdialog(dialog, N).id
Example: | $xdialog(dcx, 5).id
$xdialog().isid
This property retrieves if the given ID exists in the dialog.
Syntax: | $xdialog(dialog, ID).isid
Example: | $xdialog(dcx, 4).isid
$xdialog().ismarked
This property returns $true if the dialog has been marked by DCX, and $false if not marked.
Syntax: | $xdialog(dialog).ismarked
Example: | $xdialog(dcx).ismarked
$xdialog().ismenu
This property retrieves if the dialog displays a menu or not.
Syntax: | $xdialog(dialog).ismenu
Example: | $xdialog(dcx).ismenu
$xdialog().key
This property retrieves the selected state of certain input keys during events.
Syntax: | $xdialog(dialog).key
Example: | $xdialog(dcx).key
Parameters:
KEY_NUM | Virtual key.
1 | LEFT Mouse Button
2 | RIGHT Mouse Button
4 | MIDDLE Mouse Button
8 | Left SHIFT
16 | Left CONTROL
32 | Left ALT
64 | Right SHIFT
128 | Right CONTROL
256 | Right ALT
512 | Left Arrow
1024 | Left Arrow
2048 | Right Arrow
4096 | Down Arrow
8192 | Caps Lock
Note. The return value is binary, which means that you have to use the following code fragment to know if the key identified by the listed number below is currently selected :
    if ($xdialog(dname).key & KEY_NUM) {
      ; do action here
    }
$xdialog().mouse
This property retrieves the mouse position from the dialog viewpoint.
Syntax: | $xdialog(dialog).mouse
Example: | $xdialog(dcx).mouse
$xdialog().mouseid
This property retrieves which control the mouse currently hovers.
Syntax: | $xdialog(dialog).mouseid
Example: | $xdialog(dcx).mouseid
$xdialog().nextid
This property retrieves the next free ID in the dialog.
Syntax: | $xdialog(dialog).nextid
Example: | $xdialog(dcx).nextid
$xdialog().parent
This property retrieves the name of the parent dialog (only if this dialog is docked using /xdialog -c or /xdid -c and if it has been marked).
Syntax: | $xdialog(dialog).parent
Example: | $xdialog(dcx).parent
$xdialog().visible
This property returns $true if the dialog is visible, and $false if it is not visible.
Syntax: | $xdialog(dialog).visible
Example: | $xdialog(dcx).visible
$xdialog().zlayer
This property retrieves the control ID found at the Nth internal list index.
Syntax: | $xdialog(dialog, N).zlayer
Example: | $xdialog(dcx, 5).zlayer
Note. When N is 0, this will return the number of controls found in the internal list.
$xdialog().zlayercurrent
This property retrieves the currently selected internal list index.
Syntax: | $xdialog(dialog).zlayercurrent
Example: | $xdialog(dcx).zlayercurrent
Marked Dialog Events
These events are fired when activity occurs in the dialog. Event ID of 0 indicates the event was triggered by the dialog.
activate
Event triggered when dialog is activated.
Syntax: | /cb_alias DNAME activate ID
Example: | /cb_alias dcx activate 0
beginmove
When the dialog is about to be moved.
Syntax: | /cb_alias DNAME beginmove ID
Example: | /cb_alias dcx beginmove 0
Return | nomove Return this value to block the window moving.
beginsize
When the dialog is about to be resized.
Syntax: | /cb_alias DNAME beginsize ID
Example: | /cb_alias dcx beginsize 0
Return | nosize Return this value to block the window resizing.
changing
When the dialog is about to be resized or moved. The parameters passed are the dimensions which the dialog is about to become.
Syntax: | /cb_alias DNAME changing ID TYPE X Y W H
Example: | /cb_alias dcx changing 0 sizing 50 30 300 150
Parameters:
TYPE | Type of changing event.
moving | Position is changing. W and H can be ignored as they are not changing.
sizing | Size is changing. X and Y can be ignored as they are not changing.
both | Both position and size is changing.
Return | nosize Return this value to block the window from resizing. nomove Return this value to block the window from moving. nochange Return this value to block the window from moving and resizing.
close
When the dialog is closed (including by pressing escape).
Syntax: | /cb_alias DNAME close ID
Example: | /cb_alias dcx close 0
Return | noclose Return this value to block the window closing.
Note. You will have to use /xdialog -x to close the dialog instead of mIRC's /dialog -x if you return noclose on this event. Should only be used with non-modal dialogs (modal dialogs are created using $dialog). If you are using a modal dialog, refer to scclose. Returning noclose here will cause the modal dialog to be unclosable. If you wish to close docked dialogs within this event, you must use a timer with /xdialog -x to close the docked dialog.
dclick
When the left mouse button is double-clicked.
Syntax: | /cb_alias DNAME dclick ID
Example: | /cb_alias dcx dclick 0
deactivate
Event triggered when dialog is deactivated.
Syntax: | /cb_alias DNAME deactivate ID
Example: | /cb_alias dcx deactivate 0
denter
Event triggered when the mouse enters the dialog client area.
Syntax: | /cb_alias DNAME denter ID
Example: | /cb_alias dcx denter 0
dleave
Event triggered when the mouse leaves the dialog client area.
Syntax: | /cb_alias DNAME dleave ID
Example: | /cb_alias dcx dleave 0
dragbegin
Triggers when one or more files are dropped onto the control.
Syntax: | /cb_alias DNAME dragbegin ID COUNT
Example: | /cb_alias dcx dragbegin 0 3
Parameters:
COUNT | Total number of files dragged into the control.
Return | cancel to stop the drag drop events from occuring.
dragfile
The filename of the file that has
Syntax: | /cb_alias DNAME dragfile ID FILENAME
Example: | /cb_alias dcx dragfile 0 C:/mIRC/blah.txt
dragfinish
Event triggered when processing of drag drop is complete.
Syntax: | /cb_alias DNAME dragfinish ID
Example: | /cb_alias dcx dragfinish 0
endmove
When the dialog has finished being moved.
Syntax: | /cb_alias DNAME endmove ID
Example: | /cb_alias dcx endmove 0
endsize
When the dialog has finished being resized.
Syntax: | /cb_alias DNAME endsize ID
Example: | /cb_alias dcx endsize 0
focus
Triggered when the dialog gains the focus.
Syntax: | /cb_alias DNAME focus ID
Example: | /cb_alias dcx focus 0
focusout
Triggered when the dialog loses the focus.
Syntax: | /cb_alias DNAME focusout ID
Example: | /cb_alias dcx focusout 0
isverbose
Sent when the dialog is marked. This allows the user to enable or disable verbose error messages within their script. By default, the return value is $true.
Syntax: | /cb_alias DNAME isverbose ID
Example: | /cb_alias dcx isverbose 0
Return | $false to disable error messages in the status window.
lbdblclk
When the left mouse button is double-clicked.
Syntax: | /cb_alias DNAME lbdblclk ID
Example: | /cb_alias dcx lbdblclk 0
lbdown
When the left mouse button is pressed.
Syntax: | /cb_alias DNAME lbdown ID
Example: | /cb_alias dcx lbdown 0
lbup
When the left mouse button is released.
Syntax: | /cb_alias DNAME lbup ID
Example: | /cb_alias dcx lbup 0
max
When the dialog is about to be maximized.
Syntax: | /cb_alias DNAME max ID
Example: | /cb_alias dcx max 0
Return | stop Return this value to block the window maximizing.
mbdblclk
When the middle mouse button is double-clicked.
Syntax: | /cb_alias DNAME mbdblclk ID
Example: | /cb_alias dcx mbdblclk 0
mbdown
When the middle mouse button is pressed.
Syntax: | /cb_alias DNAME mbdown ID
Example: | /cb_alias dcx mbdown 0
mbup
When the middle mouse button is released.
Syntax: | /cb_alias DNAME mbup ID
Example: | /cb_alias dcx mbup 0
min
When the dialog is about to be minimized.
Syntax: | /cb_alias DNAME min ID
Example: | /cb_alias dcx min 0
Return | stop Return this value to block the window minimizing.
mouse
When the mouse hovers over the dialog.
Syntax: | /cb_alias DNAME mouse ID
Example: | /cb_alias dcx mouse 0
mouseenter
When the mouse enters the dialog.
Syntax: | /cb_alias DNAME mouseenter ID
Example: | /cb_alias dcx mouseenter 0
mouseleave
When the mouse leaves the dialog.
Syntax: | /cb_alias DNAME mouseleave ID
Example: | /cb_alias dcx mouseleave 0
moving
When the dialog is being moved.
Syntax: | /cb_alias DNAME moving ID
Example: | /cb_alias dcx moving 0
mwheel
Event triggered when the mouse wheel is scrolled.
Syntax: | /cb_alias DNAME mwheel ID +FLAGS DIRECTION
Example: | /cb_alias dcx mwheel 0 +cs up
Parameters:
+FLAGS | Keystate flags during scroll.
c | Control key.
l | Left mouse button.
m | Middle mouse button.
r | Right mouse button.
s | Shift key.
DIRECTION | The direction which the wheel is scrolling.
up | Upwards.
down | Downwards.
rbdblclk
When the right mouse button is double-clicked.
Syntax: | /cb_alias DNAME rbdblclk ID
Example: | /cb_alias dcx rbdblclk 0
rbdown
When the right mouse button is pressed.
Syntax: | /cb_alias DNAME rbdown ID
Example: | /cb_alias dcx rbdown 0
rbup
When the right mouse button is released.
Syntax: | /cb_alias DNAME rbup ID
Example: | /cb_alias dcx rbup 0
rclick
When the right mouse button is clicked.
Syntax: | /cb_alias DNAME rclick ID
Example: | /cb_alias dcx rclick 0
restore
When the dialog is about to be restored.
Syntax: | /cb_alias DNAME restore ID
Example: | /cb_alias dcx restore 0
scclose
Only triggered when the dialog is closed using the X button or the system menu.
Syntax: | /cb_alias DNAME scclose ID
Example: | /cb_alias dcx scclose 0
Return | noclose Return this value to block the window closing.
Note. This is provided as a way to stop the user from closing a modal dialog. Pressing escape will still close the dialog. The normal mIRC command /dialog -x will still work.
sclick
When the left mouse button is clicked.
Syntax: | /cb_alias DNAME sclick ID
Example: | /cb_alias dcx sclick 0
sizing
When the dialog is being resized where $3 is the new width and $4 is the new height.
Syntax: | /cb_alias DNAME sizing ID W H
Example: | /cb_alias dcx sizing 0 90 60
themechanged
Event triggered when aspects of the windows theme is changed.
Syntax: | /cb_alias DNAME themechanged ID
Example: | /cb_alias dcx themechanged 0
zlayershow
Event triggered when a control is about to be displayed by calling /xdialog -z with the +s flag.
Syntax: | /cb_alias DNAME zlayershow ID ZINDEX CID
Example: | /cb_alias dcx zlayershow 0 1 4
Parameters:
ZINDEX | The internal control index being shown.
CID | The ID of the control being shown.
| /xdialog Flags -a -b -c -d -f -g -h -j -l -m -n -q -r -s -t -w -x -z -E -P -R -S -T -V $xdialog() Properties alias focusid id isid ismarked ismenu key mouse mouseid nextid parent visible zlayer zlayercurrent Events activate beginmove beginsize changing close dclick deactivate denter dleave dragbegin dragfile dragfinish endmove endsize focus focusout isverbose lbdblclk lbdown lbup max mbdblclk mbdown mbup min mouse mouseenter mouseleave moving mwheel rbdblclk rbdown rbup rclick restore scclose sclick sizing themechanged zlayershow

Contact | © 2005-2007 | Last Updated: 25th December, 07