Text fields with rounded corners

Scott Rossi scott at tactilemedia.com
Sun Oct 5 22:45:37 EDT 2014


One way to do this is to create a graphic with the desired appearance,
export a snapshot of the graphic to a variable, set the text of an image
to the snapshot data, and then set the backPattern of a plain field to the
id of the image.  I paired this with a resizeControl behavior applied to
the field, so the graphic auto-resizes to the width/height of the field
when the field is resized, and the snapshot is generated automatically.

Kind of a goofy way to do it, but it should work.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design






On 10/5/14, 11:41 AM, "Richmond" <richmondmathewson at gmail.com> wrote:

>On 05/10/14 19:02, Mark Wieder wrote:
>> Richmond-
>>
>> Sunday, October 5, 2014, 5:47:25 AM, Hugh wrote:
>>
>>> roundRect graphic instead of a field border.
>>> 2p
>> ..and group the two objects. Turn off the border and opacity of the
>> text field, set the opacity and backgroundColor of the graphic.
>>
>> +2p
>>
>
>My earlier comment about grouped objects still stands.
>
>Richmond.
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list