xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XForms] Can't figure out how to change font size


From: Patrick
Subject: [XForms] Can't figure out how to change font size
Date: Fri, 04 Sep 2015 21:46:01 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Hi Everyone

I cannot figure out how to change font size. The code at the end of this email has multiple attempts but all the fonts remain the same.

I am wondering if there is an issue on my computer outside of xforms.

Do you have any samples I can run here or does my example change size on your computer ?

-Patrick

code:


int main( int argc, char * argv[] ){
    fl_initialize( &argc, argv, "FormDemo", 0, 0 );
    FL_FORM *my_form = fl_bgn_form( FL_FLAT_BOX, 500, 150 );

FL_OBJECT *button1 = fl_add_button( FL_NORMAL_BUTTON, 1, 1, 80, 20, "button 1" );
    fl_set_object_lsize( button1, FL_TINY_SIZE );

FL_OBJECT *button2 = fl_add_button( FL_NORMAL_BUTTON, 1, 30, 80, 20, "button2" );
    fl_set_object_lsize( button2, FL_HUGE_SIZE );

FL_OBJECT *my_input = fl_add_input(FL_NORMAL_INPUT, 1, 60, 300, 50, "my_input" ) ;
    fl_set_object_lsize(my_input, FL_HUGE_SIZE) ;



    fl_set_font( FL_HUGE_SIZE,  FL_HUGE_SIZE );
    fl_set_input(my_input, "this is a test") ;
    fl_end_form();
    fl_adjust_form_size( my_form );

    fl_show_form( my_form, FL_PLACE_ASPECT, FL_TRANSIENT, "Buttons" );

    FL_OBJECT * eventptr ;
    int x = 1 ;
    while(x != 0) {
    eventptr = fl_do_forms() ;
    }


return 0 ;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]