A custom widget

2018-08-05 Thread Lucky B.C via gtk-app-devel-list
Hi, I'm developing a custom widget for my private app in Gtk+-2.2.24. It has the parent GtkBin, the custom widget let me put more things inside, then show me it's done by drawing the icon for the added thing (stored in GtkVBox for row, GtkHBox for icons). Every icon has 3 states, nor

Re: Adding a child widget to a custom widget

2006-09-06 Thread Tristan Van Berkom
Alexandre wrote: > Hi > > I'm creating a widget, a plotting widget, and I have done a scale widget > too. So, I want that the plotting widget has a child, the scale widget, to be > it's axis. > So, I fill the "allocation" structure of the scale widget to the position I > want, and then I

Adding a child widget to a custom widget

2006-09-06 Thread Alexandre
Hi I'm creating a widget, a plotting widget, and I have done a scale widget too. So, I want that the plotting widget has a child, the scale widget, to be it's axis. So, I fill the "allocation" structure of the scale widget to the position I want, and then I call gtk_widget_set_parent

Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: [...] This sounds like a workable idea as long as it won't alter the allocation request of the child widget. You mean the size-request (aka GtkRequisition) ? Usually a size-request isn't needed on a widget, but you shoulnt allow a widget to have an allocation that is smal

Re: I don't think I need a custom widget

2005-08-03 Thread Greg Breland
On Wed, 2005-08-03 at 13:24, Tristan Van Berkom wrote: > Maybe you should write one custom GtkContainer for each type > of container you need to put those widgets in. > > The problem is really about the container widget and the > allocation it gives to its child, also what child properties > are i

Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: I'm sure I can handle the display part without a creating a custom widget, but can I handle the interactive part without resorting to creating a new widget based on the GTK widget? I have about 26 different widgets I need to do this for and I don't want to have to

I don't think I need a custom widget

2005-08-03 Thread Greg Breland
way more than I need. Does anyone know of any documents on simply piggybacking on a widget's expose event to add additional drawing operations such at gtk_paint_polygon() and such. I'm sure I can handle the display part without a creating a custom widget, but can I handle the intera