Re: Initial position of windows



I thought I had tried "window->set_position(Gtk::WIN_POS_NONE)" and failed, but trying it again now it of course works. Thanks for the encouragement to try again.

I have a related (possibly ill-formed) question: What documentation should I have found that would tell me things like "It's just a namespaced version the GTK+ enum"? Is it expected that one read the gtkmm header files to sort this out? I found the basic gtkmm tutorial quite useful, but at some point I got lost trying to understand for example what are the
names of methods for a window when in gtkmm.

Bruce Sherwood

Jonathon Jongsma wrote:
On 12/18/07, Bruce Sherwood <Bruce_Sherwood ncsu edu> wrote:
Somewhere I thought I read that one should explicitly set_position
before doing the move, so I tried this:

Gtk::WindowPosition initpos = WIN_POS_NONE;
window->set_position(initpos);
window->move(x,y);

But this and variants give me compilation errors.on the first statement
(no such thing as WIN_POS_NONE, etc.). It seems likely that I'm confused
in the multiple layers of gtkmm vs gtk+....??

unless you have a "using namespace Gtk;" statement somewhere, that
will need to be Gtk::WIN_POS_NONE (which is really just a namespaced
version of the GTK+ enum value GTK_WIN_POS_NONE)



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