Re: [gtk-list] HELP PLEASE!



Udo Giacomozzi wrote:
> 
> [I posted this already before. Nobody replied. :-( Maybe a mail error (sorry
> if not). However, if anyone can help me please do. I really need to find the
> solution to this problem. Thank you.]
> 
> I am still learning how to use GTK and I have a bit more complicate problem
> now:
> I need to create a window. This window should contain some widgets. These
> widgets will be *fixed* size boxes (i.e. a text box). The widgets are
> connected to each other with lines. To be exact, these boxes represent
> modules and the lines are pipes that connect the modules.
> 
> What I need to do (and don't know how) now is:
> 1 - create a new widget (the box). This widget has fixed a width and height
> and should be possible to move with the mouse.
> 2 - draw lines to these widgets
> 
> On [2]: I thought it would be best to add a drawing area to the window where
> I draw my lines. But how can I put other widgets in this area? In GTK,
> container widgets and sensitive widgets are two different things. At least I
> don't know of a container widget that is visible in some way.
> 
> I hope you understand my problem. I would be very grateful of any help. Feel
> free to ask me anything additional! :-)
> 
> Thanks
> Udo Giacomozzi

Hello,

I think that what you need is a GnomeCanvas or something like that. You
can place widgets on it and you can connect widgets with each other
using lines.

Take a look....

regards,

_A_

Arjan Molenaar



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