Re: sanity check: deriving from Gtk::Range



A brief scan using google turns up a GTK and a PHP-GTK dial widget,
which might help you base a C++ version on.

GTK's official example:
http://library.gnome.org/devel/gtk-tutorial/stable/x2312.html#AEN2354

PHP-GTK: http://php-gtk.eu/code-snippets/dial-widget

Maybe that will help.

--Chris

On Wed, Jul 9, 2008 at 8:26 PM, Paul Davis <paul linuxaudiosystems com> wrote:
>
> On Wed, 2008-07-09 at 21:05 -0500, Joaquim Schmidlap wrote:
>> I need to create a Dial type widget, the standard speedometer sort of
>> thing. I looked around for something open source that would work but
>> came up dry, so I'm resigned to building my own.
>>
>> It seems like the right thing to do would be to derive from Range.
>
> control/view components of an MVC system typically use a HAVE-A
> relationship with the model part.
>
> in this case, your "dial" would HAVE-A Range, not use IS-A Range. in
> real life that typically means a Gtk::Range* or Gtk::Range&
>
> --p
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>


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