Events with EventType for [allmost] all gadgets

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Marlin
Enthusiast
Enthusiast
Posts: 406
Joined: Sun Sep 17, 2006 1:24 pm
Location: Germany

Events with EventType for [allmost] all gadgets

Post by Marlin »

I've been missing these for some time.
Now I'm aware enough to mention it. :wink:

I think, all Gadgets that can take keyboard focus should at least allow
to get a GotFocus and LostFocus event.

Among other highly desired EventTypes for [allmost] all gadgets would also be
"Changed".

(I'm thinking mostly of the EditorGadget und TreeGadget now,
because those are the ones I'm most using at the moment,
but this should not be limitted to those. :wink: )
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Events with EventType for [allmost] all gadgets

Post by jamirokwai »

+1

I need the #PB_EventType_LostFocus for DateGadgets (which technically are StringGadgets, I think).
Actually, having all events for all gadgets would improve event-handling even more...

Would be great to have these :-)
Regards,
JamiroKwai
DoctorLove
User
User
Posts: 85
Joined: Sat Mar 06, 2010 2:55 pm

Re: Events with EventType for [allmost] all gadgets

Post by DoctorLove »

+1

For better cross-platform comp. this is really needed!
More eventtypes for the gadgets.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Events with EventType for [allmost] all gadgets

Post by USCode »

+1

I agree, I noticed this the other day and could use more Events and EventTypes.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2137
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Events with EventType for [allmost] all gadgets

Post by Andre »

+1 :)

(of course cross-platform needed)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
BorisTheOld
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Apr 24, 2012 5:08 pm
Location: Ontario, Canada

Re: Events with EventType for [allmost] all gadgets

Post by BorisTheOld »

This is an old request, but I'll just add to it rather than start a new one.

Focus/LostFocus events for more gadget types would be really helpful. Buttons would be a good start.

As we get deeper into converting our systems to PB, the lack of Focus/LostFocus events is becoming more of a problem. We write cross-platform business applications that use hundreds (thousands?) of gadgets, and need those two events for navigating through the code. The new PostEvent command is helping, but we're now writing custom gadgets using the Canvas Gadget. This will give us access to more event types.

I'm gambling that writing custom gadgets will take less time than working around the lack of Focus/LostFocus events. :)

Many thanks.
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan
Post Reply