Page 1 of 1

Additional StringGadget Flags

Posted: Wed Oct 19, 2005 12:48 pm
by jb
I would like to see two additional flags for the string gadget that would allow you to limit the number of characters that can be entered and a flag that would allow the text in the string gadget to be selected when the gadget receives focus.

Currently you have to use Windows API commands like:

Code: Select all

SendMessage_(GadgetID(#String_Gadget), #EM_LIMITTEXT, 15, 0)

SendMessage_(GadgetID(#String_Gadget), #EM_SETSEL, 0, -1)
They may have to be implemented as SetGadgetState() flags.

This would be very nice for cross platform applications.

Posted: Mon Jan 30, 2006 6:44 am
by Shannara
I 2nd this. Would be also nice to have a centered flag for the string gadget :)

Re: Additional StringGadget Flags

Posted: Mon Jan 30, 2006 9:27 am
by Dr. Dri
jb wrote:They may have to be implemented as SetGadgetState() flags.

This would be very nice for cross platform applications.
GetGadgetAttribute() and SetGadgetAttribute() would be perfect to do this

Dri :D

Posted: Mon Jan 30, 2006 9:31 am
by netmaestro
Yes, natively is always preferable to API as then it can be used across platforms.

Posted: Fri Feb 03, 2006 1:13 pm
by jb
Dr. Dri wrote:GetGadgetAttribute() and SetGadgetAttribute() would be perfect to do this
Yes, I agree that would be the perfect place to do this.