Cancel
Showing results for 
Search instead for 
Did you mean: 

UI Builder stringblock: Prevent illegal characters being entered?

Phenom
Phenom

To all,

 

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".

 

Thanks

Regards

Production: NX9.0.3.4, NX10.0.2.6
Development: VB.NET (amateur level !)
1 REPLY

Re: UI Builder stringblock: Prevent illegal characters being entered?

Phenom
Phenom

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.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5