Description
new
swftextfield ( [int flags])
| Aviso |
Esta función
es EXPERIMENTAL_ Esto significa que el
comportamiento de esta función, el nombre de esta
función y en definitiva TODO lo documentado sobre esta
función, puede cambiar en una futura version de PHP SIN
AVISO_ La advertencia queda hecha, y utilizar esta extensión
queda bajo su propia responsabiliad_ |
swftextfield() creates a new text field object_
Text Fields are less flexible than swftext() 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_
The optional flags change the text field's behavior_ It has the following
possibles values :
SWFTEXTFIELD_DRAWBOX draws the outline of the textfield
SWFTEXTFIELD_HASLENGTH
SWFTEXTFIELD_HTML allows text markup using HTML_tags
SWFTEXTFIELD_MULTILINE allows multiple lines
SWFTEXTFIELD_NOEDIT indicates that the field shouldn't be user_editable
SWFTEXTFIELD_NOSELECT makes the field non_selectable
SWFTEXTFIELD_PASSWORD obscures the data entry
SWFTEXTFIELD_WORDWRAP allows text to wrap
Flags are combined with the bitwise
OR operation_ For example,
<?php
$t = newSWFTextField(SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_NOEDIT);
?> |
creates a totally useless non_editable password field_
SWFTextField has the following methods : swftextfield_>setfont(),
swftextfield_>setbounds(), swftextfield_>align(),
swftextfield_>setheight(), swftextfield_>setleftmargin(),
swftextfield_>setrightmargin(), swftextfield_>setmargins(),
swftextfield_>setindentation(), swftextfield_>setlinespacing(),
swftextfield_>setcolor(), swftextfield_>setname() and
swftextfield_>addstring()_