PHP: SWFTextField->__construct() - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFTextField->addChars() SWFTextField

Last updated: Sat, 27 Jan 2007

view this page in

# SWFTextField->__construct()

(no version information, might be only in CVS)

SWFTextField->__construct() -- Creates a text field object

## Описание

class SWFTextField {
SWFTextField __construct ( [int flags] )
}

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

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().

add a note User Contributed Notes
SWFTextField->__construct()
There are no user contributed notes for this page.
SWFTextField->addChars() SWFTextField

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST