Label Field not working

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
badham@chapman.edu
Posts: 1
Joined: Mon Jan 02, 2017 12:21 am

Label Field not working

Post by badham@chapman.edu » Mon Jan 02, 2017 12:38 am

I need to add a label field to identify 3 related Text fields. But I cannot change the generic text "label" in it's property inspector. I can change the label's font, color, size etc but not to the text that I need.
I'm learning LiveCode 9.0
All the rest of the fields, buttons etc in the tool palette work perfectly Where am I going wrong?
Thanks for any help
jbadham

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Label Field not working

Post by Klaus » Mon Jan 02, 2017 11:08 am

Hi jbadham,

1. welcome to the forum! :D

2. See screenshot, the second TAB in the inspector for the field leads you
to the text ebntry field, were you can change the content of the field


Best

Klaus
labelfield_inspector.jpg
labelfield_inspector.jpg (13.82 KiB) Viewed 1940 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Label Field not working

Post by dunbarx » Mon Jan 02, 2017 7:34 pm

Hi.

What klaus said.

All fields have "contents", that is, their "text" property. Label fields specifically appear just a little differently than ordinary editable fields in that their contents are not "writable" directly. So one can set the text of a label field (or any field), or one can do so in the property inspector (also like with any field), via the "contents" tab.

You are probably already familiar with the fact that the name of a field has nothing to do with that fields text property, its "contents". Whereas a button will display its name property, unless its label is explicitly set. Just a little different in how those two control classes work.

Craig Newman

Post Reply