ZX80 wrote: Fri Feb 06, 2026 5:34 pm
Hello. I understand that my request isn't very interesting to many and will likely not be implemented, but I'm asking for the ability for EditorGadget to limit string length, like StringGadget does with the #PB_String_MaximumLength flag. However, I'd like this to also work with the #PB_Editor_WordWrap flag.Thank you.
I agree, it's a reasonable request — PB would benefit from real-world application features such as this.
It would be worthwhile to be able to set maximum lines, in addition to maximum characters per line, via SetGadgetAttribute() rather than using workarounds.
Matheos wrote: Sun Feb 08, 2026 8:05 am
It would be worthwhile to be able to set maximum lines, in addition to maximum characters per line, via SetGadgetAttribute() rather than using workarounds.
Good time, Matheos.
Also I was just thinking of suggesting the following: create an array or string that will contain the allowed characters. For StringGadget() and EditorGadget() add an additional parameter, where the array with allowed characters that we created earlier [optional]. If array is not specified, all characters are allowed. Yes, I understand that all of this can be implemented through a callback function, but if it were native, it would be certainly much more convenient.