Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

glgui-timewheels creates a time entry widget consisting of two vertical wheels for hours and minutes

Parameter Description
g Graphical User Interface (GUI) for this widget
x Lower left corner along the x-axis in pixels
y Lower left corner along the y-axis in pixels
w Width of the element in pixels
h Height of the element in pixels
colorvalue Color of the selected value in the wheel
colorshade Wheel background color shade
selfont Font for the larger selected hour and minute values
unselfont Font for the smaller unselected hour and minute values

Example

Example1: Create a time wheel widget in gui with x=185, y=275, width=102, and height=144. The font size for the selected value is 32, while 24 is used for unselected values.

(set! timewheel (glgui-timewheels gui 185 275 102 144 Black (color-shade White 0.2) num_32.fnt num_24.fnt))
Clone this wiki locally