Difference between revisions of "Skinning HowTo/XUI Text Entry Widgets"
Rand Linden (talk | contribs) |
|||
Line 1: | Line 1: | ||
This page describes the XML attributes for the XUI text entry widgets. These are some of the XML elements and parameters used within the floaters, panels, and so forth, that make up the viewer user interface. They are used by the [[Skinning How To/The XML files and what they do | XUI files]] in the '''\skins\default\xui''' folders. | {{XUI Nav}} | ||
== Overview == | |||
This page describes the XML attributes for the XUI text entry widgets. These are some of the XML elements and parameters used within the floaters, panels, and so forth, that make up the viewer user interface. They are used by the [[Skinning How To/The XML files and what they do | XUI files]] in the '''\skins\default\xui''' folders. | |||
Many XUI elements share the same parameters. Rather than repeatedly describing them, we just list their names here and describe them at [[Skinning HowTo/Common XUI XML parameters]]. | Many XUI elements share the same parameters. Rather than repeatedly describing them, we just list their names here and describe them at [[Skinning HowTo/Common XUI XML parameters]]. | ||
== line_editor parameters == | |||
<line_editor> creates a single line text box | <line_editor> creates a single line text box | ||
Line 29: | Line 25: | ||
</floater> | </floater> | ||
===Common parameters=== | |||
*'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | *'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | *'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | ||
Line 35: | Line 31: | ||
*'''Others:''' [[Skinning HowTo/Common XUI XML parameters#tab_group|tab_group]] | *'''Others:''' [[Skinning HowTo/Common XUI XML parameters#tab_group|tab_group]] | ||
===Specific parameters=== | |||
==== max_length ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bevel_style ==== | |||
''Optional.'' | ''Optional.'' | ||
* none | * none | ||
Line 47: | Line 43: | ||
* line | * line | ||
* texture | * texture | ||
==== border_style ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_thickness ==== | |||
''Optional.'' | ''Optional.'' | ||
==== select_on_focus ==== | |||
''Optional.'' | ''Optional.'' | ||
==== select_all_focus_received ==== | |||
''Optional.'' | ''Optional.'' | ||
==== handle_edit_keys_directly ==== | |||
''Optional.'' | ''Optional.'' | ||
==== cursor_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== text_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== text_readonly_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_readonly_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_writeable_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_focus_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== handle_edit_keys_directly ==== | |||
''Optional.'' | ''Optional.'' | ||
==== commit_on_focus_lost ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hidden ==== | |||
''Optional.'' | ''Optional.'' | ||
==== is_unicode ==== | |||
''Optional.'' | ''Optional.'' | ||
==== increment ==== | |||
''Optional.'' | ''Optional.'' | ||
==== initial_val ==== | |||
''Optional.'' | ''Optional.'' | ||
==== max_val ==== | |||
''Optional.'' | ''Optional.'' | ||
==== min_val ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_drop_shadow_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== drop_shadow_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== h_pad ==== | |||
''Optional.'' | ''Optional.'' | ||
==== prevalidate ==== | |||
''Optional.'' | ''Optional.'' | ||
==== v_pad ==== | |||
''Optional.'' | ''Optional.'' | ||
==== word_wrap ==== | |||
''Optional.'' | ''Optional.'' | ||
== name_editor parameters == | |||
*Class LLNameEditor : LLLineEditor : LLUICtrl : LLView | *Class LLNameEditor : LLLineEditor : LLUICtrl : LLView | ||
*In source file newview/llnameditor.cpp | *In source file newview/llnameditor.cpp | ||
Line 120: | Line 116: | ||
</floater> | </floater> | ||
===Common parameters=== | |||
*'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | *'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | *'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Text|Text]]:''' font, font_size, font_style | *'''[[Skinning HowTo/Common XUI XML parameters#Text|Text]]:''' font, font_size, font_style | ||
===Specific parameters=== | |||
==== bevel_style ==== | |||
==== bg_readonly_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_style ==== | |||
==== border_thickness ==== | |||
==== max_length ==== | |||
==== text_readonly_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== is_unicode ==== | |||
''Optional.'' | ''Optional.'' | ||
== text parameters == | |||
*Class LLTextBox : LLUICtrl : LLView | *Class LLTextBox : LLUICtrl : LLView | ||
*In source file llui/lltextbox.cpp | *In source file llui/lltextbox.cpp | ||
Line 158: | Line 154: | ||
</floater> | </floater> | ||
===Common parameters=== | |||
*'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | *'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | *'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | ||
Line 164: | Line 160: | ||
*'''Others:''' [[Skinning HowTo/Common XUI XML parameters#hover_cursor|hover_cursor]] | *'''Others:''' [[Skinning HowTo/Common XUI XML parameters#hover_cursor|hover_cursor]] | ||
===Specific parameters=== | |||
==== type ==== | |||
''Optional.'' | ''Optional.'' | ||
==== length ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_drop_shadow_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== drop_shadow_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_visible ==== | |||
''Optional.'' | ''Optional.'' | ||
==== h_pad ==== | |||
''Optional.'' | ''Optional.'' | ||
==== v_pad ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hidden ==== | |||
''Optional.'' | ''Optional.'' | ||
==== tab_stop ==== | |||
''Optional.'' | ''Optional.'' | ||
==== initial_value ==== | |||
''Optional.'' | ''Optional.'' | ||
==== radio_style ==== | |||
''Optional.'' | ''Optional.'' | ||
==== word_wrap ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bevel_style ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_style ==== | |||
''Optional.'' | ''Optional.'' | ||
==== border_thickness ==== | |||
''Optional.'' | ''Optional.'' | ||
==== is_unicode ==== | |||
''Optional.'' | ''Optional.'' | ||
==== max_length ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hover ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hover_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== text_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== align ==== | |||
''Optional.'' | ''Optional.'' | ||
==== text_wrap ==== | |||
''Optional.'' | ''Optional.'' | ||
==== text_enabled_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== allow_html ==== | |||
''Optional.'' | ''Optional.'' | ||
==== bg_readonly_color ==== | |||
''Optional.'' | ''Optional.'' | ||
==== embedded_items ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hide_border ==== | |||
''Optional.'' | ''Optional.'' | ||
==== hide_scrollbar ==== | |||
''Optional.'' | ''Optional.'' | ||
==== line_spacing ==== | |||
''Optional.'' | ''Optional.'' | ||
==== disabled_color ==== | |||
''Optional.'' | ''Optional.'' | ||
== text_editor and simple_text_editor parameters == | |||
Both create a multi-line text box, but text_editor has more functionality | Both create a multi-line text box, but text_editor has more functionality | ||
Line 262: | Line 258: | ||
</floater> | </floater> | ||
===Common parameters=== | |||
*'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | *'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:''' name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | *'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:''' width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control | ||
*'''[[Skinning HowTo/Common XUI XML parameters#Text|Text]]:''' font, font_size, font_style | *'''[[Skinning HowTo/Common XUI XML parameters#Text|Text]]:''' font, font_size, font_style | ||
===Specific parameters=== | |||
==== max_length ==== | |||
''Optional. '' | ''Optional. '' | ||
==== embedded_items ==== | |||
''Optional. '' | ''Optional. '' | ||
==== word_wrap ==== | |||
''Optional. '' | ''Optional. '' | ||
==== hide_scrollbar ==== | |||
''Optional. '' | ''Optional. '' | ||
==== cursor_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== text_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== text_readonly_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== bg_readonly_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== bg_writeable_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== bg_focus_color ==== | |||
''Optional. '' | ''Optional. '' | ||
==== max_length ==== | |||
''Optional. '' | ''Optional. '' | ||
==== type ==== | |||
''Optional. '' | ''Optional. '' | ||
==== bevel_style ==== | |||
''Optional. '' | ''Optional. '' | ||
==== border_style ==== | |||
''Optional. '' | ''Optional. '' | ||
==== border_thickness ==== | |||
''Optional. '' | ''Optional. '' | ||
==== handle_edit_keys_directly ==== | |||
''Optional. '' | ''Optional. '' | ||
==== select_all_on_focus_received ==== | |||
''Optional. '' | ''Optional. '' | ||
==== select_on_focus ==== | |||
''Optional. '' | ''Optional. '' | ||
==== length ==== | |||
''Optional. '' | ''Optional. '' | ||
==== track_bottom ==== | |||
''Optional. '' | ''Optional. '' | ||
==== ignore_tab ==== | |||
''Optional. '' | ''Optional. '' | ||
==== border_drop_shadow_visible ==== | |||
''Optional. '' | ''Optional. '' | ||
==== border_visible ==== | |||
''Optional. '' | ''Optional. '' | ||
==== show_line_numbers ==== | |||
''Optional. '' | ''Optional. '' | ||
==== allow_html ==== | |||
''Optional. '' | ''Optional. '' | ||
==== hide_border ==== | |||
''Optional. '' | ''Optional. '' | ||
==== tab_stop ==== | |||
''Optional. '' | ''Optional. '' | ||
==== is_unicode ==== | |||
''Optional. '' | ''Optional. '' | ||
==== bg_visible ==== | |||
''Optional. '' | ''Optional. '' | ||
==== drop_shadow_visible ==== | |||
''Optional. '' | ''Optional. '' | ||
==== h_pad ==== | |||
''Optional. '' | ''Optional. '' | ||
==== v_pad ==== | |||
''Optional. '' | ''Optional. '' | ||
==== background_visible ==== | |||
''Optional. '' | ''Optional. '' | ||
==== text_wrap ==== | |||
''Optional. '' | ''Optional. '' |
Revision as of 15:02, 14 May 2010
Overview
This page describes the XML attributes for the XUI text entry widgets. These are some of the XML elements and parameters used within the floaters, panels, and so forth, that make up the viewer user interface. They are used by the XUI files in the \skins\default\xui folders.
Many XUI elements share the same parameters. Rather than repeatedly describing them, we just list their names here and describe them at Skinning HowTo/Common XUI XML parameters.
line_editor parameters
<line_editor> creates a single line text box
- Class LLLineEditor : LLUICtrl : LLView
- In source file llui/lllineeditor.cpp
- Used by floater, panel, and layout_panel.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" can_tear_off="false" enabled="true" follows="left|top" height="80" left="550" min_height="80" min_width="250" mouse_opaque="true" name="example_line_editor" tab_stop="false" title="line_editor" width="250"> <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom="20" enabled="true" font="SansSerif" handle_edit_keys_directly="false" height="20" label="line_editor label" left="20" max_length="128" mouse_opaque="true" name="line_editor" select_all_on_focus_received="false" select_on_focus="false" tab_stop="true" width="200" /> </floater>
Common parameters
- General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
- Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
- Text: label, font, font_size, font_style
- Others: tab_group
Specific parameters
max_length
Optional.
bevel_style
Optional.
- none
- in
- out
- bright
- line
- texture
border_style
Optional.
border_thickness
Optional.
select_on_focus
Optional.
select_all_focus_received
Optional.
handle_edit_keys_directly
Optional.
cursor_color
Optional.
text_color
Optional.
text_readonly_color
Optional.
bg_readonly_color
Optional.
bg_writeable_color
Optional.
bg_focus_color
Optional.
handle_edit_keys_directly
Optional.
commit_on_focus_lost
Optional.
Optional.
is_unicode
Optional.
increment
Optional.
initial_val
Optional.
max_val
Optional.
min_val
Optional.
bg_visible
Optional.
border_drop_shadow_visible
Optional.
border_visible
Optional.
drop_shadow_visible
Optional.
h_pad
Optional.
prevalidate
Optional.
v_pad
Optional.
word_wrap
Optional.
name_editor parameters
- Class LLNameEditor : LLLineEditor : LLUICtrl : LLView
- In source file newview/llnameditor.cpp
- Used by panel.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" can_tear_off="false" enabled="true" follows="left|top" height="80" left="550" min_height="80" min_width="250" mouse_opaque="true" name="example_name_editor" tab_stop="false" title="name_editor" width="250"> <name_editor bevel_style="in" border_style="line" border_thickness="1" bottom="20" enabled="true" font="SansSerif" handle_edit_keys_directly="false" height="20" label="name_editor label" left="20" max_length="128" mouse_opaque="true" name="name_editor" select_all_on_focus_received="false" select_on_focus="false" tab_stop="true" width="200" /> </floater>
Common parameters
- General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
- Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
- Text: font, font_size, font_style
Specific parameters
bevel_style
bg_readonly_color
Optional.
border_style
border_thickness
max_length
text_readonly_color
Optional.
is_unicode
Optional.
text parameters
- Class LLTextBox : LLUICtrl : LLView
- In source file llui/lltextbox.cpp
- Used by floater, panel, and layout_panel.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" can_tear_off="false" enabled="true" follows="left|top" height="80" left="550" min_height="80" min_width="80" mouse_opaque="true" name="example_text" tab_stop="false" title="text" width="250"> <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" bottom="20" enabled="true" font="SansSerif" h_pad="0" halign="left" height="20" left="20" mouse_opaque="false" name="text" tab_stop="false" v_pad="0" width="235"> Text </text> </floater>
Common parameters
- General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
- Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
- Text: label, font, font_size, font_style, halign
- Others: hover_cursor
Specific parameters
type
Optional.
length
Optional.
bg_visible
Optional.
border_drop_shadow_visible
Optional.
drop_shadow_visible
Optional.
border_visible
Optional.
h_pad
Optional.
v_pad
Optional.
Optional.
tab_stop
Optional.
initial_value
Optional.
radio_style
Optional.
word_wrap
Optional.
bevel_style
Optional.
border_style
Optional.
border_thickness
Optional.
is_unicode
Optional.
max_length
Optional.
hover
Optional.
hover_color
Optional.
text_color
Optional.
align
Optional.
text_wrap
Optional.
text_enabled_color
Optional.
allow_html
Optional.
bg_readonly_color
Optional.
embedded_items
Optional.
hide_border
Optional.
hide_scrollbar
Optional.
line_spacing
Optional.
disabled_color
Optional.
text_editor and simple_text_editor parameters
Both create a multi-line text box, but text_editor has more functionality
- Class LLViewerTextEditor : LLTextEditor : LLUICtrl : LLView
- In source file newview/llviewertexteditor.cpp
- Class LLTextEditor : LLUICtrl : LLView
- In source file llui/lltexteditor.cpp
- Used by floater, panel, and layout_panel.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" can_tear_off="false" enabled="true" follows="left|top" height="160" left="550" min_height="160" min_width="250" mouse_opaque="true" name="example_text_editor" tab_stop="false" title="text_editor" width="250"> <text_editor type="string" length="1" bottom="20" embedded_items="false" enabled="true" font="SansSerif" height="100" hide_scrollbar="false" left="20" max_length="255" mouse_opaque="true" name="text_editor" tab_stop="true" width="200" word_wrap="false" /> </floater>
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true" can_resize="true" can_tear_off="false" enabled="true" follows="left|top" height="160" left="550" min_height="160" min_width="250" mouse_opaque="true" name="example_simple_text_editor" tab_stop="false" title="simple_text_editor" width="250"> <simple_text_editor type="string" length="1" bottom="20" embedded_items="true" enabled="true" font="SansSerif" height="100" hide_scrollbar="false" left="20" max_length="255" mouse_opaque="true" name="text_editor" tab_stop="true" width="200" word_wrap="false" /> </floater>
Common parameters
- General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
- Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
- Text: font, font_size, font_style
Specific parameters
max_length
Optional.
embedded_items
Optional.
word_wrap
Optional.
hide_scrollbar
Optional.
cursor_color
Optional.
text_color
Optional.
text_readonly_color
Optional.
bg_readonly_color
Optional.
bg_writeable_color
Optional.
bg_focus_color
Optional.
max_length
Optional.
type
Optional.
bevel_style
Optional.
border_style
Optional.
border_thickness
Optional.
handle_edit_keys_directly
Optional.
select_all_on_focus_received
Optional.
select_on_focus
Optional.
length
Optional.
track_bottom
Optional.
ignore_tab
Optional.
border_drop_shadow_visible
Optional.
border_visible
Optional.
show_line_numbers
Optional.
allow_html
Optional.
hide_border
Optional.
tab_stop
Optional.
is_unicode
Optional.
bg_visible
Optional.
drop_shadow_visible
Optional.
h_pad
Optional.
v_pad
Optional.
background_visible
Optional.
text_wrap
Optional.