Part I. Tutorial


1. LibCXX overview
2. Hello world!
Building example programs
Basic concepts
Display elements are reference-counted objects with smart pointers
Containers own references to the elements in the container
Connection threads and callbacks
Creator lambdas
Layout managers
3. Text labels
4. Word-wrapping labels
Preserving window positions
5. Input fields and buttons
Input fields
Using x::w::input_field
Password input fields
Shortcut activation
Element activation
Attaching application data to display elements
6. Date input fields
7. Validating input fields
Using on_validate()
8. The item layout manager
Using singleton objects
9. Input field spinners
Implementing spin buttons
10. Disabling input processing
11. Using focusable display elements
12. Checkboxes and radio buttons
Creating checkboxes and radio buttons
Button labels
Customizing x::w::image_button labels
Setting checkbox and radio button state
Getting checkbox and radio button state
13. The grid layout manager
Nested containers
Setting the size of grid rows and columns
Callbacks and captures
14. The border layout manager
Creating a border with an optional title
Setting the border title
15. The page layout manager
16. The book layout manager
The book page factory
The on_opened callback
An appdata example
17. Selection lists
Creating a list layout manager
Selecting multiple items in a list, and callbacks
Enabling and disabling list items
Modifying the contents of a list
List locks
Lists with multiple columns
18. Tables
Creating a table layout manager
Adjustable tables
Adjusting table column widths using the keyboard
Preserving table columns' widths
19. Hierarchical lists
Creating a hierarchical list
List item hierarchical indentation
Image icons in selection lists
20. Standard and editable combo-boxes
Creating a standard combo-box layout manager
Retrieving the standard combo-box's current selection
Using the standard combo-box with a pointer or a keyboard
Locking the combo-box
Editable combo-boxes
21. Search fields
Creating a search field
The search callback thread
Aborting searches
Processing search results
22. Menus
The menu bar layout manager
Using the list layout manager with menus
Menu item attributes
Using the mouse pointer or the keyboard with menus
23. Context popup menus
Creating the contents of the context popup menu
Creating new context popup menus on demand
Keyboard shortcuts for context popup menus
24. Copy/Cut/Paste menu items
Application menus with copy, cut, and paste items
Context menu popups with copy, cut, and paste items
25. The pane layout manager
Pane container's size
Creating new panes
Removing panes
Input focus and selection lists or tables
Configuring lists and tables in panes
Panes with synchronized lists
26. The peephole layout manager
Creating a peephole
Specifying the peephole's size
Ensuring visibility of display elements in a peephole
27. Dialogs
Dialog identifiers and configuration settings
Other dialog creation parameters
File dialogs
Showing and hiding dialogs
Modal dialogs
x::w::main_windows own references on their dialogs
Custom dialogs
Ad-hoc error message dialogs
28. Print Dialog
Using the print dialog
Another singleton example
29. Progress bars
30. Scroll-bars
Creating and configuring scroll-bars
Scroll-bar's current value
31. Font and color pickers
Creating font and color pickers
Using the font picker
Using the color picker
32. Toolbox Dialogs
Creating a toolbox layout manager
Initial dialog position
The on_stabilized() callback
Custom images for checkbox and radio buttons