Selection of Listbox entry

General help with the Ecere Cross Platform GUI toolkit: Window, common controls, events, etc.
Help with the 2D Graphics library: Surface, Display, Bitmap, Font and others.
Post Reply
shakeshuck
Posts: 31
Joined: Tue Dec 01, 2015 6:52 pm

Selection of Listbox entry

Post by shakeshuck »

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"?
shakeshuck
Posts: 31
Joined: Tue Dec 01, 2015 6:52 pm

Re: Selection of Listbox entry

Post by shakeshuck »

Sorry guys, just ignore me.
I've been looking for ages and 30 secs after posting I found the "inactive" property. Sheesh! :?
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Selection of Listbox entry

Post by jerome »

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
shakeshuck
Posts: 31
Joined: Tue Dec 01, 2015 6:52 pm

Re: Selection of Listbox entry

Post by shakeshuck »

Thanks Jerome,

I really need to stop working on these things two hours after I should've gone to bed... :roll:
Post Reply