LB Booster
« LOCATE command without width/height »
Welcome Guest. Please Login or Register. Apr 1st, 2018, 05:01am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
Re: LOCATE command without width/height
« Reply #1 on: Mar 15th, 2017, 6:12pm »
I think it is just crap code. It used to be necessary to locate off screen to draw hidden graphics and then show the graphics. That was prior to show and hide. Also getbmp used to behave differently for an off screen graphicbox but not now, and not for a long time.
Liberty fails to notice the missing parameters however it ignores the locate/refresh pair unless they are properly formatted
I would throw an error if the parameters are missing.
I would throw an error if the parameters are missing.
That (or simply ignoring the command) would be a simple solution, but I'm thinking that a useful language extension might be to interpret the missing parameters as meaning 'change the position but don't change the size'. It would then be possible to use LOCATE to move a control without needing to know how big it is.