Ecere SDK/eC Forums • View topic - Selection of Listbox entry




Ecere SDK/eC Forums

Ecere Developers Community

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.

Selection of Listbox entry

Postby shakeshuck » Sun Dec 06, 2015 7:50 pm

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

Re: Selection of Listbox entry

Postby shakeshuck » Sun Dec 06, 2015 7:56 pm

Sorry guys, just ignore me.
I've been looking for ages and 30 secs after posting I found the "inactive" property. Sheesh! :?
shakeshuck
 
Posts: 42
Joined: Tue Dec 01, 2015 6:52 pm

Re: Selection of Listbox entry

Postby jerome » Sun Dec 06, 2015 8:08 pm

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
jerome
Site Admin
 
Posts: 621
Joined: Sat Jan 16, 2010 11:16 pm

Re: Selection of Listbox entry

Postby shakeshuck » Mon Dec 07, 2015 5:26 am

Thanks Jerome,

I really need to stop working on these things two hours after I should've gone to bed... :roll:
shakeshuck
 
Posts: 42
Joined: Tue Dec 01, 2015 6:52 pm


Return to GUI Toolkit & 2D Graphics

Who is online

Users browsing this forum: No registered users and 1 guest

cron