TClrApplication Class

Provides static methods and properties to manage an application, such as methods to start and stop an application, to process Windows messages, and properties to get information about an application.

Namespace: CNClrLib.Control.Base
TObject
  CNClrLib.Control.Base.TClrApplication
type
 TClrApplication = class
 end;

The TClrApplication type exposes the following members.

Show:
 NameDescription
AllowQuit

Gets a value indicating whether the caller can quit this application.

CommonAppDataPath

Gets the path for the application data that is shared among all users.

CompanyName

Gets the company name associated with the application.

CurrentCulture

Gets or sets the culture information for the current thread.

ExecutablePath

Gets the path for the executable file that started the application, including the executable name.

LocalUserAppDataPath

Gets the path for the application data of a local, non-roaming user.

MessageLoop

Gets a value indicating whether a message loop exists on this thread.

ProductName

Gets the product name associated with this application.

ProductVersion

Gets the product version associated with this application.

RenderWithVisualStyles

Gets a value specifying whether the current application is drawing controls with visual styles.

SafeTopLevelCaptionFormat

Gets or sets the format string to apply to top-level window captions when they are displayed with a warning banner.

StartupPath

Gets the path for the executable file that started the application, not including the executable name.

UserAppDataPath

Gets the path for the application data of a user.

UserAppDataRegistry

Gets the registry key for the application data of a user.

VisualStyleState

Gets a value that specifies how visual styles are applied to application windows.

Top
Show:
 NameDescription
AddMessageFilter(_IMessageFilter)

Adds a message filter to monitor Windows messages as they are routed to their destinations.

DoEvents

Processes all Windows messages currently in the message queue.

EnableVisualStyles

Enables visual styles for the application.

FilterMessage(_Message)

Runs any filters against a window message, and returns a copy of the modified message.

Run

Overloaded. Begins running a standard application message loop on the current thread, without a form.

Run(_Form)

Overloaded. Begins running a standard application message loop on the current thread, and makes the specified form visible.

SetCompatibleTextRenderingDefault(Boolean)

Sets the application-wide default for the UseCompatibleTextRendering property defined on certain controls.

SetSuspendState(TPowerState,Boolean,Boolean)

Suspends or hibernates the system, or requests that the system be suspended or hibernated.

UnregisterMessageLoop

Unregisters the message loop callback made with RegisterMessageLoop(Application+MessageLoopCallback).

Top