I have problem with using Fl_Multiline_Output in the main when i call it 
nothing happen even if the condition is matched. I tried also
to make function to hold all cases then i call on the main it deosnt work.

However when i put the code with the button function it works without adding 
second line for othe function just override

can you help me please

best regards
huda


======================================================================
 control_login_GUI = new 
Fl_Group(control_login_GUI_x,control_login_GUI_y,hieght_login_GUI,width_login_GUI,"");

                control_login_GUI->box(FL_FRAME_BOX);
            control_login_GUI->box(FL_DOWN_BOX);
      control_login_GUI->begin();
   // exit button

           Fl_Button *exit_button;
       exit_button = new 
Fl_Button(control_login_GUI->x()+exit_x,control_login_GUI->y()+ 
exit_y,button_size_x,button_size_y,"Exit");
       exit_button->callback(acquire_firefly_stereo_image_exit_cb);
           exit_button->labelfont(FL_HELVETICA_BOLD);
       
exit_button->labelcolor(fl_color_cube(128*FL_NUM_RED/256,256*FL_NUM_GREEN/256, 
0*FL_NUM_BLUE/256));
           exit_button->labelsize(12);
           exit_button->box(FL_PLASTIC_UP_BOX);


     // Acquire on button

       Fl_Light_Button *acquire_button;
       acquire_button = new 
Fl_Light_Button(control_login_GUI->x()+acquire_x,control_login_GUI->y()+acquire_y,button_size_x,button_size_y,"Start");
       acquire_button->callback(acquire_firefly_stereo_button_cb);
           acquire_button->value(0);
           acquire_button->type(FL_TOGGLE_BUTTON);
           acquire_button->labelsize(12);
           acquire_button->align(FL_ALIGN_CENTER);
           acquire_button->labelfont(FL_HELVETICA_BOLD);
           
acquire_button->labelcolor(fl_color_cube(64*FL_NUM_RED/256,100*FL_NUM_GREEN/256,
 0*FL_NUM_BLUE/256));
           acquire_button->box(FL_PLASTIC_UP_BOX);
           button = acquire_button; // global copy to allow other callbacks 
access to it e.g. exit_cb so it can call it to stop image acquisition

           control_login_GUI->end();



 text_output = new Fl_Multiline_Output(text_output_x, text_output_y, 
text_output_width, text_output_height,"Serviced Robot Info" );
     text_output->align(FL_ALIGN_TOP | FL_ALIGN_CENTER );
     text_output->labelsize(12);
     text_output->textsize(11);
     text_output->value("");
     text_output->box(FL_PLASTIC_DOWN_BOX);

if (button->value()==1){
      text_output->value("Robot Start Aquire Image");
   }
   elseif (button2->value()==1){
      text_output->value("Robot Start wander mode");
   }
   else
   {

    clear_text();
   }

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

Reply via email to