Recent

Author Topic: Application.Terminate  (Read 1601 times)

juank1971

  • Full Member
  • ***
  • Posts: 112
Application.Terminate
« on: September 19, 2020, 05:16:48 pm »

Sorry for so many questions

I need
Application.Terminate

In lamw. How terminate app by code

I try with gApp.terminate.  and nothing happens

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Application.Terminate
« Reply #1 on: September 19, 2020, 07:19:46 pm »
Quote
try with gApp.terminate.  and nothing happens ...

so is Android ..
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

juank1971

  • Full Member
  • ***
  • Posts: 112
Re: Application.Terminate
« Reply #2 on: September 19, 2020, 08:54:11 pm »
Yes in android

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Application.Terminate
« Reply #3 on: September 19, 2020, 11:08:39 pm »


things work differently on the android system ...
you don't "terminate" an application  [only the system can terminate the app...]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

juank1971

  • Full Member
  • ***
  • Posts: 112
Re: Application.Terminate
« Reply #4 on: September 19, 2020, 11:51:39 pm »
When the user wants to exit the application, I use a jcustomdialog ask if he really wants to exit. If the user press buton cancel , i close   jcustomdialog   but if the user press acept button, then I must finish.

 other languages ​​I have used application.terminate
Or other idea for exit whit ask the user if want

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Application.Terminate
« Reply #5 on: September 20, 2020, 02:44:40 am »

Quote
but if the user press acept button, then I must finish.

thy the "Self.Close" 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Manlio

  • Full Member
  • ***
  • Posts: 162
  • Pascal dev
Re: Application.Terminate
« Reply #6 on: November 19, 2020, 04:43:13 pm »
Also Self.Minimize() has a similar behaviour.
manlio mazzon gmail

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: Application.Terminate
« Reply #7 on: November 20, 2020, 02:16:23 am »
Self.minimize is like press the home button.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

 

TinyPortal © 2005-2018