From WikiChip
Difference between revisions of "mirc/identifiers/$style"
< mirc‎ | identifiers

(Properties)
m
 
Line 6: Line 6:
 
== Paramters ==
 
== Paramters ==
  
* '''N''' - use N = 1 for checked, N = 2 for disabled and N = 2 for both
+
* '''N''' - use N = 1 for checked, N = 2 for disabled and N = 3 for both
  
 
== Properties ==
 
== Properties ==
 
None
 
None
 
  
 
'''Note''': The $style(N) identifier must be the first word in the menu definition.
 
'''Note''': The $style(N) identifier must be the first word in the menu definition.
Line 16: Line 15:
 
== Example ==
 
== Example ==
 
<source lang="mIRC">menu status {
 
<source lang="mIRC">menu status {
 
+
  $iif($server == $null,$style(2)) Server Info
$iif($server == $null,$style(2)) Server Info
+
  .$style(1) This line is always checked:halt
 
+
  .Motd:/motd
.Motd:/motd
+
  .Time:/time
 
+
}</source>
.Time:/time
 
 
 
}
 
 
 
</source>
 
  
 
== Compatibility ==
 
== Compatibility ==

Latest revision as of 19:34, 8 January 2018

$style can be used inside menu definition to create a checked or disabled (or both) menu item.

Synopsis[edit]

$style(N)

Paramters[edit]

  • N - use N = 1 for checked, N = 2 for disabled and N = 3 for both

Properties[edit]

None

Note: The $style(N) identifier must be the first word in the menu definition.

Example[edit]

menu status  {
  $iif($server == $null,$style(2)) Server Info
  .$style(1) This line is always checked:halt
  .Motd:/motd
  .Time:/time
}

Compatibility[edit]

Added: mIRC v5.9
Added on: 26 Apr 2001
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]