Reference > TDBText Control > TDBText Control Events > DropOpen Event (TDBText) |
DropOpen Event (TDBText)
The DropOpen event occurs just before the object is displayed. When the NoDefault parameter is set to False (Default), the object provided by the control will be used. When creating a user-defined object, such as the TDBCalendar control, set the NoDefault parameter to True. This will prevent the control's calendar from being displayed.
control_DropOpen (NoDefault As Boolean)
NoDefault is a Boolean that determines whether to hide the drop-down calendar, calculator, or text entry window.
The possible values for the NoDefault parameter are as follows:
True - Hides the drop-down object.
False - The drop-down object provided in the control will be used. (Default)
When displaying the object, whatever value is in the editing area will appear as the current date in the object. However, a Null value or an invalid value (incomplete) will point at the current system date.
Notes
This event can be fired when the user clicks on the drop-down button, or presses the Alt+Down keys or the keys defined in the Key object's DropDown property. You can also invoke this event by calling the Drop method.
Please avoid popping up a message box in this event. If you do, you may experience unexpected results.
See Also