Geomview For Windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
probelm with bitmap_icons of Geomview
hi, could some experts over there help me with a problem with the bitmap icons inside the "Tools" panel of Geomview, they are all black. all other bitmaps in the Geomview interface are black, such as the color_box inside the panel for choosing a color for a face. there is a demo (demo33) inside the Forms Library distribution and it is black too. the following is the main part of demo33.c: fl_init(); fl_set_graphics_mode(0,1); form = fl_bgn_form(FL_UP_BOX,400.0,400.0); obj = fl_add_bitmap(FL_NORMAL_BITMAP,140.0,160.0,120.0,80.0,"A bitmap"); fl_set_object_color(obj,1,2); fl_add_button(FL_HIDDEN_BUTTON,140.0,160.0,120.0,80.0,""); fl_end_form(); fl_set_bitmap(obj,sorceress_width,sorceress_height,sorceress_bits); fl_show_form(form,FL_PLACE_FREE,TRUE,"X Bitmap"); fl_do_forms(); fl_hide_form(form); i find that if i delete fl_set_object_color(obj,1,2); i.e. using default bitmap colors i can get black-white bitmaps while the cursor is outside of the windows of Forms Library or Geomview. when the cursor enter the window of forms or geomview the bitmaps become black again. maybe something wrong with the colormap? i called fl_show_colormap() and find that color index 1 is for red , 2 is for green. and i tried different graphics_modes and it doesn't work. can anyone give me some hints? thanx yigong
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
site hosted by