function.swftextfield.construct.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 112 行
HTML
112 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Creates a text field object</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swftextfield.align.html">SWFTextField->align</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swftextfield.setbounds.html">SWFTextField->setBounds</a></div> <div class="up"><a href="class.swftextfield.html">SWFTextField</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.swftextfield.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">SWFTextField->__construct</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SWFTextField->__construct</span> — <span class="dc-title">Creates a text field object</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="classsynopsis"> <div class="ooclass"><a href="class.swftextfield.html" class="classname">SWFTextField</a></div> <div class="methodsynopsis dc-description"> <span class="type">SWFTextField</span> <span class="methodname"><b><b>__construct</b></b></span> ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$flags</tt></span> ] )</div> </div> <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, andsurrounding documentation may change without notice in a future release of PHP.This function should be used at your own risk.</p></div> <p class="para"> <b>swftextfield()</b> creates a new text field object. Text Fields are less flexible than <b>swftext()</b> objects- they can't be rotated, scaled non-proportionally, or skewed, but they can be used as form entries, and they can use browser-defined fonts. </p> <p class="para"> The optional flags change the text field's behavior. It has the following possibles values : <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_DRAWBOX draws the outline of the textfield </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_HASLENGTH </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_HTML allows text markup using HTML-tags </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_MULTILINE allows multiple lines </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user-editable </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_NOSELECT makes the field non-selectable </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_PASSWORD obscures the data entry </span> </li> <li class="listitem"> <span class="simpara"> SWFTEXTFIELD_WORDWRAP allows text to wrap </span> </li> </ul> Flags are combined with the bitwise <a href="language.operators.bitwise.html" class="link">OR</a> operation. For example, <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$t </span><span style="color: #007700">= </span><span style="color: #0000BB">newSWFTextField</span><span style="color: #007700">(</span><span style="color: #0000BB">SWFTEXTFIELD_PASSWORD </span><span style="color: #007700">| </span><span style="color: #0000BB">SWFTEXTFIELD_NOEDIT</span><span style="color: #007700">); <br /></span><span style="color: #0000BB">?></span></span></code></div> </div> creates a totally useless non-editable password field. </p> <p class="simpara"> SWFTextField has the following methods : <a href="function.swftextfield.setfont.html" class="function">swftextfield->setfont()</a>, <a href="function.swftextfield.setbounds.html" class="function">swftextfield->setbounds()</a>, <a href="function.swftextfield.align.html" class="function">swftextfield->align()</a>, <a href="function.swftextfield.setheight.html" class="function">swftextfield->setheight()</a>, <a href="function.swftextfield.setleftmargin.html" class="function">swftextfield->setleftmargin()</a>, <a href="function.swftextfield.setrightmargin.html" class="function">swftextfield->setrightmargin()</a>, <a href="function.swftextfield.setmargins.html" class="function">swftextfield->setmargins()</a>, <a href="function.swftextfield.setindentation.html" class="function">swftextfield->setindentation()</a>, <a href="function.swftextfield.setlinespacing.html" class="function">swftextfield->setlinespacing()</a>, <a href="function.swftextfield.setcolor.html" class="function">swftextfield->setcolor()</a>, <a href="function.swftextfield.setname.html" class="function">swftextfield->setname()</a> and <a href="function.swftextfield.addstring.html" class="function">swftextfield->addstring()</a>. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swftextfield.align.html">SWFTextField->align</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swftextfield.setbounds.html">SWFTextField->setBounds</a></div> <div class="up"><a href="class.swftextfield.html">SWFTextField</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?