DzButtonGroup Class Reference
[Interface Widget Objects]

DAZ Script button group widget. More...

Inheritance diagram for DzButtonGroup:

DzGroupBox DzWidget DzHButtonGroup DzVButtonGroup List of all members.

Properties

Number count
Boolean exclusive
Boolean radioButtonExclusive
Number selected

Constructors

 DzButtonGroup (DzWidget parent)

Methods

Number id (DzButton btn)
Number insert (DzButton btn, Number id=-1)
void remove (DzButton btn)

Signals

void clicked (Number id)
 Signature: "clicked(int)"
void pressed (Number id)
 Signature: "pressed(int)"
void released (Number id)
 Signature: "released(int)"

Detailed Description

DAZ Script button group widget.


Constructor & Destructor Documentation

DzButtonGroup::DzButtonGroup ( DzWidget  parent  ) 

Creates a button group as a child of the given parent widget


Member Function Documentation

void DzButtonGroup::clicked ( Number  id  )  [signal]

Signature: "clicked(int)"

Emitted when a button in the group is pressed and released

Number DzButtonGroup::id ( DzButton  btn  ) 

Returns:
The index of btn in the group. -1 if btn is not a member of the group.

Number DzButtonGroup::insert ( DzButton  btn,
Number  id = -1 
)

Add the button to the group. This is only necessary if the button was not created as a child of the group.

Returns:
The index of btn in the group.

void DzButtonGroup::pressed ( Number  id  )  [signal]

Signature: "pressed(int)"

Emitted when a button in the group is pressed

void DzButtonGroup::released ( Number  id  )  [signal]

Signature: "released(int)"

Emitted when a button in the group is released

void DzButtonGroup::remove ( DzButton  btn  ) 

Remove the button from the group


Member Data Documentation

int DzButtonGroup::count

The number of buttons in the group (read-only)

bool DzButtonGroup::exclusive

Whether the group is exclusive for all toggle buttons (the default is false)

bool DzButtonGroup::radioButtonExclusive

Whether the group is exclusive for radio buttons (the default is true)

int DzButtonGroup::selected

The checked button in an exclusive group


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.