LB Booster
Programming >> Liberty BASIC language >> Window Position & Size
http://lbb.conforums.com/index.cgi?board=lblang&action=display&num=1426245659

Window Position & Size
Post by Jack Kelly on Mar 13th, 2015, 11:20am

Can anyone tell me how to get to the system variables for the current position (horizontal & vertical) and size (width & height) of a resized window, so they can be saved in an ".ini" file.

I know that WindowHeight, WindowWidth, UpperLeftX, UpperLeftY can be used to set these variables, but they don't seem to be able to retrieve them if they've changed.
Re: Window Position & Size
Post by tsh73 on Mar 13th, 2015, 12:39pm

It could be done via API call
Here's link on LBPE
Getting a Window's Coordinates
http://lbpe.wikispaces.com/WindowCoordinates

Re: Window Position & Size
Post by Jack Kelly on Mar 14th, 2015, 08:38am

Thanks for pointing me to the article in LBPE. It worked like a charm.

I'm getting much better at copying other people's API calls now. Hopefully that's the first step toward actually understanding them!