Version

TBButtonGroup Class

Button groups represent several TBarButton items with a mutually exclusive selection state. No more than one button within the group is selected at any time.
Syntax
'Declaration
 
Public Class TBButtonGroup 
   Inherits TBObject
   Implements IKeyedObject 
public class TBButtonGroup : TBObject, IKeyedObject  
Remarks

The TBButtonGroup maintains a collection of button objects within it's Buttons collection. The CheckItems type is used to manage this collection and ensure it's mutually exclusive selection criterion (similar to radio button behavior). Each individual button added to the group has its Parent property set to its containing TBButtonGroup object. The currently selected button, if any, is available through the SelectedButton property.

Styles applied to the TBButtonGroup shall only affect the background of the group; it is still necessary to set styles upon the buttons that are added to the group. Any items added to the group do not automatically inherit the appearance of the group. Items are always rendered in front of the background of the group. For instance, if both the group and item specify a BackgroundImage, the background image of the item appears in front of the background image of the group. A portion of the group's background image may remain visible at the edges of the item, depending upon the values assigned for margins.

In order for the viewstate to be properly managed across postbacks, developers dynamically creating their TBarButton and TBButtonGroup objects are strongly advised to add them to the UltraWebToolbar's Items collection before setting the property values on them. Many complex property types (cf, DefaultStyle) cannot properly track viewstate until they have been connected to the UltraWebToolbar control.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also