Difference between revisions of "Skinning HowTo/XUI Text Entry Widgets"

From Second Life Wiki
Jump to navigation Jump to search
Line 95: Line 95:
*In source file newview/llnameditor.cpp
*In source file newview/llnameditor.cpp
*Used by panel.
*Used by panel.
====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#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
====Specific parameters====


===== bevel_style =====
===== bevel_style =====
Line 101: Line 108:
===== border_style =====
===== border_style =====
===== border_thickness =====
===== border_thickness =====
===== bottom =====
===== left_delta =====
===== follows =====
===== font =====
===== height =====
===== width =====
===== max_length =====
===== max_length =====
===== mouse_opaque =====
===== name =====
===== text_readonly_color =====
===== text_readonly_color =====
''Optional.''
''Optional.''
===== enabled =====
 
''Optional.''
===== is_unicode =====
===== is_unicode =====
''Optional.''
''Optional.''

Revision as of 20:03, 10 September 2009

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. You can find attributes for other XUI elements at:

and you can find more general information at Skinning HowTo/Basics

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.

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.

hidden

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.

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.
type

Optional.

length

Optional.

width

Optional.

height

Optional.

bg_visible

Optional.

border_drop_shadow_visible

Optional.

drop_shadow_visible

Optional.

border_visible

Optional.

bottom

Optional.

bottom_delta

Optional.

top

Optional.

left

Optional.

left_delta

Optional.

right

Optional.

enabled

Optional.

follows

Optional.

font

Optional.

h_pad

Optional.

halign

Optional.

v_pad

Optional.

valign

Optional.

mouse_opaque

Optional.

name

Optional.

visible

Optional.

hidden

Optional.

tool_tip

Optional.

tab_stop

Optional.

initial_value

Optional.

label

Optional.

radio_style

Optional.

word_wrap

Optional.

control_name

Optional.

font_size

Optional.

font_style

Optional.

font-style

Optional.

bevel_style

Optional.

border_style

Optional.

border_thickness

Optional.

is_unicode

Optional.

max_length

Optional.

hover

Optional.

hover_cursor

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.
max_length

Optional.

embedded_items

Optional.

font

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.

bottom

Optional.

bottom_delta

Optional.

left

Optional.

left_delta

Optional.

right

Optional.

top

Optional.

follows

Optional.

height

Optional.

width

Optional.

max_length

Optional.

mouse_opaque

Optional.

name
type

Optional.

bevel_style

Optional.

border_style

Optional.

border_thickness

Optional.

enabled

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.

halign

Optional.

background_visible

Optional.

text_wrap

Optional.