Ability to filter StringGadget and detect Return\Enter

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
wombats
Enthusiast
Enthusiast
Posts: 716
Joined: Thu Dec 29, 2011 5:03 pm

Ability to filter StringGadget and detect Return\Enter

Post by wombats »

It would be great if we could filter the input of a StringGadget and EditorGadget to only permit certain characters. BlitzMax allows this...you can return 0 from the event to forbid the change.

I would also find it very useful to be able to detect Return/Enter. This would be useful in a properties control where the property is to be updated when the user has finished making their change. I know you can do this with AddKeyboardShortcut, but this isn't convenient with dynamically created gadgets.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Ability to filter StringGadget and detect Return\Enter

Post by RSBasic »

+1
Image
Image
jwrjrjwrjr
User
User
Posts: 14
Joined: Sat May 23, 2015 3:12 am
Location: The other Georgia

Re: Ability to filter StringGadget and detect Return\Enter

Post by jwrjrjwrjr »

+1
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: Ability to filter StringGadget and detect Return\Enter

Post by mestnyi »

+1
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Ability to filter StringGadget and detect Return\Enter

Post by davido »

+1
DE AA EB
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Ability to filter StringGadget and detect Return\Enter

Post by Bisonte »

+1 And a native (OS Independent) vertical centering of the text
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Niffo
Enthusiast
Enthusiast
Posts: 504
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: Ability to filter StringGadget and detect Return\Enter

Post by Niffo »

+1 (for Enter key, ESC key, ...)
Niffo
Chalky
New User
New User
Posts: 2
Joined: Sat Feb 18, 2017 9:19 pm

Re: Ability to filter StringGadget and detect Return\Enter

Post by Chalky »

+1 as I want to port all my Blitzmax (MaxGUI) applications to Purebasic - which make extensive use of gadget-filtering to control user input.
Post Reply