This is a textbox with two small buttons on the right to
increment/decrement the value in the textbox. This class is based on the Ltextbox class. This supports the optional :text
attribute that contains an array of strings that is used during on_increment and on_decrement. The :text attribute is
optional and if not provided on_increment/on_decrement calls succ! and
decc! (decc! is new method added to String in
l_others.rb) for Stings. The on_increment and on_decrement events are triggered using
the up and down arrow keys and by clicking on one of the buttons.
clientW,
close,
include_objects,
move,
on_decrement,
on_down_key,
on_increment,
on_up_key,
open,
pixel_width,
prepare,
state=,
valid_attribute?,
Creates the button for the spinner.
Supports the :otype attributes of :value, and :text.
Make sure the buttons are positioned and sized correctly. The height of the
button matches the height of the datebox.
Repositions the buttons based on the new size of the spinner.
The pixel width of the textbox + the width of the buttons.
The pixel width of the textbox less the width of the pixel buttons.
Forward this to the button.
Triggers the on_increment() event
unless the shift/ctrl/alt/meta keys are pressed.
Triggers the on_decrement() event
unless the shift/ctrl/alt/meta keys are pressed.
Increments the spinner. The default action is as follows:
- If the :text attribute contains an array, the these values are used for
incrementing/decrementing.
- Otherwise if the :value attribute is a String,
succ!() is used on the string value
- Otherwise if the :value attribute is a Fixnum then +/- 1 is used
Decrements the spinner. The default action is as follows:
- If the :text attribute contains an array, the these values are used for
incrementing/decrementing.
- Otherwise if the :value attribute is a String,
decc!() (A new method added to the String object
in l_others.rb) is used on the string value
- Otherwise if the :value attribute is a Fixnum then +/- 1 is used
Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.