Forum > Linux

Similar function in Lazarus as ShowMessage, but with delay not "OK" button.

(1/9) > >>

jinx:
Hello, I'm building a small app in lazarus in which I need a function/procedure similar to ShowMessage, but instead of give me "OK", it will exit itself in a certain amount of time (some delay variable).

Also, is there a function/procedure similar to what kdialog dose:


--- Code: ---kdialog --passivepopup "Test ..."

--- End code ---

P.S. Im building this for KDE, if it helps...

Leledumbo:

--- Quote ---I need a function/procedure similar to ShowMessage, but instead of give me "OK", it will exit itself in a certain amount of time (some delay variable).
--- End quote ---
There's none ATM. You need to create a form with TTimer and show it as modal form.

jinx:
Ok, how?! A form I can create, add a timer to it also, but the rest not really!

typo:
You could not use a Timer or ShowModal, simply set you FormStyle to fsSystemStayOnTop and call it like this:


--- Code: ---  FormMessage.Show;
  Application.ProcessMessages;
  Sleep(1000);
  FormMessage.Hide;

--- End code ---

jinx:
I need something that modifies, I mean the message in it. Like calling a function:

ShowMessage('I need help! :)', 1000);

1000 would be the time out, lets say.

Navigation

[0] Message Index

[#] Next page

Go to full version