Homogeneous table
Hi guys, I have this table : https://ibin.co/3EyWlgNYl1uK.png This table have 5 columns, each column has an image. I just want to see one image at a time, but I do not want to center that image, that is, I want to see it in its correct position. SO, when i do this next code image should be in correct position and not in center. And i'm seeing in the center. gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, "first")), FALSE); gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, "second")), FALSE); gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, "third")), FALSE); gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, "fourth")), FALSE); gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, "fifth")), TRUE); I use homogeneous propriety in glade for table. and in packing i put expand yes and fill yes. What's wrong? Thanks, ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Homogeneous table
Hi Ruben, Consider using a drawing area and GTK3. There are more drawing and graphical capabilities in GTK3. Going forward to GTK4 I expect even more drawing capabilities since every computer sold these days has a gpu and the software can take advantage of that. With a drawing area you get better control of what you can do with your image. It makes it easy to place the image in different places along with, transparency, text, animation, transforms,,, and a lot of other things. For chicken placement you can use 5 separate drawing areas or merge them into one. I have something similar with selecting critters for gauge speed. A png picture here. https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/AdjustableGauge There is a simple picture in a drawing area with some animated text over it at https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/draw_chars1.c The code is simple enough but it needs a picture and picture path for it to work. I think that it could be ported to GTK2 but haven't done so. I like the graphical capabilities of GTK3 so I sort of stick with that for now. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Homogeneous table
HI, Thanks for your reply. NExt i will change to gtk3, but i think that i need to change many things.. It could be simple to make a homogeneous table and hide images, unfortunately not.. On 09-03-2017 18:59, cecas...@aol.com<mailto:cecas...@aol.com> wrote: Hi Ruben, Consider using a drawing area and GTK3. There are more drawing and graphical capabilities in GTK3. Going forward to GTK4 I expect even more drawing capabilities since every computer sold these days has a gpu and the software can take advantage of that. With a drawing area you get better control of what you can do with your image. It makes it easy to place the image in different places along with, transparency, text, animation, transforms,,, and a lot of other things. For chicken placement you can use 5 separate drawing areas or merge them into one. I have something similar with selecting critters for gauge speed. A png picture here. https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/AdjustableGauge There is a simple picture in a drawing area with some animated text over it at https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/draw_chars1.c The code is simple enough but it needs a picture and picture path for it to work. I think that it could be ported to GTK2 but haven't done so. I like the graphical capabilities of GTK3 so I sort of stick with that for now. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Homogeneous table
On Fri, 2017-03-10 at 10:32 +, Rúben Rodrigues wrote: > HI, > > Thanks for your reply. NExt i will change to gtk3, but i think that i > need to change many things.. It could be simple to make a homogeneous > table and hide images, unfortunately not.. I don't know exactly what you desire, but I have the feeling that it may be possible. Maybe you can use dummy images as place holders? Or maybe you can put your images first in some sort of (fixed size) container, and than put that container into the table? Or, when I remember the old Krause book correctly, I think there is some type of container available in GTK2 with allows absolute positioning. Maybe use that instead of a table? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list