Re: locating a widget in a scrolled window

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

 



Hi Irtza,

I didn't understand exactually the question, just the essence . So ,
are  you using some kind of "struct" or only "simple variable" to
represent the widget that you have !?

If no, I think you could try to think about it too. In my gtk programs
I always implement struct to my application widgets. This approach
give me more control to every widget shown or not in the screen ...
When it must support more than one instance of the same widgets , like
in your case, I use glist to store and manage them ... and so on ...

I don't know if it's exactually what you are looking for, but i hope
to help anyway ...

Best Regards

> I am working on a program that modifies the GUI during use.  It will
> add new widgets based on user interaction and I would like to be able
> to automatically center a scrolled window onto the new widget.  Is
> there any way that you can locate a widget's position within a
> scrolled window and the adjust the window so that the object is
> onscreen?  To make the situation more difficult, the object may not be
> a direct child as in there will be a scroll window containing a vbox
> which has the object in question... and not always that exact method
> of nesting.
> 
> and if you need it, the version of gtk I am using is 2.0 and the
> program is hosted on sourceforge at http://ioe.sf.net

-- 
Antonio Gomes
E-mail: antonio.gomes@xxxxxxxxxxx
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnologia (Manaus/Br)
NOKIA's Technology Institute
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux