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 1,130: Line 1,124:
 
}
 
}
 
on 1:dialog:example:init:*: {
 
on 1:dialog:example:init:*: {
   did -a example 1 Item A
+
   did -a example 1 Item Aлл
 
   did -a example 1 Item B
 
   did -a example 1 Item B
 
   did -a example 1 Item C
 
   did -a example 1 Item C
Line 1,140: Line 1,134:
  
  
[[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)