Hello all,
 
i created two widget classes. The first one (Widget A) draws a simple square 
with a predefined color in a drawingarea .
This widget should have four members of the second widget (Widget B) which has 
the same architecture and
draws a simple self-defined symbol.
The placement on the screen should finally look like that the four little 
symbols are placed (like in a hbox) in
the square. The color of the symols has to be changed during runtime by 
events/callbacks.
Everything compiles well, with program start Widget A is created and drawn and 
also all four Widgets B can be created.
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...
 
Q1) Is there a way to configure my Widget A to contain others widgets so they 
can be drawn too like mentioned above
or
Q2) Is there another principial mechanism to draw widgets over another
 
Best regards
Markus
 
-----
Gersys GmbH, Hans-Urmiller-Ring 46c, D-82515 Wolfratshausen, Germany
Geschaeftsfuehrer: Erwin Sterzer, HRB 137 872 Muenchen, Fon: +49(0)8171 9986-6
 
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet.
 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient or have received this e-mail in error please notify 
the sender immediately and destroy this e-mail. Any unauthorised copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to