ResizeWindow() with Flags = #PB_Window_SystemMenu

Just starting out? Need help? Post your questions and find answers here.
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by mestnyi »

Thanks for the clarification
I asked about Linux, because the same problem occurs. :(
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post 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.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post 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.
"Have you tried turning it off and on again ?"
A little PureBasic review
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by mestnyi »

And thanks for that we will continue to understand :)
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by luis »

Thanks for the thanks, you are welcome.
"Have you tried turning it off and on again ?"
A little PureBasic review
PureGuy
Enthusiast
Enthusiast
Posts: 102
Joined: Mon Aug 30, 2010 11:51 am

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by PureGuy »

@luis
I like the font from your screen shot, what's is name?
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post 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.
Keep it BASIC.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post 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.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post 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.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by Fred »

Fixed.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Reverted the 'fix', as it creates to much problems with high DPI screens
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ResizeWindow() with Flags = #PB_Window_SystemMenu

Post by Fred »

It's the regular Windows behaviour to have transparent size grip accounted in the window x,y position.
Post Reply