Setup the maximum length for the string gadget.
This attribute is only valid at object creation time.
Default maximum length is 80.
NOTE: The maximum length includes the 0-byte at the end
of the string. To let the user enter e.g. 10 characters,
you would have to specify a maxlen of 11.