Why on_configure_event is never called here ?
- From: smartvinsk <trash cabeca com ar>
- To: gtkmm-list gnome org
- Subject: Why on_configure_event is never called here ?
- Date: Wed, 5 Aug 2009 19:21:09 -0700 (PDT)
class myCtn : public Gtk::Fixed
{
public:
Gtk::Button btn;
int x, y;
bool on_configure_event (GdkEventConfigure *e)
{
printf("\non configure");
return false;
};
void botao_clicked()
{
x += 25;
y = x;
Gtk::Button *tmp = new Gtk::Button("Button");
put(*tmp, x, y);
tmp->show();
};
myCtn(): btn("Botao"){
add_events (Gdk::ALL_EVENTS_MASK);
put (btn,0,0);
btn.signal_clicked().connect(sigc::mem_fun(this,
&myCtn::botao_clicked));
x=y=0;
btn.show();
};
};
int main (int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window win;
myCtn box;
win.add(box);
win.show_all();
Gtk::Main::run(win);
}
--
View this message in context: http://www.nabble.com/Why-on_configure_event-is-never-called-here---tp24839351p24839351.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]