RE: [gtkmm] Fixed container and Gtk::Container::foreach
- From: Murray Cumming Comneon com
- To: ec142 york ac uk, gtkmm-list gnome org
- Subject: RE: [gtkmm] Fixed container and Gtk::Container::foreach
- Date: Wed, 26 Mar 2003 20:40:41 +0100
> -----Original Message-----
> From: Enrico Costanza [mailto:ec142 york ac uk]
> I am trying to use the Gtk::Fixed container because I need to specify
> precisely the coordinate of my objects on screen.
Firstly, you almost certainly do not. And if they are "objects" rather than
widgets then libgnomecanvasmm is probably more appropiate.
> Can anyone give me an example of how to use the foreach function in
> Gtk::Container? I did not manage to find anything in the
> examples nor in the
> documentation.
Just provide a SigC::Slot. It will be called for every child. Here's a an
example:
http://cvs.gnome.org/lxr/source/gtkmm/gtk/src/container.ccg#119
You can also use get_children() and iterate over the children manually.
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]