Page 1 of 1
StringGadget Properties
Posted: Thu Aug 22, 2013 8:29 pm
by The Dutch Man
Is it posible to add extra properties to the StringGadget with:
Alignment, Borderstyle, FontSize, Maxlength or TabStop?
Re: StringGadget Properties
Posted: Thu Aug 22, 2013 9:30 pm
by c4s
- Max. length:
Code: Select all
SetGadgetAttribute(#StringGadget, #PB_String_MaximumLength, LENGTH)
- Font size:
Code: Select all
SetGadgetFont(#StringGadget, FontID(LoadFont(#PB_Any, "", SIZE)))
The other properties can probably be set with some OS-specific code. Try searching the Tips and Tricks section.
Re: StringGadget Properties
Posted: Fri Aug 23, 2013 10:01 am
by PB
Don't forget the StringGadget ISN'T meant to be an editor.
There's an EditorGadget that can do all you want, and more.