From Clomosy Docs

Revision as of 10:13, 13 February 2024 by ClomosyManager (talk | contribs)

procedure ShowMessage(const Text string);

Applications or the operating system itself use message windows to warn or inform the user. Message windows can be created in clomosy applications using ShowMessage.
In simple terms, it is a message window that can be used to inform the user. It has only one parameter that receives the message to be displayed on the screen. The title of the window is the project name. There is no option to click other than the OK button. The message window is displayed in the middle of the screen.

Insert carriage return and line feed characters (#13#10) into the string to generate multi line message display.

Example:

Base Syntax
begin
// Show a simple message ShowMessage('Hello World');
// Show a blank message ShowMessage('');
// Split this into two lines ShowMessage('Hello '+#13#10+'World');
end;
TRObject Syntax
 {
  // Show a simple message
  ShowMessage('Hello World');
 
  // Show a blank message
  ShowMessage('');
 
  // Split this into two lines
  ShowMessage('Hello '+#13#10+'World');
 }

Output:

Output1: Hello World
Output2:
Output3: Hello
         World