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

Description (short)
Month choice, tix
Written by
Andreas Kupries
Description
Widget to choose a month by name.
See also
monthList, calendarTix
Keywords
calendar, choosing a month, month choice, tix

Class 'monthListTix'

Depends on
Tix
Superclasses
valueManager
Options
onwrap
Methods
public
OnWrap (direction)
SetupList ()
TrackUserChanges (newvalue)
createSubwidgets ()
down ()
monthListTix ()
setBindings ()
setBindingsTo (w)
up ()
updateDisplay ()

Options

-onwrap
Script to evaluate in the case of a wrap around, either at the start or the end of the year. The evaluation takes place before the execution of valueManager:command. A single argument is appended before the actual evaluation, it specifies the direction of the wrap. Possible values are 'up' (wrap 12 -> 1) and 'down' (wrap 1->12). A possible use is the modification of an associated yearBrowser.

Methods

OnWrap (direction)

executes the script associated with wraparounds
Argument: direction direction of wraparound, one of 'up' and 'down'.

SetupList ()

Initializes the internal combobox, adds the names of all months.

TrackUserChanges (newvalue)

Callback. Used by the internal tix combobox to forward external changes to the display to the internal datastructures.
Argument: newvalue The new value displayed by the combobox.

createSubwidgets ()

Overrides valueManager:createSubwidgets
Generate the subwidgets and their layout.

down ()

Decrements the chosen month by one. Triggers a wraparound at the start of the year.

monthListTix ()

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

setBindings ()

Overrides valueManager:setBindings
Associate bindings for this widget with its internal components.

setBindingsTo (w)

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

up ()

Increments the chosen month by one. Triggers a wraparound at the end of the year.

updateDisplay ()

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


Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries