|
Post by Gordon Rahman on Jul 20, 2020 10:41:52 GMT -5
WindowWidth = 800 WindowHeight = 600
'stylebits #w.g, 0,_WS_BORDER,0,0 graphicbox #w.g, 0,0,800,600 open "" for window as #w #w "trapclose [quit]" #w.g "home" #w.g "posxy x y" print x,y wait
[quit] close #w end
Oops it's the stylebits !!!
The LB graphic window even misses it much more. Even the stylebits won't help the LB graphicbox
Gordon
|
|
|
Post by Chris Iverson on Jul 20, 2020 18:09:47 GMT -5
As long as I turn off the border, the results I get always seem to make sense.
800x600 = 400x300(halfway) 801x601 = 400x300(rounds down because of a fractional result) 802x602 = 401x301(halfway)
The border has to be removed because, as a part of Windows itself, the border is considered part of the window. If you have a border, you have less client area to draw with.
|
|