Changing text properties in a field via the IDE

Graham Samuel livfoss at mac.com
Tue May 19 13:23:09 EDT 2020


Well, Tore, I think this is a rather purist view! To an ordinary LC developer, if you can change the properties of the initial text (to a different size for example) without overtly selecting it, then the same behaviour can be expected from the IDE when trying to change text you’ve pasted in. It may or may not be styled, but the confusing part is that selecting the text in the Object Inspector has no effect, therefore the assumption is that all the text you see should logically be changed when you change a text property. Otherwise what’s the point of these properties being available in the Object Inspector?

I wonder what the mother ship will say.

Graham

> On 19 May 2020, at 14:46, Tore Nilsen via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I am not sure this is a bug. When you use the normal paste function you actually paste in styled text. New text, following the text you pasted in will inherit the styling of the last character of the text you pasted into the field. This then would work the same way as if you selected some text in the field and altered the styling of this selected text. All unselected text would adhere to the properties set in the Inspector. In my opinion this is what you would expect from any text editor. If you would like to paste in some text without the styling you should use «Paste Unformatted» in the IDE.
> 
> Regards
> Tore Nilsen
> 
>> 19. mai 2020 kl. 14:37 skrev Graham Samuel via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Yep, that was it! I had pasted some text from elsewhere. The text **looks** perfectly normal (and the count of characters is the same as in the visual representation of them, so none apparently hidden), but in some way it must mess up the functioning of the Property Inspector. As Ralph confirms, the initial text (in a Label Field, it’s just “Label:”) can be changed via the Property Inspector without being specifically selected - in fact you can’t select the ‘contents’ text in the Property Inspector display. So IMHO it’s a bug, if a minor one. Will report it, but I don’t expect a quick solution. Odd, though.
>> 
>> Thanks to Ralph and Richard
>> 
>> Graham
>> 
>>> On 18 May 2020, at 22:59, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
>>> 
>>> Works OK on Mac and PC here LC 9.6 rc1. I created new stack put in a label field. I did not change the default text. Could it be the actual text you put in the field causing the PI problem for you?
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdimola at evergreeninfo.net
>>> 
>>> 
>>> -----Original Message-----
>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Graham Samuel via use-livecode
>>> Sent: Monday, May 18, 2020 4:45 PM
>>> To: How to use LiveCode
>>> Cc: Graham Samuel
>>> Subject: Changing text properties in a field via the IDE
>>> 
>>> I’m using LC 9.6.0 rc1 on a Mac. Just now I did something very simple that didn’t work. I created a label field, opened the Property Inspector for the field and changed its text - that worked. Then I attempted to change the font size - that didn’t work. The appearance of the label in the stack itself didn’t change, nor could I change the font, make the text bold etc. I tried this again with a regular field - same result. I started a new stack with just the one field - same result. 
>>> 
>>> All these values can be changed by script, in the Message Box or elsewhere, but I can’t make them in the IDE by changing values in the Property Inspector.
>>> 
>>> What am I doing wrong?
>>> 
>>> Graham
>>> _______________________________________________
>>> 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
>>> 
>>> 
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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