Page 1 of 1

PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Fri Oct 23, 2015 9:36 am
by ts-soft

Code: Select all

OpenWindow(0, #PB_Ignore, #PB_Ignore, 640, 480, "")
Repeat : Until  WaitWindowEvent() = #PB_Event_CloseWindow
regards
Thomas

Re: [PB540] #PB_Ignore places windows always at 0,0 GTK3

Posted: Fri Nov 20, 2015 1:11 pm
by Fred
Fixed.

Re: [Done] PB540 #PB_Ignore places windows always at 0,0 GTK

Posted: Tue Nov 24, 2015 7:16 pm
by ts-soft
It's changed, but not fixed.

The window is always screencentered and not overlapped windows!

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Tue Nov 24, 2015 8:01 pm
by Fred
Linux doesn't have a "remember from last time" window position, so it's always centered. What did you expect exactly ?

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Tue Nov 24, 2015 8:24 pm
by ts-soft
If i open some windows (SDI Single Document Interface), the should overlapped and not one over the other, like
#CW_USEDEFAULT on windows.
Linux doesn't have a "remember from last time" window position
That was not useful for that.
MSDN wrote:If this parameter is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter.
This is required (for Linux)!

and i am sure, this has worked in earlier versions of pb.

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Wed Nov 25, 2015 8:52 am
by Fred
If you can confirm it worked before as expected on GTK3, I will take a closer look

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Wed Nov 25, 2015 9:42 am
by ts-soft
I can't confirm, it worked with GTK3, i have never tested with GTK3.

I think, the "GTK_WIN_POS_NONE" constant is the same as "CW_USEDEFAULT" on windows???

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Wed Nov 25, 2015 9:51 am
by Fred
Where is this documented ?

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Wed Nov 25, 2015 9:59 am
by ts-soft

Re: PB540 #PB_Ignore places windows always at 0,0 GTK3

Posted: Wed Nov 25, 2015 10:50 am
by Fred
I beleive than using this flag will place the window exactly at the coordinate you defined (should be the default flag). It doesn't seems like the Windows behaviour.