LayoutReady Event (TDBCombo)
The LayoutReady event fires when asynchronous downloading of a control layout file has completed.
object_LayoutReady ( )
Arguments
None
Event applies to TDBList and TDBCombo controls.
The location of the layout file is determined by the LayoutURL property.
If you set the LayoutURL property to a nonempty string at design time (and LayoutFileName is empty), the control initiates asynchronous downloading at run time after it has been loaded. You can also initiate downloading by setting the LayoutURL property in code. This technique is particularly useful for initializing a control on an HTML page.
In either case, the control fires the LayoutReady event when the download operation has completed. You should write a handler for this event that loads the desired layout as follows:
TDBList1.LayoutName = "MyLayout"
TDBList1.LoadLayout
Note: You can create control layout files at design time by setting the LayoutFileName and LayoutName properties and using the layout commands on the control's visual editing menu.
See Also