Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

Oh, I did some damage... I know it's true.

Didn't know I was so lonely... 'til I found you.

- Don Henley and Glenn Frey

 

aztec.ui.SelectBar

public class SelectBar from<Window>

Base

Window

SelectBar

SelectBar is an abstract class which provides a simple framework for handling menus and toolbars. Menus and toolbars are handled in a similar way. Each contains items which can be "selected" in order to accomplish a task (SelectItem class). The MenuItem and ToolBarItem classes are both derived from the abstract SelectItem class, allowing the same event handlers to be used for menus and toolbars.

 

MenuBar and ToolBar objects can be attached to dialog and frame windows.

SelectBar Methods

SelectBar() Constructor for the SelectBar class
AddSeparator() Abstract method to add a separator to the select bar
NumSeparators() Abstract method to return number of separators in the select bar
NumItems() Abstract method to return number of "select items" attached to the select bar

Derived Classes

See Also

 


SelectBar()

public method SelectBar(Window Parent)

Parameters

Parent

Parent window of the select bar

Return Value

None

Description

Constructor for the SelectBar class. The parent must be specified, and it must be one of several valid window types. The derived classes (MenuBar and ToolBar) specify which window types are valid as a parent.

 

SelectBar Class


AddSeparator()

public abstract method<int> AddSeparator(int Index = 0)

Parameters

Index

Will be added before the one based index. Zero means add to end.

Return Value

One based index where separator was added

Description

This abstract method adds a separator to the select bar. The specified index is one based, and the separator gets added before that index. If the index is zero (default), the separator gets added to the end.

 

SelectBar Class


NumSeparators()

public abstract method<int> NumSeparators()

Parameters

None

Return Value

Number of separators in the bar

Description

This abstract method returns the number of separators which have been added to the select bar.

 

SelectBar Class


NumItems()

public abstract method<int> NumItems()

Parameters

None

Return Value

Number of "SelectItem" objects attached to bar

Description

This abstract method returns the number of "SelectItem" objects which are attached to this select bar object. It does not include separators.

 

SelectBar Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec