Re: Placing Widgets over another on the screen
- From: jcupitt gmail com
- To: "Markus Müller" <markus mueller gersys de>
- Cc: GTK App Devel List <gtk-app-devel-list gnome org>
- Subject: Re: Placing Widgets over another on the screen
- Date: Wed, 13 Feb 2008 15:17:11 +0000
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]