> I have two groups within a container group. The first group > contains a list of "settings" buttons. When a button in this > group is pressed, it adds "activity" buttons to the second > group. When another "settings" button is pressed, the > expected behavior is to remove all of the buttons from the > "activities" group and replace them with the buttons > associated with the newly pressed settings button. > > --------------------------------------------------- > | | > | --Settings------------- --Activities--------- | > | | ------------------ | | ----------------- | | > | | | Process | | | | New | | | > | | ----------------- | | ----------------- | | > | | | | | | > | | ------------------ | | ----------------- | | > | | | Network | | | | Delete | | | > | | ------------------ | | ----------------- | | > | | | | | | > | ----------------------- --------------------- | > | | > --------------------------------------------------- > > When I remove the buttons from the Activities group, they > still appear on the display unless the application window is > hidden exposed by another window. > > How can I remove buttons from a group and have them removed > from the screen?
A couple of options: - After modifying the "Activities" group, try calling redraw() on its parent. That should get things sorted out. - Possibly better; rather than adding and removing widgets to the activities group, simply have 2 activities groups,(e.g. activ_process and activ_network and call hide() on one and show() on the other to toggle between then in response to clicks on your "process" and "network" buttons. Is that the sort of thing you are trying to do? SELEX Sensors and Airborne Systems Limited 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

