Page 2 of 2

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 9:00 pm
by mestnyi
Thanks for the clarification
I asked about Linux, because the same problem occurs. :(

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 9:08 pm
by luis
Really ? Exactly the same thing ? I find it very strange.

I tried on Linux Mint with this program:

Code: Select all

; BAD

OpenWindow(0, 10, 150, 280, 70, "30",#PB_Window_SystemMenu)
SetWindowColor(0,$F650F1)

OpenWindow(1, 0, 0, 280, 70, "30",#PB_Window_SystemMenu)
SetWindowColor(1,$0050F1)

x=WindowX(0,#PB_Window_FrameCoordinate)
y=WindowY(0,#PB_Window_FrameCoordinate)
w=WindowWidth(0,#PB_Window_FrameCoordinate)
h=WindowHeight(0,#PB_Window_FrameCoordinate)

ResizeWindow(1,(x+w),y, #PB_Ignore, #PB_Ignore)


; GOOD

OpenWindow(2, 10, 350, 280, 70, "30",#PB_Window_SystemMenu | #PB_Window_SizeGadget)
SetWindowColor(2,$F650F1)

OpenWindow(3, 0, 0, 280, 70, "30",#PB_Window_SystemMenu | #PB_Window_SizeGadget)
SetWindowColor(3,$0050F1)

x=WindowX(2,#PB_Window_FrameCoordinate)
y=WindowY(2,#PB_Window_FrameCoordinate)
w=WindowWidth(2,#PB_Window_FrameCoordinate)
h=WindowHeight(2,#PB_Window_FrameCoordinate)

ResizeWindow(3,(x+w),y, #PB_Ignore, #PB_Ignore)
 
While WaitWindowEvent() ! #PB_Event_CloseWindow :Wend
which didn't previously work correctly on Windows and under Linux I don't see any problem.

What are your results with that one on Linux ?

Can you try with a different windows-manager on the same distribution, or at worst on another distribution ?

Anyway, if that's really the case, you should open a new thread in the Linux subforum I think.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 9:31 pm
by mestnyi

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 9:41 pm
by luis
Short reply here:

Works ok for me, likely the problems are caused by the peculiar Unity UI but I don't have an OS with that installed so I cannot look into that.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 10:01 pm
by mestnyi
And thanks for that we will continue to understand :)

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Tue Feb 17, 2015 10:04 pm
by luis
Thanks for the thanks, you are welcome.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Wed Feb 18, 2015 4:44 pm
by PureGuy
@luis
I like the font from your screen shot, what's is name?

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Wed Feb 18, 2015 5:20 pm
by heartbone
sorry about the Off Topic: but this is the best place
luis wrote:The illustrious man in the picture is inspector Sledge Hammer (TV show) -> http://en.wikipedia.org/wiki/Sledge_Hammer!
Thanks to YouTube I can catch up on a lot for the mindless quality entertainment that I've missed.
That show has me laughing much more than I expected, it has aged very well.
This coming from an adult who stayed away from computer club meetings to watch the A-Team after they rescheduled the show,
I really appreciate a TV program about a man who worships his gun yet never manages to shoot anyone intentionally.
At least not so far... I fell asleep on the fourth episode because it was so late.
There is a certain deranged quality about the scripts, the visual gags, and the actor's portrayals which I find very appealing.
Thanks for the tip luis.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Wed Feb 18, 2015 8:09 pm
by luis
@heartbone

Eh, the show is silly I know, but I saw it when I was younger and liked it (initially dubbed in Italian, then the original one in English).
Sometimes some silliness is just what I need.
I liked the actor impersonating Sledge (David Rasche), and I liked Sledge even if in real life it would be problematic to have him around.
But he was fundamentally a simple, honest, good guy who wanted to fight scum and incidentally talked to his gun.
I would have liked to have a friend like him, and sometimes I still would like to have the same freedom he had.
I remember him with affection.
The first series is the best one, the second has its moments but it's weaker, and with a dissatisfying ending.
PureGuy wrote: I like the font from your screen shot, what's is name?
Incidentally I like it too !

It's called Dina, see here -> http://www.purebasic.fr/english/viewtop ... 69#p277669

Be warned, it's a bitmap font (it has only a couple or so of fixed sizes, but that's why it's so crisp), and does not support Unicode.

Originally for Windows but I managed to found it converted for other OSes too.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Wed Feb 18, 2015 9:27 pm
by Vera
luis wrote:Incidentally I like it too !
It's called Dina, see here -> http://www.purebasic.fr/english/viewtop ... 69#p277669
8) ~ me three
In case of interest: follow along to a small ProggyFonts Review I've made some years ago.

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Thu Aug 13, 2015 10:45 am
by Fred
Fixed.

Re: [Done] ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Fri Feb 19, 2016 9:57 am
by Fred
Reverted the 'fix', as it creates to much problems with high DPI screens

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Posted: Sun Mar 30, 2025 10:41 am
by Fred
It's the regular Windows behaviour to have transparent size grip accounted in the window x,y position.