I am using the version of 0.99.96.1328 UniGUI / Delphi XE6 and created a new inherited component TUniDBLookupComboBox. I'm using the property clearbutton true and would like to execute a statement when the user clicks the X button (ClearButton). Is there any event that triggers the component when it is clicked the X (ClearButton)? How can I handle this event?
Best Regards,
Mauri
Hi,
Can you try this approach?!:
For example:
UniDBLookupComboBox1 -> ClientEvents -> ExtEvents -> afterrender fn:
function afterrender(sender, eOpts)
{
sender.plugins.forEach(function(p) {
if (p.alias[0] == "plugin.clearbutton") {
// default click handler:
// handleMouseClickOnClearButton: function(event, htmlElement, object) {
// if (!this.isLeftButton(event)) {
// return;
// }