• Lightbar & MPL

    From Netsurge@21:4/154 to All on Monday, July 08, 2019 14:26:52
    Does anyone know of a way to create a lightbar of choices in MPL and store
    the users choice in a variable?

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (21:4/154)
  • From Avon@21:1/101 to Netsurge on Tuesday, July 09, 2019 19:36:58
    On 08 Jul 2019 at 02:26p, Netsurge pondered and said...

    Does anyone know of a way to create a lightbar of choices in MPL and
    store the users choice in a variable?

    Sorry no I don't...

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From xqtr@21:1/111 to Netsurge on Tuesday, July 09, 2019 17:50:38
    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)
  • From Netsurge@21:4/154 to xqtr on Tuesday, July 09, 2019 13:09:46
    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.

    I actually looked at your startup script and figured it out from there. Many thanks for all the shit you have written, it helps a lot of us out.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (21:4/154)