It is currently Sat May 26, 2018 6:35 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [PB5.62] Window Width limited to 1380
PostPosted: Tue Feb 13, 2018 2:30 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 523
Location: Portugal
Hello!

Code:
If OpenWindow(0,0,0,1440,600,"Proofing Tool GUI",#PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered)=#False : MessageRequester("Error", "Can't open a window.", #PB_MessageRequester_Error) : EndIf

Debug WindowWidth(0)


The window doesn't open with a width of 1440 (Standard HD).

Tested with PB x64.

Not sure if this happens because my screen size is 1366x768, but it shouldn't matter.

I am planning to use higher sizes for people with Full-HD.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Tue Feb 13, 2018 2:53 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 656
No bug.

I can only talk about Windows and it is a standard behavior that a window cannot be larger than the screen. Try to enlarge any window with the mouse bigger than the screen. Won't work either.

Maybe you could do something with SetWindowPos_(), but this has nothing to do with the fact that Pb's behavior is correct.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Tue Feb 13, 2018 5:38 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1320
use WindowBounds().

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Tue Feb 13, 2018 10:17 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1379
Josh wrote:
it is a standard behavior that a window cannot be larger than the screen. Try to enlarge any window with the mouse bigger than the screen. Won't work either.

Actually, that's wrong. If I drag a window off the left edge of the screen so that only its right half is visible, I can then drag its right edge to the right to make the window wider than the screen. Sure, not all of the window is now visible at once, but the end result is that the window is wider than the screen.

What nco2k said is also correct:

Code:
OpenWindow(0,0,0,2000,1000,"test")
WindowBounds(0,2000,1000,#PB_Ignore,#PB_Ignore)
Debug WindowWidth(0) ; Returns 2000
Debug WindowHeight(0) ; Returns 1000
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow

BTW, this thread is not a bug. ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Tue Feb 13, 2018 10:56 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 523
Location: Portugal
Thanks, it has worked.

Could someone move the thread to coding questions?


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Wed Feb 14, 2018 12:21 am 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1555
Location: Germany (Saxony, Deutscheinsiedel)
marcoagpinto wrote:
Could someone move the thread to coding questions?


Done :D

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Wed Feb 14, 2018 4:10 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 656
Dude wrote:
Actually, that's wrong. If I drag a window off the left edge of the screen so that only its right half is visible, I can then drag its right edge to the right to make the window wider than the screen. Sure, not all of the window is now visible at once, but the end result is that the window is wider than the screen.

Definitely no, at least on Win7 and I'm almost certain that this was not the case with earlier versions of Windows. Win8 and later versions I know too little.

Maybe you have installed several screens.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.62] Window Width limited to 1380
PostPosted: Wed Feb 14, 2018 8:54 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1379
@Josh, I stand corrected -- if I try to resize Notepad or Paint Shop Pro to wider than my single monitor width, it doesn't work.

BUT, when I posted above that it does work, it's because I was resizing one of my PureBasic apps, which does let me resize it to be wider than my single monitor width. I since discovered that it was due to using WindowBounds() in an IncludeFile that I forgot about. :lol:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye