From WikiChip
Editing mirc/commands/drawtext

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:
{{mirc title|/drawtext Command}}
+
{{mIRC menu}}
 
The '''/drawtext command''' draws text at the specified co-ordinates. If you use a negative number for the font size, it will match the size of fonts in the font dialog. The /drawtext command will use some default options for anti-aliasing that you cannot change (yet), meaning that a text drawn in black may not be drawn only using the expected color, this can be a real concern when using {{mIRC|/drawfill}} to fill an area with text inside it.
 
The '''/drawtext command''' draws text at the specified co-ordinates. If you use a negative number for the font size, it will match the size of fonts in the font dialog. The /drawtext command will use some default options for anti-aliasing that you cannot change (yet), meaning that a text drawn in black may not be drawn only using the expected color, this can be a real concern when using {{mIRC|/drawfill}} to fill an area with text inside it.
  
 
== Synopsis ==
 
== Synopsis ==
  /drawtext -hnrpbocvd <@win> <color> [color] [fontname fontsize] <x y [w h]> <text>
+
  /drawtext -hnrpboc <@win> <color> [color] [fontname fontsize] <x y [w h]> <text>
  
 
== Switches ==
 
== Switches ==
 
* '''-p''' - processes and interprets control codes in the text
 
* '''-p''' - processes and interprets control codes in the text
 
* '''-b''' - indicates that you have specified the second color parameter as the background color for the text
 
* '''-b''' - indicates that you have specified the second color parameter as the background color for the text
 +
* '''-o''' - means the specified font should be in bold
 
* '''-c''' - means that you have specified the [w h] values as the rectangle in which text should be printed. Text will be clipped if it extends beyond this rectangle
 
* '''-c''' - means that you have specified the [w h] values as the rectangle in which text should be printed. Text will be clipped if it extends beyond this rectangle
 
* '''-h''' - highlights the windows icon if it is minimized
 
* '''-h''' - highlights the windows icon if it is minimized
 
* '''-n''' - prevents the display from being updated immediately
 
* '''-n''' - prevents the display from being updated immediately
 
* '''-r''' - indicates that the colors are in RGB format
 
* '''-r''' - indicates that the colors are in RGB format
* '''-o''' - Attempt to draw the text in bold. A $chr(2) is inserted at the beginning of the string and is interpreted (but the others control codes won't be). If you use -p as well as -o, control code will be interpreted and having a $chr(2) in your text will break the bold.
 
* '''-i''' - Same as -o but for italic with $chr(29)
 
* '''-v''' - Draw text from a binvar
 
* '''-d''' - disable tab support
 
  
 
== Parameters ==
 
== Parameters ==
Line 38: Line 35:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:mIRC commands|drawtext command - mIRC]]
+
[[Category:MIRC commands]]

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)