[Gambas-user] CheckBox_MouseUp huge PB

Jean-Yves F. Barbier 12ukwn at ...626...
Sun Aug 23 23:38:20 CEST 2009


Benoît Minisini a écrit :
>> Benoît Minisini a écrit :
>> ...
>>
>>> If you really have to make a difference between a change coming from the
>>> application and a change coming from the user, then use a boolean flag,
>>> like "bIgnoreClickEvent", that you set explicitely when needed.
>> May be that's a solution.
>> Now I know which order events take, I'll first re-check the existing code
>> to see if I can avoid tricky code.
> 
> Depending or the order of events when these events are not "physically" 
> related is not a good idea. Your code may break in the future.

It is the only easy way I found to use the same CheckBoxes to both display 
my database rights when an item is selected, and set/unset them.
 
JY
-- 
  The good oxymoron, to define it by a self-illustration, must be a
  planned inadvertency. -Wilson Follett




More information about the User mailing list