Tix Programming Guide
0.1 About This Manual
0.2 About This HTML Document
0.3 Other Formats Of This Document
0.4 Organization of This Manual
1 Introduction
1.1 What is Tix
1.1.1 Tix for Application Programmers
1.1.2 Tix for Widget Developers
1.2 Getting Started: the TixControl Widget
1.2.1 Creating a TixControl Widget
1.2.2 Accessing The Value of a TixControl Widget
1.2.2.1 Disabling Callbacks Temporarily
1.2.3 Validating User Inputs
1.3 Accessing The Components Inside Mega Widgets
1.3.1 Subwidgets
1.3.2 Subwidget Names
1.3.3 The
subwidget
Method
1.3.4 Chaining the
subwidget
Method
1.3.5 Configuring Subwidget Options Using the
-options
Switch
1.3.6 Configuring Subwidget Options Using the Tk Option Database
1.3.7 Caution: Restricted Access
1.4 Another Tix Widget: TixComboBox
1.4.1 Creating a TixComboBox Widget
1.4.2 Controlling the Style of the TixComboBox
1.4.3 Static Options
1.4.4 Monitoring the User's Browsing Actions
1.5 The TixSelect Widget
1.5.1 Creating A TixSelect Widget
1.5.1.1 Label and Orientation
1.5.1.2 Creating the Button Subwidgets and Configuring Their Appearance
1.5.1.3 Accessing the Button Subwidgets
1.5.2 Specifying Selection Rules
1.5.3 Accessing the Value of a TixSelect Widget
1.5.4 Specifying Complex Selection Rules
2 Container Widgets
2.1 TixNoteBook
2.1.1 Adding Pages to a TixNoteBook
2.1.2 Keyboard Accelerators
2.1.3 Delaying the Creation of New Pages
2.1.4 Changing Page Tabs and Deleting Pages
2.2 PanedWindow
2.2.1 Adding Panes Inside a TixPanedWindow Widget
2.2.2 Putting Widgets Inside the Panes
2.2.3 Setting the Order of the Panes
2.2.4 Changing the Sizes of the Panes
2.3 The Family of Scrolled Widgets
2.3.1 The Scrolled Listbox Widget
2.3.2 Other Scrolled Widgets
3 Tabular Listbox and Display Items
3.1 tixTList -- The Tix Tabular Listbox Widget
3.2 Display Items
3.2.1 Advantages of Display Items
3.2.2 Display Items and Display Styles
3.3 Creating Display Items in the TixTList Widget
3.3.1 Creating Display Items
3.3.2 Setting the Styles of the Display Items
3.3.3 Configuring and Deleting the Items
3.3.4 Choosing the Orientation and Number of Rows or Columns
3.3.5 Event Handling
3.3.6 Selection
4 Hierarchical Listbox
4.1 TixHList -- The Tix Hierarchical Listbox Widget
4.1.1 Creating a Hierarchical List
4.1.2 Creating Entries in a HList Widget
4.1.3 Controlling the Layout of the Entries
4.1.4 Handling the Selection and User Event
4.2 Creating Collapsible Tree Structures with TixTree
5 Selecting Files and Directories
5.1 File Selection Dialog Widgets
5.1.1 Using the TixFileSelectDialog Widget
5.1.2 The Subwidget in the TixFileSelectDialog
5.1.3 The TixExFileSelectDialog Widget
5.1.4 Specifying File Types for TixExFileSelectDialog
5.1.5 The
tix filedialog
Command
5.2 Selecting Directories with the TixDirTree and TixDirList Widgets
6 Tix Object Oriented Programming
6.1 Introduction to Tix Object Oriented Programming
6.1.1 Widget Classes and Widget Instances
6.1.2 What is in a Widget Instance
6.1.2.1 Variables
6.1.2.2 Methods
6.1.2.3 Component Widgets
6.2 Widget Class Declaration
6.2.1 Using the tixWidgetClass Command
6.3 Writing Methods
6.3.1 Declaring Public Methods
6.4 Standard Initialization Methods
6.4.1 The InitWidgetRec Method
6.4.1.1 Chaining Methods
6.4.1.2 The tixChainMethod call
6.4.2 The ConstructWidget Method
6.4.3 The SetBindings Method
6.5 Declaring and Using Variables
6.5.1 Initialization of Public Variables
6.5.1.1 Type Checker
6.5.2 Public Variable Configuration Methods
6.5.2.1 Configuration Methods and Public Variable Initialization
6.6 Summary of Widget Instance Initialization
6.7 Loading the New Classes