Unit 'MUIClass.Base' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#MUIClass]

TMUIApplication.SingleTask

[i] Set application as a single task program

Declaration

Source position: MUIClass.Base.pas line 268

published property TMUIApplication.SingleTask : Boolean
  read FSingleTask
  write SetSingleTask;

Description

When set to TRUE, MUI will refuse to create more than one application object.

In this case, the already running application gets its OnDoubleStart Event. You can listen to this and take appropriate actions, e.g. pop up a requester.

Examples for single task applications are the system preferences program. It doesn't make sense for them to run more than once.


Documentation generated on: 2024-04-20