Does anyone know of a way to create a lightbar of choices in MPL and
store the users choice in a variable?
There are two ways, one simple and one complicated but better. You can see the complicated one almost in every script i have, which i saw it from g00r00s scripts. I just made it as a procedure to get a value, like you do.
The simple way is to draw all elements (in a for/while loop) and at the end display the highlighted selection... if you don't know mpl, i can write one
for you, but you'll have to have a little patience :)
For MPL/pascal snippets of code, you can find many stuff in the SWAG archive.
http://swag.delphidabbler.com/
It has a unique Menu Management section :) You'll find many lightbar stuff. They may need some slight changes to work for MPL. If you find something you like and need help with the code, just ask here. :)
:: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 ::
xqtr@gmx.com
--- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
* Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)