TApplication

Abstract base class for applications that support a graphical user interface.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TApplication

Source

Application.pas (54)

Description

TApplication sets up the basic components that are needed for an application that supports a graphical user interface. By default MainWindow will be created as an empty window. Descendant classes are responsible for adding TControl descendants to this window as appropriate for the specific application.

An application can be started by calling Run. This function executes an event loop that handles and dispatches events in response to user input and other user interface events. The loop is terminated whenever an event is received that indicates the application should be closed. Such an event can be the result of the user clicking the close-button of the main window.

Fields

ScopeVisibilityTypeNameDescription
InstanceprotectedTPagedPanelFExplorerTarget
InstanceprotectedTControlFactoryFControlFactory
InstanceprotectedTObjectActionFactoryObjectActionFactory
InstanceprotectedTWindowsClipBoardClipBoard
InstanceprotectedTWindowsMouseManagerMouseManager
InstanceprotectedTKeyboardFocusManagerFocusManager
InstanceprotectedTHotKeyManagerHotKeyManager
InstanceprotectedTControlNavigationManagerNavigationManager
InstanceprotectedTDragAndDropManagerDragAndDropManager
InstanceprotectedTPositiveInteger32ThreadIdentifier
InstanceprotectedTWindowsEventQueueEventQueue
InstanceprotectedTCharacterCodePointSurrogatePairStart
InstancepublicTWindowMainWindow
TypepublicTApplicationInstance

Methods

ScopeVisibilityResultNameDescription
InstanceprotectedTMouseButtonEventConvertMessageToMouseButtonEvent(Message: TMSG)
InstanceprotectedTMouseMoveEventConvertMessageToMouseMoveEvent(Message: TMSG)
InstanceprotectedTMouseWheelEventConvertMessageToMouseWheelEvent(TopLevelControl: TControl; Message: TMSG)
InstanceprotectedTMouseLeaveEventConvertMessageToMouseLeaveEvent(TopLevelControl: TControl; Message: TMSG)
InstanceprotectedTMouseEventConvertMessageToMouseEvent(TopLevelControl: TControl; Message: TMSG)
InstanceprotectedTTargetedEventConvertMouseMessage(Message: TMSG)
InstanceprotectedTKeyModifiersGetCurrentModifierKeys()
InstanceprotectedTCharacterCodePointHandleSurrogatePair(Character: TCharacterCodePoint)
InstanceprotectedTKeyboardEventConvertMessageToKeyboardEvent(Message: TMSG)
InstanceprotectedTBooleanPreemptTargetedEvent(TargetedEvent: TTargetedEvent)
InstanceprotectedTBooleanHandleKeyboardEvent(TargetedEvent: TTargetedEvent)
InstanceprotectedTBooleanHandleTargetedEvent(TargetedEvent: TTargetedEvent)
InstanceprotectedTTargetedEventConvertKeyboardMessage(Message: TMSG)
InstanceprotectedTTargetedEventConvertMessage(Message: TMSG)
InstanceprotectedTBooleanHandleMessage(Message: TMSG)
InstanceprotectedTWindowCreateWindow()
InstanceprotectedTPagedPanelDetermineExplorerTarget()
InstanceprotectedCloseUserInterface()
InstanceprotectedTControlEmbellishWithToolbar(Control: TControl; Path: TValuePath)
InstancepublicCreate()
InstancepublicRun()
InstancepublicOpenControl(Control: TControl; TransferFocus: TBoolean; Target: TPagedPanel)
InstancepublicTControlOpenControlForValue(Path: TValuePath; TransferFocus: TBoolean; Target: TPagedPanel)
InstancepublicTControlOld_OpenControlForValue(Value: TValue; TransferFocus: TBoolean; Target: TPagedPanel)
InstancepublicShowError(Message: TText)
InstancepublicShowException(Exception: EException)
InstancepublicShowInformation(Message: TText)
InstancepublicTBooleanShowConfirmation(Message: TText)
InstancepublicHandleException(Exception: EException)
TypepublicMain()