implementing a container??
- From: Jim Crafton <jim crafton verizon net>
- Cc: GTK App Dev List <gtk-app-devel-list gnome org>
- Subject: implementing a container??
- Date: Sat, 26 Apr 2003 20:21:31 -0400
I am using gtk in my framework for it's linux port.
In the framework that I have written I already have code that does
repositioning of child controls based on alignment and or anchors.
So my question is, what is the best approach for using GtkWidgets and
positioning them with absolute coordinates (with the alignment/layout
being taken care of by my framework)? I have experimented with the fixed
container, and this seems very similar to what I want, but I am a bit
confused as to how best to use it.
For example
if i want to move a child control (that has been added to the fixed
container) what is the "correct" way to do it?
I can use the gtk_fixed_move for x and y coordinates and then use
gtk_widget_set_size_request() to set the width and height.
But is there a better way? Should I make a special container class to
handle this(I notice that this appears to have been what wxWindows did
for their port)?
Thanks
Jim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]