
removed footer date for the time being (to prevent too much changes in documentation) implemented cleaning of GLUT bitmap font lists removed unused function in uicontext class renamed chm file added missing documentation back in nvcontext.xml git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2254 8e941d3f-bd1b-0410-a28a-d453659cc2b4
69 lines
3.4 KiB
HTML
69 lines
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
<title>UIContext.doLabel</title>
|
|
<link rel="stylesheet" href="../fpdoc.css" type="text/css">
|
|
|
|
</head>
|
|
<body>
|
|
<table class="bar" width="100%" border="0" cellpadding="4" cellspacing="0">
|
|
<tr>
|
|
<td><b>[<a href="../nvcontext/index.html">Overview</a>][<a href="../nvcontext/index-4.html">Classes</a>][<a href="../nvcontext/index-8.html">Index</a>]</b></td>
|
|
<td align="right"><span class="bartitle">Reference for unit 'nvContext' (<a href="../index.html">#nvidia-widgets</a>)</span></td>
|
|
</tr>
|
|
</table>
|
|
<h1>UIContext.doLabel</h1>
|
|
<p>UI method for drawing a static text label</p>
|
|
<h2>Declaration</h2>
|
|
<p>Source position: nvcontext.pas line 82</p>
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">public</span> <span class="kw">procedure</span> <a href="../nvcontext/uicontext.html">UIContext</a><span class="sym">.</span>doLabel<span class="sym">(</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">const </span>r<span class="sym">: </span><a href="../nvtypes/rect.html">Rect</a><span class="sym">;</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"> <span class="kw">const </span>Text<span class="sym">: </span><span class="sym">;</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"> style<span class="sym">: </span>Integer <span class="sym">=</span> <span class="num">0</span></span></tt></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td><p><tt><span class="code"><span class="sym">)</span><span class="sym">;</span></span></tt></p></td>
|
|
</tr>
|
|
</table>
|
|
<h2>Arguments</h2>
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td valign="top"><p><tt><span class="code">r</span></tt></p></td>
|
|
<td><p> </p></td>
|
|
<td><p class="cmt">optionally provides a location and size for the label</p></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><p><tt><span class="code">Text</span></tt></p></td>
|
|
<td><p> </p></td>
|
|
<td><p class="cmt">Text to display for the label (can have several lines)</p></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><p><tt><span class="code">style</span></tt></p></td>
|
|
<td><p> </p></td>
|
|
<td><p class="cmt">optional style flag to modify the look</p></td>
|
|
</tr>
|
|
</table>
|
|
<h2>Description</h2>
|
|
<p>The label displays a non interactive text.</p>
|
|
<p>The style flag enables to draw the label in two distinct styles. The first one is default <var>(style = 0)</var> and displays the label simply as text. The alternative <var>(style = 1)</var> displays the label with a frame around it. An example is shown in the following figure.</p>
|
|
<img alt="" src="../fpdoc/images/label.png">
|
|
|
|
<p>The <var>Text</var> variable can have multiple lines.</p>
|
|
<p>Example code how to implement a label</p>
|
|
<pre>none<span class="sym">.</span>Rect<span class="sym">(</span><span class="num">0</span><span class="sym">,</span> <span class="num">0</span><span class="sym">)</span><span class="sym">;</span>
|
|
ui<span class="sym">.</span>beginGroup<span class="sym">(</span>GroupFlags_GrowDownFromRight<span class="sym">)</span><span class="sym">;</span>
|
|
ui<span class="sym">.</span>doLabel<span class="sym">(</span>none<span class="sym">,</span> Text<span class="sym">)</span><span class="sym">;</span>
|
|
ui<span class="sym">.</span>endGroup<span class="sym">;</span>
|
|
</pre>
|
|
</body>
|
|
</html>
|