Re: Placing Widgets over another on the screen



Hi Markus,

On 13/02/2008, Markus Müller <markus mueller gersys de> wrote:
When trying to add the Widgets B to A like gtk_container_add(GTK_CONTAINER(Widget_A),Widget_B); the console
creates an error that Widget A (of coursce) is no Containter-Class but Widget A-Class...

You need to derive your widget A from a subclass of container. I'd
look at the source code for a simple container like gtkfixed to see
how to do this.

You could also avoid this complexity and just make each of your
widgets a subclass of drawingarea and then use a combination of tables
and boxes to glue them together.

John



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