Next: Choice Remarks, Previous: Other Choice Routines, Up: Choice Object [Contents][Index]
Don’t use FL_NO_BOX
as the boxtype for a choice object.
The first color argument (col1
to
fl_set_object_color()
controls the color of the box and
the second (col2
) the color of the text in the box.
The current choice by default is shown centered in the box. To change the alignment of the choice text in the box, use the following routine
void fl_set_choice_align(FL_OBJECT *obj, int align);
To set the font size used inside the choice object use
void fl_set_choice_fontsize(FL_OBJECT *obj, int size);
To set the font style used inside the choice object use
void fl_set_choice_fontstyle(FL_OBJECT *obj, int style);
Note that the above functions only change the font inside the choice
object, not the font used in the popup. To change the font used in the
popup, use the XPopup functions
fl_setpup_default_fontsize()
and
fl_setpup_default_fontstyle()
. Note that these functions
influence the font settings of all popups! See Label Attributes and Fonts, for details on font sizes and styles.
Normally the pop-up shown for the choice objects will be displayed at
the current mouse position or, for those of type
, directly below the choice object.
This can be modified by a call of the function
FL_DROPLIST_CHOICE
int fl_set_choice_align_bottom(GL_OBJECT *obj, int flag);
If flag
is 0
the normal behaviour is used, but when
flag
is 1
the popup will be displayed with its
lower right hand corner at the current mouse position or, for
objects of type
above the
choise object. The function returns the previously set value
for FL_DROPLIST_CHOICE
flag
.
Next: Choice Remarks, Previous: Other Choice Routines, Up: Choice Object [Contents][Index]