Sign in Join
FPDoc Onlineexperiment

TApplicationProperties class

In unit Forms

A component that provides access to the properties for the current application.

Declaration

pascal
TApplicationProperties = class(TLCLComponent)

Inheritance

  1. TApplicationProperties
  2. TLCLComponent
  3. TComponent
  4. TPersistent
  5. TObject

Description

TApplicationProperties is a non-visual component used to provide design-time settings that are applied at run-time to an application, including:

  • CaptureExceptions
  • HelpFile
  • Hint
  • HintColor
  • HintHidePause
  • HintPause
  • HintShortCuts
  • HintShortPause
  • ShowButtonGlyphs
  • ShowMenuGlyphs
  • ShowHint
  • ShowMainForm
  • Title
  • OnException
  • OnGetMainFormHandle
  • OnIdle
  • OnIdleEnd
  • OnEndSession
  • OnQueryEndSession
  • OnMinimize
  • OnModalBegin
  • OnModalEnd
  • OnRestore
  • OnDropFiles
  • OnHelp
  • OnHint
  • OnShowHint
  • OnUserInput

Values for the properties are assigned in the constructor using the currently assigned values in the Application singleton. The assignments can be maintained at design-time.

At run-time, changes to the properties are also assigned to the Application singleton. For event handler properties, the previous routine is removed as a handler and the new handler is added to the Application singleton. When the component is freed, the event handlers are removed from the Application singleton. The changed properties are not assigned to the Application singleton at design-time.

TApplicationProperties is available on the Additional tab in the Lazarus IDE Component Palette. TApplicationProperties is similar to the TApplicationEvents class in Delphi.

See also

Properties

CaptureExceptionspublishedEnables exception handling in the Application.
ExceptionDialogpublishedIndicates the dialog type displayed for an exception.
GlyphDrawEffectsEnabledpublished
HelpFilepublishedContains the name for the help file in an application.
HintpublishedThe current Hint text active for the application.
HintColorpublishedThe background color for a Hint window.
HintHidePausepublishedIndicates how long a Hint remains visible after the mouse pointer is moved.
HintPausepublishedThe delay before a Hint is shown for a form or control.
HintShortCutspublishedEnables or disables display of keyboard shortcuts (e. g. on menu items).
HintShortPausepublishedThe pause before a different Hint is displayed.
ShowButtonGlyphspublishedAllows the platform defaults for glyphs on buttons to be overridden.
ShowMenuGlyphspublishedSets the default policy for showing or hiding glyph images in menus.
ShowHintpublishedIndicates if Hints are displayed for the application.
ShowMainFormpublishedAllows the main form to be shown or hidden when an application is started.
TitlepublishedContains the title for the application.

Methods

SetCaptureExceptionsprotectedSets the value for the CaptureExceptions property.
SetGlyphDrawEffectsEnabledprotected
SetHelpFileprotectedSets the value for the HelpFile property.
SetHintprotectedSets the value for the Hint property.
SetHintColorprotectedSets the value for the HintColor property.
SetHintHidePauseprotectedSets the value for the HintHidePause property.
SetHintPauseprotectedSets the value for the HintPause property.
SetHintShortCutsprotectedSets the value for the HintShortCuts property.
SetHintShortPauseprotectedSets the value for the HintShortPause property.
SetShowButtonGlyphsprotectedSets the value for the ShowButtonGlyphs property.
SetShowMenuGlyphsprotectedSets the value for the ShowMenuGlyphs property.
SetShowHintprotectedSets the value for the ShowHint property.
SetShowMainFormprotectedSets the value for the ShowMainForm property.
SetTitleprotectedSets the value for the Title property.
SetOnActivateprotectedSets the value for the OnActivate property.
SetOnDeactivateprotectedSets the value for the OnDeactivate property.
SetOnExceptionprotectedSets the value for the OnException property.
SetOnGetMainFormHandleprotectedSets the value for the OnGetMainFormHandle property.
SetOnIdleprotectedSets the value for the OnIdle property.
SetOnIdleEndprotectedSets the value for the OnIdleEnd property.
SetOnEndSessionprotectedSets the value for the OnEndSession property.
SetOnQueryEndSessionprotectedSets the value for the OnQueryEndSession property.
SetOnMinimizeprotectedSets the value for the OnMinimize property.
SetOnModalBeginprotectedSets the value for the OnModalBegin property.
SetOnModalEndprotectedSets the value for the OnModalEnd property.
SetOnRestoreprotectedSets the value for the OnRestore property.
SetOnDropFilesprotectedSets the value for the OnDropFiles property.
SetOnHelpprotectedSets the value for the OnHelp property.
SetOnHintprotectedSets the value for the OnHint property.
SetOnShowHintprotectedSets the value for the OnShowHint property.
SetOnUserInputprotectedSets the value for the OnUserInput property.
SetOnActionExecuteprotectedSets the value for the OnActionExecute property.
SetOnActionUpdateprotectedSets the value for the OnActionUpdate property.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.

Events

OnActivatepublishedEvent handler signalled when an Activate message is handled in the application.
OnDeactivatepublishedEvent handler signalled when a Deactivate message is handled in the application.
OnExceptionpublishedEvent handler signalled to handle an exception in an application.
OnGetMainFormHandlepublishedEvent handler used to provide a value for the MainFormHandle property.
OnIdlepublishedEvent handler signalled when the application enters the idle state.
OnIdleEndpublishedEvent handler signalled when the application leaves the Idle state.
OnEndSessionpublishedEvent handler signalled when a session is ended in the application.
OnQueryEndSessionpublishedEvent handler signalled to determine if the current session be be ended, and the application can be closed.
OnMinimizepublishedEvent handler signalled when the application is minimized.
OnModalBeginpublishedEvent handler signalled when a form in the application is displayed as a modal form.
OnModalEndpublishedEvent handler signalled when the last modal form for the application has been exited.
OnRestorepublishedEvent handler signalled when the application is restored from a minimized / maximized state.
OnDropFilespublishedEvent handler signalled when file(s) are dropped into the application.
OnHelppublishedEvent handler signalled when help is requested in the application.
OnHintpublishedEvent handler signalled when a hint is requested in the application.
OnShowHintpublishedEvent handler signalled prior to displaying a hint window.
OnUserInputpublishedEvent handler signalled to handle user input messages.
OnActionExecutepublishedDefault handler for unhandled Actions.
OnActionUpdatepublishedEvent handler signalled to update actions used in the application.

Inherited

From TLCLComponent (8)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass WSRegisterClass

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.