> for example I have one group is shown, I would like to hide
> it and show another by pushing an OK button
> can some one help ?
Sounds like you want an Fl_Wizard widget. See attached fluid file for a
working example.
#########################
# data file for the Fltk User Interface Designer (fluid)
version 1.0110
header_name {.h}
code_name {.cxx}
Function {} {open
} {
Fl_Window main_win {
label {Wizard demo} open
xywh {552 231 445 322} type Double visible
} {
Fl_Wizard wiz_box {open
xywh {25 25 405 240} box THIN_DOWN_BOX
} {
Fl_Group gp1 {open
xywh {25 25 405 240} box THIN_DOWN_BOX
} {
Fl_Box {} {
label {Box 1}
xywh {165 50 90 56}
}
Fl_Button {} {
label {@<}
callback {wiz_box->prev();}
xywh {45 215 37 26} box FLAT_BOX
}
Fl_Button {} {
label {@>}
callback {wiz_box->next();}
xywh {375 215 37 26} box FLAT_BOX
}
}
Fl_Group gp2 {open
xywh {25 25 405 240} box THIN_DOWN_BOX hide
} {
Fl_Box {} {
label {Box 2}
xywh {165 50 90 56} labelcolor 1
}
Fl_Button {} {
label {@<}
callback {wiz_box->prev();}
xywh {45 215 37 26} box FLAT_BOX
}
Fl_Button {} {
label {@>}
callback {wiz_box->next();}
xywh {375 215 37 26} box FLAT_BOX
}
}
Fl_Group gp3 {open
xywh {25 25 405 240} box THIN_DOWN_BOX hide
} {
Fl_Box {} {
label {Box 3} selected
xywh {165 50 90 56} labelcolor 4
}
Fl_Button {} {
label {@<}
callback {wiz_box->prev();}
xywh {45 215 37 26} box FLAT_BOX
}
Fl_Button {} {
label {@>}
callback {wiz_box->next();}
xywh {375 215 37 26} box FLAT_BOX
}
}
}
Fl_Button quit_bt {
label Quit
callback {main_win->hide();}
xywh {366 282 64 28}
}
}
}
################################
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk