Sign in Join
FPDoc Onlineexperiment

TCommonDialog class

In unit Dialogs

The base type from which other dialogs are derived.

Declaration

pascal
TCommonDialog = class(TLCLComponent)

Inheritance

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

Descends from it: TColorDialog TCustomPrintDialog TCustomPrinterSetupDialog TExtCommonDialog TFileDialog TFindDialog TFontDialog

Description

TCommonDialog is the base type from which all other dialogs are derived.

Use Create to make an instance of the dialog, and the Execute method to show it to the user. Use the Close method to release it and free the used resources.

Properties

AttachToprotectedForm which created the dialog class instance.
HandlepublicContains the handle for the dialog form.
UserChoicepublicContains the modal result value selected by the user.
WidthpublicThe width of the dialog.
HeightpublicThe height of the dialog.
HelpContextpublishedHelp context identifier for the help message displayed for the dialog.
TitlepublishedThe Title or Caption displayed for the dialog.

Methods

WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
DoExecuteprotectedThe function that actually takes care of executing the dialog.
DefaultTitleprotectedDefaultTitle returns the default title for a dialog.
GetHeightprotectedGets the value for the Height property.
GetWidthprotectedGets the value for the Width property.
SetHeightprotectedSets the value for the Height property.
SetWidthprotectedSets the value for the Width property.
ResetShowCloseFlagsprotectedResets the values in internal state flags for the dialog.
CreatepublicConstructor for the class instance.
ExecutepublicDisplays the dialog and captures the result.
ClosepublicCloses the dialog and frees its resources.
DoShowpublicPerforms actions needed when the dialog is displayed.
DoCanClosepublicPerforms actions needed to determine if the dialog can be closed.
DoClosepublicPerforms actions needed when the dialog is closed.
HandleAllocatedpublicReturns True if a widgetset Handle has been allocated for the dialog.

Events

OnDialogResultprotectedEvent handler signalled when a result is available for the dialog.
OnClosepublishedEvent handler signalled when the dialog is closed.
OnCanClosepublishedEvent handler signalled to determine if the dialog can be closed.
OnShowpublishedEvent handler signalled when the dialog is displayed.

Fields

FCompStylepublicInternal member used to store component style flags.

Inherited

From TLCLComponent (8)

DecLCLRefCount Destroy GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

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.