Re: range widget
- From: Sergio Perticone <g4ll0ws gmail com>
- To: Tralfas D <tralfas gmail com>
- Cc: list gtkmm <gtkmm-list gnome org>
- Subject: Re: range widget
- Date: Wed, 24 Oct 2007 16:01:02 +0200
On Wed, 2007-10-24 at 08:47 -0400, Tralfas D wrote:
> I can display the widget but i didnt add any signals and the tutorial
> is a little confusing.
> how would you set the max amount that the widget will go to? and how
> do you add a signal to the widget?
> 
> this is my code thus far for a horizontal range widget --- 
> -- snip --
Your code does not compile. Anyway you have to assign an adjustment to
your Scale widget. For instance:
class examp : public Gtk::Window
{
     // ...
private:
    Gtk::Adjustment m_adj;
    Gtk::HScale     m_HScale;
};
examp::examp()
    : m_adj(1.0, 0.0, 5.0, 0.0),
      m_HScale(m_adj)
{
   // ...
}
Regards,
s.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]