Hi again Greg.
I have tested align method of Fl_Button, but I can not get to solve my problem. 
Image inside Fl_Button is center horizontally, but not vertically.

My code is:

        // Button for icon path explore.
        m_Button1 = new Fl_Button(180,40,25,25,"");
        m_Button1->box(FL_NO_BOX);
        m_Button1->image(m_FolderImg);
        m_Button1->align(FL_ALIGN_INSIDE|FL_ALIGN_CENTER);

.. but Folder icon is placed on top of Button area. I'm thinking for use 
"Browse..." label instead of nice XPM icon.

Thanks,
Rafa

>       You'll need to use align(FL_ALIGN_INSIDE|FL_ALIGN_CENTER);
>       to center the image inside the button.
>
>       See the docs on Fl_Widget::align() for more info:
>       http://fltk.org/documentation.php/doc-1.1/Fl_Widget.html#Fl_Widget.align

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to