Widget Encyclopedia : WkNotebook

WkNotebook
C:\Users\documentation\Documents\vastePublisher\stable\VAS Documentation Word\images\wkctrl13a.jpg
C:\Users\documentation\Documents\vastePublisher\stable\VAS Documentation Word\images\wkctrl13.jpg
WkNotebook implements a Windows 95/98/NT flavor notebook (as compared to the Windows 3.1 look provided by the EwWINNotebook widget). All of the page’s (children) tabs are displayed at the top of the notebook. A tab’s height is determined by the tabHeight resource. A tab’s width is the page width divided by the number of tabs per row. The top page which is displaying its widgets is represented by the currentPage resource.
Protocol
tabHeight: anInteger
Specifies the height of the notebook’s tabs in pixels.
 
tabsPerRow: anInteger
Specifies how many page’s tabs are displayed in a row before another row is created.
 
tabWidthPolicy: anInteger
Specifies the technique that will be used to set the width of the tabs in a notebook.
Default: XmVARIABLE (Variable)
Valid resource values:
XmCONSTANT (Constant) - The tabs will be sized according to the value of the tabWidth resource.
XmVARIABLE (Variable) - The tabs will be individually sized to fit their labels.
XmMAXIMUM (Maximum) - The tabs will all be the size of the tab needed to accomodate the widest tab label.
XmBYROW (By Row) - The tabs will be sized so that each row of tabs contains the number of tabs specified in the #tabsPerRow resource.
Callbacks & Events
Page Change Callback
These callbacks are triggered just before any switching of pages take place.
Editor
C:\Users\documentation\Documents\vastePublisher\stable\VAS Documentation Word\images\wkctrl13e.jpg
Border Width
Specifies the width of the border that surrounds the widget’s window on all four sides. The width is specified in pixels. A width of zero means that no border will show.
Border - Causes the widget to have a border.
No Border - Causes the widget to have no border.
 
Enabled
Determines whether a widget will react to input events. Disabled (insensitive) widgets do not react to input events.
 
Tab Height
Specifies the height of the notebook’s tabs in pixels.
 
Tab Per Row
Specifies the number of tabs in each row. When that number us exceeded, a new row is added.
 
Tab Width
Specifies the width of the notebook’s tabs in pixels.
 
Tab Width Policy
Specifies the technique that will be used to set the width of the tabs in a notebook.
Constant - The tabs will be sized according to the value of the majorTabWidth and minorTabWidth resources.
Variable - The tabs will be individually sized to fit their labels.
Maximum - The tabs will all be the size of the tab needed to accomodate the widest tab label.
 
Tabs Per Row
Specifies how many page’s tabs are displayed in a row before another row is created.
 
Visible
Maps the widget (makes visible) as soon as it is both realized and managed, if set to True. If set to False, the client is responsible for mapping and unmapping the widget.