Graham wrote:
> 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?

It should work, as you describe it. One common problem with these
symptoms is, if your widgets ("activity buttons") are not within
the boundaries of their parent group. Please check your group
coordinates, width, height.

You could also use Fl_Tabs as container widgets. This widget
group would do the hiding/showing of contained buttons for you.

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

Reply via email to