Re: range widget



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]