You are here: Symbol Reference > JSDialog Namespace > Classes > TJSCustomDialog Class > TJSCustomDialog Methods > TJSCustomDialog.InitialiseControl Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomDialog.InitialiseControl Method

Method use to initialise a specific TControlType.

Pascal
procedure InitialiseControl(AControlType: TControlType; AControl: TControl; AControlItem: TCollectionItem); virtual;

Each supported TControlType has a default implementation for initialising the default control class used to represent the specific TControlType on the dialog. 

 

Supported control types 
ctButton 
ctCheckBox 
ctCommandLink 
ctProgressBar 
ctRadioButton 
ctRadioGroup 

 

Descendants that override the InitialiseControlClass method should either handle the OnInitControl event and make sure the Handled parameter of the event is set to True or override the InitialiseControl method making sure to only handle the overridden control type.

It is recommended if you override the InitialiseControlClass method that you also override the InitaliseControl method.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!