From WikiChip
Editing mirc/dialog components

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
__NOTOC__{{mirc title|Dialog Components}}
+
__NOTOC__
 +
{{mIRC Guide}}
 
'''Dialog Components''' are individual [[Dialogs - mIRC|dialog]] elements that can be added onto the main dialog window. Below is a list of all the natively provided dialog components in [[mIRC]].
 
'''Dialog Components''' are individual [[Dialogs - mIRC|dialog]] elements that can be added onto the main dialog window. Below is a list of all the natively provided dialog components in [[mIRC]].
  
Line 10: Line 11:
 
     | [[File:MIRCdlgButton_n.png|link=#Button|center|135px]]
 
     | [[File:MIRCdlgButton_n.png|link=#Button|center|135px]]
 
     || [[File:MIRCdlgCheck_n.png|link=#Check|center|135px]]
 
     || [[File:MIRCdlgCheck_n.png|link=#Check|center|135px]]
     || [[File:MIRCdlgToggle_n.png|link=#Check|center|135px]]
+
     || [[File:MIRCdlgToggle_n.png|link=#Toggle_Button|center|135px]]
 
     || [[File:MIRCdlgLabel_n.png|link=#Text|center|135px]]
 
     || [[File:MIRCdlgLabel_n.png|link=#Text|center|135px]]
 
   |- style="color: rgba(0,0,0,.65);"
 
   |- style="color: rgba(0,0,0,.65);"
     ! Group Box !! Icon !! Edit !! Scroll
+
     ! Group !! Icon !! Edit !! Scroll
 
   |-
 
   |-
     | [[File:MIRCdlgGroup_n.png|link=#Group_Box|center|135px]]
+
     | [[File:MIRCdlgGroup_n.png|link=#Group|center|135px]]
 
     || [[File:MIRCdlgImage_n.png|link=#Icon|center|135px]]
 
     || [[File:MIRCdlgImage_n.png|link=#Icon|center|135px]]
 
     || [[File:MIRCdlgText_n.png|link=#Edit|center|135px]]
 
     || [[File:MIRCdlgText_n.png|link=#Edit|center|135px]]
Line 284: Line 285:
  
  
== Group Box ==
+
== Group ==
 
This is a static control with a group box frame and an optional title that shows up at the top of the frame.
 
This is a static control with a group box frame and an optional title that shows up at the top of the frame.
 
'''Note:''' This only displays the group box but does not actually group the controls that you position within it.
 
If you want to e.g. enable / disable them together, you need to do that programmatically.
 
  
 
=== Synopsis ===
 
=== Synopsis ===
Line 298: Line 296:
 
! Style !! Description
 
! Style !! Description
 
|-
 
|-
| disable || Disables the group box.
+
| disable || Disables the group.
 
|-
 
|-
| hide || Makes the group box invisible.
+
| hide || Makes the group invisible.
 
|-
 
|-
 
| result || In modal mode, returns the text of the button.
 
| result || In modal mode, returns the text of the button.
Line 542: Line 540:
 
   option dbu
 
   option dbu
 
   
 
   
   edit "Left", 1, 10 10 80 20,
+
   edit "Lef", 1, 10 10 80 20,
 
   edit "Center", 2, 10 40 80 20, center
 
   edit "Center", 2, 10 40 80 20, center
 
   edit "Right", 3, 10 70 80 20, right
 
   edit "Right", 3, 10 70 80 20, right
Line 627: Line 625:
 
== Link ==
 
== Link ==
 
A link control, just like a label, is a static control with the additional behavior that, when you put your mouse over the control, the cursor because a little hand, indicating you can interact with that link, usually to open an URL.
 
A link control, just like a label, is a static control with the additional behavior that, when you put your mouse over the control, the cursor because a little hand, indicating you can interact with that link, usually to open an URL.
 
To make the link actually open the web page, you need to code an ON DIALOG SCLICK event.
 
  
 
=== Synopsis ===
 
=== Synopsis ===
Line 689: Line 685:
 
   link "http://www.wikichip.org/", 1, 4 10 80 12
 
   link "http://www.wikichip.org/", 1, 4 10 80 12
 
   button "Done", 4, 50 30 40 12, ok
 
   button "Done", 4, 50 30 40 12, ok
}
+
}</source>
; click event
 
on *:dialog:example:sclick:1: url -a $did(example,$did)</source>
 
 
<div style="display: block; text-align: center;">[[File:MIRCdlgLink Example.png]]</div>
 
<div style="display: block; text-align: center;">[[File:MIRCdlgLink Example.png]]</div>
  
Line 783: Line 777:
 
| result || In modal mode, returns the text of the button.
 
| result || In modal mode, returns the text of the button.
 
|-
 
|-
| group || Identifies the first radio button in a group of severals radio buttons, only one can be checked at a time.
+
| group || Groups severals radios together, only one can be checked at a time.
 
|}
 
|}
  
Line 954: Line 948:
 
| sort || Sorts the items in the list.
 
| sort || Sorts the items in the list.
 
|-
 
|-
| multsel || Allows multiple items to be selected without holding the click/shift/control.
+
| multsel || Allows multiple items to be selected at once.
 
|-
 
|-
| extsel || Allows extra selection support, you can use the control/shift keys to keep the selection and click on different entry in the list.
+
| extsel || Allows extra selection support.
 
|-
 
|-
 
| vsbar || Always show the vertical scrollbar.
 
| vsbar || Always show the vertical scrollbar.
Line 966: Line 960:
 
| radio || Turns the list into a list of radio items.
 
| radio || Turns the list into a list of radio items.
 
|}
 
|}
 
==== /did ====
 
 
* -f - sets focus on the list
 
* -e - enables the list
 
* -b - disables the list
 
* -v - makes the list visible
 
* -h - hides the list
 
* -c - selects the Nth line in the list: /did -c <name> <id> <line>
 
* -u - unselects the Nth line in the list
 
* -k - keeps the selection of others lines when selecting/unselecting
 
* -s - if you used the 'check' or 'radio' style, mark the check/radio of the Nth line as checked
 
* -l - if you used the 'check' or 'radio' style, mark the check/radio of the Nth line as unchecked
 
* -r - clears the list
 
* -a - adds a line to the end of the list
 
* -d - deletes the Nth line in the list
 
* -i - inserts a line at Nth line position in the list
 
* -o - overwrites the Nth line with the next text in the list
 
* -z - resets the width of the horizontal scrollbar in the list
 
 
==== $did ====
 
 
$did(<name>,<id>,[N])[.property]
 
 
Without any properties, returns the text of the Nth line in the list, same as the .text property.
 
 
* .text - returns the Nth line in the list
 
* .len - returns the length of the Nth line in the list
 
* .lines - returns the number of lines in the list
 
* .sel - returns the line number of the Nth line selected line in the list, if N = 0, returns the total number of selected line
 
* .seltext - returns the first selected line in the list
 
* .next - returns the id of the next control in tab key order
 
* .prev - returns the id of the previous control in tab key order
 
* .visible - returns $true if the list is visible, otherwise $false
 
* .enabled - returns $true if the list is enabled, otherwise $false
 
* .csel - if the 'radio' or 'check' style is used, returns the line number of the Nth checked line in the list, if N = 0, returns the total number of checked line
 
* .cstate - if the 'radio' or 'check' style is used, returns the state of the check/radio control of the Nth line in the list 1 = checked, 0 = unchecked
 
  
 
=== Events ===
 
=== Events ===
Line 1,072: Line 1,029:
 
| hsbar || Always show the horizontal scrollbar.
 
| hsbar || Always show the horizontal scrollbar.
 
|}
 
|}
 
==== /did ====
 
 
* -f - sets focus on the combo
 
* -e - enables the combo
 
* -b - disables the combo
 
* -v - makes the combo visible
 
* -h - hides the combo
 
* -c - selects the Nth line in the combo: /did -c <name> <id> <line>
 
* -r - clears the combo, use N = 0 to clear the text of the editable editbox of the combo
 
* -a - adds a line to the end of the combo, use N = 0 to add to the editable editbox of the combo
 
* -d - deletes the Nth line in the combo
 
* -i - inserts a line at Nth line position in the combo
 
* -o - overwrites the Nth line with the next text in the combo
 
 
==== $did ====
 
 
$did(<name>,<id>,[N])[.property]
 
 
Without any properties, returns the text of the Nth line in the list, same as the .text property.
 
 
* .text - returns the Nth line in the combo, use N = 0 to access the text of the editable editbox of the combo
 
* .len - returns the length of the Nth line in the combo
 
* .lines - returns the number of lines in the combo
 
* .sel - returns the line number selected line in the combo
 
* .seltext - returns the first selected line in the combo
 
* .next - returns the id of the next control in tab key order
 
* .prev - returns the id of the previous control in tab key order
 
* .visible - returns $true if the list is visible, otherwise $false
 
* .enabled - returns $true if the list is enabled, otherwise $false
 
  
 
=== Events ===
 
=== Events ===
Line 1,140: Line 1,067:
  
  
[[Category:mIRC|dialog components]]
+
[[Category:mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)