Re: [gtkmm] ever tried a Gtk::HandleBox?



"Andreas B. Thun" <abt gmx de> writes:

> Hi!
>
> I've experimented with HandleBoxes, but
> nothing happens in my GUI. A horizontal
> bar is drawn but I cannot drag it with
> the mouse?!
> Any hints would be appreciated.
>
As a sanity check, make sure this compiles, and that you can drag the
entry out of the frame window.  If you need further help with this,
try to post the smallest example that will actually compile.

#include <gtkmm.h>

int main(int argc, char *argv[])
{
    Gtk::Main kit(argc, argv);
    Gtk::Window window;
    Gtk::HandleBox hbox;
    Gtk::Entry entry1;

    entry1.show();
    hbox.add(entry1);
    hbox.show();
    window.add(hbox);
    window.show();

    Gtk::Main::run(window);
    
    return 0;
}

--
Billy O'Connor



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