type gr_grprad =
{ ga_window : gr_window
; mutable ga_top : int
; mutable ga_left : int
; mutable ga_width : int
; mutable ga_height : int
; mutable ga_delta : int
; mutable ga_radio : int
; mutable ga_name : string vect
; mutable ga_callback : gr_grprad -> event -> bool
}
;;
The groups of radio buttons are a rectangle filled with
radio buttons. One of the radio buttons is selected, the others are
unselected. The groups of radio buttons are similar to groups of
buttons.
The groups of radio buttons, of type gr_grprad,
are composed of:
- the attached window (ga_window),
- the coordinates of upper left corner (ga_left,ga_top),
- the area's width (ga_width),
- the area's height (ga_height),
- the space between each radio button (ga_delta),
- the number of the selected radio button (ga_radio),
- the list of the labels of the radio buttons (ga_name),
- the callback function, called when the selected radio
button changes (ga_callback).
the functions linked with the type gr_grprad are:
gr_draw_grprad : gr_grprad -> unit
- gr_draw_grprad Grprad draws the group of radio buttons Grprad.
gr_draw_unfilled_grprad : gr_grprad -> unit
- gr_draw_unfilled_grprad Grprad draws only the outlines of the
radio buttons of the group Grprad.
gr_grprad_managed : gr_grprad -> event -> bool
- this is the function used by Camlwin to manage the group of
radio buttons objects.