Difference between revisions of "Skinning HowTo/XUI Selection Widgets"

From Second Life Wiki
Jump to: navigation, search
(radio_group parameters)
(radio_item parameters)
Line 196: Line 196:
 
*In source file llui/llradiogroup.cpp
 
*In source file llui/llradiogroup.cpp
 
*Used by radio_group.
 
*Used by radio_group.
 +
 +
====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
 +
 +
====Specific parameters====
  
 
===== type =====
 
===== type =====
Line 201: Line 207:
 
===== length =====
 
===== length =====
 
''Optional.''
 
''Optional.''
===== height =====
 
===== width =====
 
''Optional.''
 
===== bottom =====
 
''Optional.''
 
===== bottom_delta =====
 
''Optional.''
 
===== left =====
 
''Optional.''
 
===== left_delta =====
 
''Optional.''
 
===== follows =====
 
''Optional.''
 
===== mouse_opaque =====
 
''Optional.''
 
===== name =====
 
  
 
=== scroll_container parameters ===
 
=== scroll_container parameters ===

Revision as of 16:24, 13 September 2009

This page describes the XML attributes for the XUI selection 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.

Contents

check_box parameters


  • Class LLCheckBoxCtrl : LLUICtrl : LLView
  • In source file llui/llcheckboxctrl.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, halign
  • Others: tab_group

Specific parameters

initial_value

Optional.

radio_style

Optional.

tab_stop

Optional.

border_drop_shadow_visible

Optional.

hidden

Optional.

max_length

Optional.

color_swatch parameters


  • Class LLColorSwatchCtrl : LLUICtrl : LLView
  • In source file newview/llcolorswatch.cpp
  • Used by floater and 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

Specific parameters

border_color

Optional.

can_apply_immediately
color

Optional.

combo_box parameters


  • Class LLComboBox : LLUICtrl : LLView
  • In source file llui/llcombobox.cpp
  • Used by floater, panel, and layout_panel.
  • Can contain combo_item.

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: tab_group

Specific parameters

allow_text_entry

Optional.

length

Optional.

max_chars

Optional.

initial_value

Optional.

max_length

Optional.

bg_readonly_color

Optional.

text_readonly_color

Optional.

combo_item parameters


  • member of LLComboBox : LLUICtrl : LLView
  • In source file llui/llcombobox.cpp
  • Used by combo_box.
name
value

Optional.

type

Optional.

length

Optional.

enabled

Optional.

name_list parameters


  • Class LLNameListCtrl : LLScrollListCtrl : LLUICtrl : LLView
  • In source file newview/llnamelistctrl.cpp
  • Used by floater and panel.
  • Can contain column.

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

Specific parameters

allow_calling_card_drop

Optional.

background_visible

Optional.

column_padding

Optional.

draw_border

Optional.

draw_heading

Optional.

draw_stripes

Optional.

multi_select
name_column_index

Optional.

heading_font

Optional.

heading_height

Optional.

bg_selected_color

Optional.

fg_selected_color

Optional.

fg_disable_color

Optional.

fg_unselected_color

Optional.

background_opaque

Optional.

bg_alpha_color

Optional.

bg_opaque_color

Optional.

column parameters


  • member of LLScrollListCtrl : LLUICtrl : LLView
  • In source file newview/llnamelistctrl.cpp
  • Used by name_list and scroll_list.
name
label

Optional.

sort

Optional.

width

Optional.

dynamicwidth

Optional.

relwidth

Optional.

image

Optional.

tool_tip

Optional.

user_resize

Optional.

radio_group parameters


  • Class LLRadioGroup : LLUICtrl : LLView
  • In source file llui/llradiogroup.cpp
  • Used by floater and panel.
  • Can contain radio_item.

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

Specific parameters

draw_border

Optional.

text_disabled_color

Optional.

radio_item parameters


  • Class LLRadioItem : LLCheckBoxCtrl : LLUICtrl : LLView
  • In source file llui/llradiogroup.cpp
  • Used by radio_group.

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

Specific parameters

type

Optional.

length

Optional.

scroll_container parameters


  • Class LLScrollableContainerView : LLUICtrl : LLView
  • in source file llui/llscrollcontainer.cpp
  • Used by floater.
bottom
left
follows
height
width
mouse_opaque
opaque
name

scroll_list parameters


  • Class LLScrollListCtrl : LLUICtrl : LLView
  • In source file llui/llscrolllist.cpp
  • Used by floater, panel, layout_stack, and layout_panel.
  • Can contain column.
bottom

Optional.

bottom_delta

Optional.

top

Optional.

left
right

Optional.

can_resize

Optional.

column_padding

Optional.

column_widths

Optional.

draw_heading

Optional.

draw_stripes

Optional.

draw_border

Optional.

follows

Optional.

multi_select

Optional.

name
search_column

Optional.

sort_column

Optional.

background_visible

Optional.

height

Optional.

width

Optional.

mouse_opaque

Optional.

enabled

Optional.

tab_group

Optional.

bg_selected_color

Optional.

fg_disable_color

Optional.

fg_selected_color

Optional.

fg_unselected_color

Optional.

tool_tip

Optional.

font

Optional.

heading_font

Optional.

heading_height

Optional.

allow_calling_card_drop

Optional.

tab_stop

Optional.

user_resize

Optional.

sort_ascending

Optional.

column parameters


  • member of LLNameListCtrl : LLScrollListCtrl : LLUICtrl : LLView
  • In source file newview/llnamelistctrl.cpp
  • Used by name_list and scroll_list.
name
label

Optional.

sort

Optional.

width

Optional.

dynamicwidth

Optional.

relwidth

Optional.

image

Optional.

tool_tip

Optional.

user_resize

Optional.

texture_picker parameters


  • Class LLTextureCtrl : LLUICtrl : LLView
  • In source file newview/lltexturectrl.cpp
  • Used by floater and panel.
allow_no_texture

Optional.

bottom

Optional.

bottom_delta

Optional.

left

Optional.

left_delta

Optional.

right

Optional.

can_apply_immediately

Optional.

default_image_name

Optional.

enabled

Optional.

follows

Optional.

height
width
label

Optional.

mouse_opaque

Optional.

name
tool_tip

Optional.

visible

Optional.