Page 1 of 1

Ability to filter StringGadget and detect Return\Enter

Posted: Sun Mar 04, 2018 12:25 pm
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.

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Tue Mar 06, 2018 12:12 pm
by RSBasic
+1

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Wed Mar 07, 2018 4:18 am
by jwrjrjwrjr
+1

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Wed Mar 07, 2018 4:35 am
by mestnyi
+1

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Wed Mar 07, 2018 9:04 am
by davido
+1

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Wed Mar 07, 2018 1:05 pm
by Bisonte
+1 And a native (OS Independent) vertical centering of the text

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Wed Sep 05, 2018 2:24 pm
by Niffo
+1 (for Enter key, ESC key, ...)

Re: Ability to filter StringGadget and detect Return\Enter

Posted: Sun Sep 09, 2018 8:10 pm
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.