In a UI builder Stringblock is it possible to "preven" illegal characters to be entered (such as ? * \ / ¦ and son on)? At the moment I am planning to cacth them either on the update_cb() or apply_cb() callback (using a regex!) but was wondering if I can have that on the GUI as an optin to "tick".
Solved! Go to Solution.
Currently the String block has nothing built into it to filter out 'illegal' characters. And it does not have a callback to handle individual keystrokes so there is no way to wriet your own.
I think the best you can do is handle the input in the Update() callback as you suggested.
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX184.108.40.206 MP11 64bit Testing: NX220.127.116.11