Class html_Button
basic class for all html components with standart events
- html_Component implements html_iComponent uses html_tComponent
-
html_Events
-
html_Button
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setCaption( string $caption, string $caption2 = "", boolean $caption2beforecaption = false )
set the caption of a button |
public
|
#
setFlatStyle( boolean $b, boolean $border = true, boolean $round = false )
enable/disable the flat style of a button |
public
|
#
setFlatStyleHighlight( boolean $b, string $color = COLOR_FORM_HIGHLIGHT_DEFAULT, boolean $borderOnly = false )
set the flat style highlight options |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Methods inherited from html_Events
htmlEvents()
,
setHint()
,
setIText()
,
setOnClick()
,
setOnDblClick()
,
setOnKeyDown()
,
setOnKeyPress()
,
setOnKeyUp()
,
setOnMouseDown()
,
setOnMouseMove()
,
setOnMouseOut()
,
setOnMouseOver()
,
setOnMouseUp()
,
setTooltip()
Methods inherited from html_Component
buildChilds()
,
getChilds()
,
getName()
,
setClass()
,
setName()
,
setStyle()
Methods used from html_tComponent
tBuildChilds()(as tBuildChilds())
Properties summary
public
string
|
$m_caption
cation of button, image src (gif/jpg/png) or html_Component (for caption you can use an image url can contain a alt text and alt text + title seperated by | or give the caption title only) |
#
""
|
public
string
|
$m_caption2
cation2 of button used if cation is a image or for insert html block elements on button, could be also a html_Component |
#
""
|
public
boolean
|
$m_caption2beforecaption
set the cation2 before cation |
#
false
|
public
string
|
$m_captionSpacer
spacer at left and right around caption |
#
' '
|
public
boolean
|
$m_flatStyle
set flat button or OS style of button |
#
false
|
public
boolean
|
$m_border
set border if style is flat |
#
true
|
public
boolean
|
$m_submit
enable submit |
#
false
|
public
boolean
|
$m_highlight
enable highlight if button flat |
#
true
|
public
string
|
$m_highlight_color
highlight color |
#
COLOR_FORM_HIGHLIGHT_DEFAULT
|
public
boolean
|
$m_highlight_only_border
only highlight border |
#
false
|
public
string
|
$m_color
color of button if button flat |
#
COLOR_FORM_BUTTON_DEFAULT
|
public
string
|
$m_hotkey
a character for the hotkey (most of browsers use the hotkey with [Alt], Safari use [Ctrl]) |
#
""
|
public
boolean
|
$m_enabled
disable the element |
#
true
|
public
string
|
$m_value
button value |
#
""
|
public
string
|
$m_width
width of html component |
#
null
|
public
string
|
$m_height
height of html component |
#
null
|
public
string
|
$m_fontsize
fontsize of html component |
#
null
|
public
string
|
$m_fontweight
fontweight of html component |
#
null
|
public
boolean
|
$m_round_border
round the border of the button |
#
false
|
public
string
|
$m_imgMargin
margin between caption and img |
#
'5px'
|
public
string
|
$m_cursor
css cursor |
#
'pointer'
|
public
string
|
$m_imgStyle
overwrite $this->m_imgMargin |
#
''
|
public
string
|
$m_imgClass
overwrite $this->m_imgMargin |
#
''
|
Properties inherited from html_Events
$m_itext
,
$m_onClick
,
$m_onDblClick
,
$m_onKeyDown
,
$m_onKeyPress
,
$m_onKeyUp
,
$m_onMouseDown
,
$m_onMouseMove
,
$m_onMouseOut
,
$m_onMouseOver
,
$m_onMouseUp
,
$m_tooltip