Re: Properties, what are they for? Wigets writing doubts.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Sep 14, 2006 at 06:30:05PM +0000, Alexandre wrote:
  Hi everyone.

  I'm beginning in widget's writing, and I want to know what is the
purpose of the  widgets properties. [...]

I think others ave ansered that...

  One other thing, I've readed that if I want to make a widget with
a child, this has to be a container (GtkContainer), so, I have a
widget, it's a x-y plotting widget, and I have other widget, a scale.
I want that the plotting wigdget has two childs (2 scale widgets) to
be it's x and y axis. So, it's better if the plotting widgets has a
GtkContainer as parent? Or other widget else?

I think I got that: what one usually does is:

  container --+
              +-- plot widget
              +-- y scale widget
              +-- x scale widget

that is, wrap all sub-widgets in a top level container. This will be
your "plot widget" as seen from outside.

HTH
- -- tomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFCiw8Bcgs9XrR2kYRAnIqAJ0cX1UQNxuUi4zfYCfE73G0YOHrRgCeIU3r
0HhT82hVWRckLb/fCYrqs3E=
=s+kz
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]