File 'clock/monthBrowseTixB.cls' (part of 'Pool_Clock')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Widget to choose month and year
See also
monthList, calendarTix
Depends on
Tix
Keywords
calendar, choosing month and year, year/month choice, tix

Class 'monthBrowserTixB'

Superclasses
valueManager
Options
charwidth, order
Methods
OnWrap, TrackCharWidth, TrackMonth, TrackOrder, TrackYear, createSubwidgets, monthBrowserTixB, setBindings, setBindingsTo, updateDisplay

-charwidth
Width of the widget in characters.
-order
Order of components: The year browser is packed to the left or right of the month list.

OnWrap (dir)

Increment/decrement operator for internal year browser.
Argument: dirdirection of wrap, must be one of 'up' or 'down'.

TrackCharWidth (o oldValue)

Executed whenever the width of the widget is changed by the outside.
Argument: oThe name of the changed option, always '-charwidth'.
Argument: oldValueThe old value of the option.

TrackMonth (month)

Callback. Used by the internal month list to integrate changes to the month into the overall value. Executed every time the month changed its value.
Argument: monthThe new value of the chosen month.

TrackOrder (o oldValue)

The widget defined allows arbitrary ordering of its components. The corresponding option is -order. This method is called everytime the option was set and executes the necessary relayout.
Argument: oThe name of the changed option, always '-order'.
Argument: oldValueThe old value of the option.

TrackYear (year)

Callback. Used by the internal year browser to integrate changes to the year into the overall value. Executed every time the year changed its value.
Argument: yearThe (possibly) new value of the chosen year.

createSubwidgets ()

Generate the subwidgets and their layout.

monthBrowserTixB ()

Initialize the value to the current month and year, if not set already by the user.

setBindings ()

Adds various keyboard accelerators to the month browser.

setBindingsTo (w)

Adds various keyboard accelerators to the given widget.
Argument: wThe widget the accelerators are added to.

updateDisplay ()

Method required by the superclass valueManager to propagate changes to the value into the display.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries