Recent

Author Topic: [SOLVED] ShowMessage time delay  (Read 556 times)

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
[SOLVED] ShowMessage time delay
« on: May 21, 2023, 05:28:19 pm »
Dear ALL,

The ShowMessage() function is quite handy in LAMW (as it is in LCL as well), but it disappears too fast after displaying a  message. Is there any way of changing (ie., increasing) the time delay of this function?

Thanks in advance!

With best regards,
« Last Edit: May 21, 2023, 09:30:33 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: ShowMessage time delay
« Reply #1 on: May 21, 2023, 07:18:06 pm »
There is a customizable version:

Code: Pascal  [Select][+][-]
  1.    procedure ShowMessage(_msg: string; _gravity: TGravity; _timeLength: TShowLength); overload;  
  2.  

use:
Code: Pascal  [Select][+][-]
  1.     ShowMessage('Hello World!', gvCenter, slLong);
  2.  
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: ShowMessage time delay
« Reply #2 on: May 21, 2023, 09:30:16 pm »
Hi, @jmpessoa!

Thanks, this helped!

With best regards,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

 

TinyPortal © 2005-2018