Results 1 to 7 of 7

Thread: Is there a way to modify the pages menu to add an exit option?

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,230

    Is there a way to modify the pages menu to add an exit option?

    Hi,

    My user use the Page Navigation to navigate the App. An exit option would be very helpful on that menu.

    Thanks

    Herb

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,010
    Hi Herb,

    What if you added a page with some random message on it ("Bye-bye, have a great day!") and in the Activate of the form issued Lianja.closeApp() ?

    Or the page could have a canvas section with a label above "Are you certain you want to leave this application" with Yes No buttons. No takes you to the First page of the app, Yes issues the Lianja.closeApp()

    Hank
    Last edited by HankFay; 2020-03-15 at 12:25.

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,967
    Hi Herb,

    I’ll have a look at adding an attribute that adds “Exit” in desktop apps.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,967
    In 5.3Beta30 I have added..

    - An additional App attribute "Additional page menuitems", This is a list of caption,action|caption2,action2... The actions correspond to Lianja.showDocument() actions. I have added support for "exit:" and "closeapp:" to the showDocument() actions.

    Also note that the Navigation panel already handles showDocument() actions.
    Last edited by barrymavin; 2020-03-15 at 23:23.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Posts
    1,230
    Cool - Thanks Barry!

  6. #6
    Junior Member
    Join Date
    Mar 2020
    Posts
    1
    Quote Originally Posted by HankFay View Post
    Hi Herb,

    What if you added a page with some random message on it ("Bye-bye, have a great day!") and in the Activate of the form issued Lianja.closeApp() ?

    Hank
    How difficult would it be to set up a page like that?

  7. #7
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,010
    1) add a page; 2) add a canvas section; 3) add two labels (for the message) and 4) two buttons (left: exit, right, cancel). 5) Add delegates to the click of the buttons.to exit or go to the first page of the app, or whatever you want to happen 6) Anchor the stuff appropriately. 7) adjust style -- if you already have MetaTypes set up for the app, stick those on page, section, controls.

    For someone who already knows their way around, that's what, 10 or 20 minutes? For a fast clicker, 5 minutes. For the way Barry types and clicks, 3 minutes.

    If you have to learn anything to do the above, add in time to learn, of course. That doesn't count. If you're like me and have to relearn things because there's only so much room in the noggin, that time doesn't count either. What counts is how many clicks and keystrokes are needed to accomplish the intended result.

    If this is something you will reuse, make that section a visual component. That way the next time you can just drop in the visual component. If it's a different app or for a different customer and you use the same MetaType names, voila! There are many variations on how you can work with a visual component across apps, depending on your situation but that's another topic.

    Hank
    Last edited by HankFay; 2020-03-17 at 14:30.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us