Order of ComboBox::click vs ComboBox::closeUp event delivery

Forums for specific tips, techniques and example code
User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Order of ComboBox::click vs ComboBox::closeUp event delivery

Postby BeeJay » Fri Mar 25, 2011 1:21 pm

One of our developers had written code that inadvertently relied on the incorrect delivery order of the ComboBox::click versus ComboBox::closeUp events. The documented order for delivery of these events has always been as follows:

Frm::comboBox1_click
Frm::comboBox1_closeup

However, prior to the Jade 6.3.08 release there was some code developed in our system that relied on the incorrect delivery order, that being:

Frm::comboBox1_closeup
Frm::comboBox1_click

The code in question has now been fixed, but I thought I'd let you all know in case there were any other systems out there that may be affected by relying on the previous incorrect delivery order of the events. It's unlikely, as the code in question wasn't particularly elegant code anyway and the rewritten version is much better anyway.... as is often the case with rewritten code... ;)

Cheers,
BeeJay.

johnbaird
Posts: 1
Joined: Mon Aug 17, 2009 9:48 am

Re: Order of ComboBox::click vs ComboBox::closeUp event deli

Postby johnbaird » Tue Apr 12, 2011 9:07 am

yes was subtle! - rendered our systems 90% unusable. the code we had written was 12 years old and on a base form that many others inherit from. the code relied on how jade worked not how it was documented. took a while to figure out what went wrong after all that time, but being OO only needed a few lines of code to sort


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 0 guests