WindowWidth() bad size return ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 344
Joined: Mon Jul 08, 2013 8:43 pm

WindowWidth() bad size return ?

Post by minimy »

Hello, im surpised when run this code and return crazy width. Some body can test and tell me if is my bad, my system or if i need let the cups in the bottle.. :D

Code: Select all

If OpenWindow(0, 0, 0, 230, 90, "size window??...", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget)
   Repeat
     Event = WaitWindowEvent()
      Select Event
        Case #PB_Event_SizeWindow
         Debug WindowWidth(0)
     EndSelect
   Until Event = #PB_Event_CloseWindow
EndIf
This in my pc must return 230, and maximized will be 1920, but return 1536.. ??

Is a bug?. Thanks for help!

EDITED...

Ok, was my bad, i have 125% zoom in my windows. Is posible detect it with PB?.
Thanks!!
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: WindowWidth() bad size return??

Post by STARGÅTE »

PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Post Reply