[gtkmm] simple window size question part 2
- From: Bevis Peters <bevis anvil com>
- Cc: gtkmm-list gnome org
- Subject: [gtkmm] simple window size question part 2
- Date: Thu, 15 Jan 2004 13:52:57 +0000
OK, let me clarify that a bit. This code:
mc_image_window.set_size_request(400, 400);
mc_image_window.move(0, 0);
mc_image_window.maximize();
int w=0, h=0;
mc_image_window.get_size(w, h);
cout << w<<", "<<h<<endl;
gets back 400x400, not the windows true maximised size.
what have i missed?
bevis
I want to get the size of a maximised window. I do something like:
C_Mywindow mc_mywindow; (inherits Gtk::Window)
mc_mywindow.move(0, 0);
mc_mywindow.maximize();
int w, h;
mc_mywindow.get_size(w, h);
(or w=mc_mywindow.get_width(); etc)
but the size I get back is not it's maximised size.
if i put in a
mc_mywindow.set_size_request(400, 400);
before the maximize, i actually get back a size of 620x620.
what have i missed?
bevis
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]