Re: Adjustment problem



> If you write up a quick example I'll take a look real quick and digg
> into gtk if necessary.  Sounds an awfull lot like a bug of them not
> getting initialized at instantiation.

That's what I thought. Thanks for taking the time to look into this.
Here's the most basic code:

#include <gtkmm.h>

using namespace std;

// g++ -g -Wall `pkg-config gtkmm-2.4 --libs --cflags` -o adjustment adjustment.C


int main(int argc, char * argv[])
{
    Gtk::Main m(&argc, &argv);

    Gtk::Window w;
    Gtk::Adjustment adj(25, 0, 100, 1, 10, 10);
    Gtk::SpinButton spin(adj, 1, 0);
   
    w.add(spin);
    w.show_all();

    m.run(w);
    
    return 0;
}




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