PHP 매뉴얼
이전 |  | 다음

# SWFTextField

(PHP 4 >= 4.0.5)

SWFTextField -- Creates a text field object

## Description

new swftextfield ( [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().

이전 | 처음으로 | 다음
SWFTextField->setrightMargin | 위로 | Miscellaneous Functions