Ecere SDK/eC Forums http://ec-lang.org/community/ Print view |
|
Selection of Listbox entry http://ec-lang.org/community/viewtopic.php?f=5&t=410 |
Page 1 of 1 |
Author: | shakeshuck [ Sun Dec 06, 2015 7:50 pm ] |
Post subject: | Selection of Listbox entry |
I'm now trying to prevent a listbox from being selected. I presume I'm looking at the OnActivate method, which by default says "goOnWithActivation". What's the opposite of "goOnWithActivation"? |
Author: | shakeshuck [ Sun Dec 06, 2015 7:56 pm ] |
Post subject: | Re: Selection of Listbox entry |
Sorry guys, just ignore me. I've been looking for ages and 30 secs after posting I found the "inactive" property. Sheesh! |
Author: | jerome [ Sun Dec 06, 2015 8:08 pm ] |
Post subject: | Re: Selection of Listbox entry |
Hi shakeshuck, Yes setting the bool value pointing to by 'goOnWithActivation' to 'false' prevents the activation process from continuing. This is for trickier scenarios. Actually what I can see in where this is currently used is this is being to prevent 'inactivation', rather than 'activation' (i.e. when OnActivate's active parameter is false). The 'inactive' property is surely the proper way for what you're trying to achieve. -Jerome |
Author: | shakeshuck [ Mon Dec 07, 2015 5:26 am ] |
Post subject: | Re: Selection of Listbox entry |
Thanks Jerome, I really need to stop working on these things two hours after I should've gone to bed... |
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |