I am far too bold

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

I am far too bold

Post by dunbarx » Wed Jan 31, 2024 12:34 am

All of a sudden if I try, in the inspector, to set the textStyle of a field that is already bold to, say, plain, the box blinks at me for half a second and then reverts to bold.

I can do it from the message box or via script, but not in the inspector. All the other styles work fine.

Closing and restarting LC does nothing. I have not trashed the prefs or shot my computer.

Yet.

Craig

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: I am far too bold

Post by Klaus » Wed Jan 31, 2024 10:36 am

dunbarx wrote:
Wed Jan 31, 2024 12:34 am
I have not trashed the prefs..
Yes, try this!
dunbarx wrote:
Wed Jan 31, 2024 12:34 am
... or shot my computer.
Don't! :-D

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: I am far too bold

Post by SparkOut » Wed Jan 31, 2024 11:47 am

More humane to drown it (or at least, less messy without dangerous shards and splinters)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: I am far too bold

Post by richmond62 » Wed Jan 31, 2024 12:30 pm

Only having the benefits of an outdated version I do not have this problem:
-
Screenshot 2024-01-31 at 13.28.17.png

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Wed Jan 31, 2024 5:17 pm

Odd.

After trashing the prefs, the condition was still present. Then it went away. All by itself.

But not before changing the text in every field on every card on every subStack everywhere every...

Ahem.

To BOLD

No worries, I will just go everywhere and change them back.

So I shot it.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: I am far too bold

Post by jacque » Wed Jan 31, 2024 6:56 pm

It may be that the text (characters) style is set rather than the field properties. Character styles override field properties.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: I am far too bold

Post by richmond62 » Wed Jan 31, 2024 7:16 pm

I suspect you have nailed the problem:
-
Screenshot 2024-01-31 at 20.14.56.png
-
Screenshot 2024-01-31 at 20.15.28.png
-
Anyway: under all circumstances, remember to Be Bold. 8)
-
Be_Bold.jpg

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Wed Jan 31, 2024 10:14 pm

Jacque.

But this just popped up all by itself.

Why would that style (only bold, all others stuck) set for one second, and then clear? And why would trashing the prefs file make it all better?

And why then, when it grudgingly got back to normal, did it change ALL of the fields on ALL of the cards on the main stack and ALL of the seven subStacks to bold?

Nope, I think I have, and have always had, gremlins.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Wed Jan 31, 2024 10:15 pm

Shooting was too good for it.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: I am far too bold

Post by FourthWorld » Wed Jan 31, 2024 10:39 pm

dunbarx wrote:
Wed Jan 31, 2024 10:14 pm
Jacque.

But this just popped up all by itself.

Why would that style (only bold, all others stuck) set for one second, and then clear? And why would trashing the prefs file make it all better?

And why then, when it grudgingly got back to normal, did it change ALL of the fields on ALL of the cards on the main stack and ALL of the seven subStacks to bold?
That sounds like a scoping issue, possibly related to other issues based on errors in determining which object is currently selected.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Thu Feb 01, 2024 3:57 am

Richard.

Scoping. OK.

Well, I selected a field and opened its inspector. I tried to change the textStyle to Bold. The button hilited for about half a second, then unhilited.
They all did. Only via the msg box was I able to change it.

I must have scoped far and deep for all the other fields everywhere else to pull the prank they did.

Craig

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: I am far too bold

Post by SparkOut » Thu Feb 01, 2024 8:50 am

Just put it in a sack with some horseshoes and bricks, tie it up and drop it in the canal.
Leave out the kittens!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: I am far too bold

Post by jacque » Thu Feb 01, 2024 10:21 pm

It sounds like you may have accidentally set the mainstack's text to bold. All fields everywhere will inherit that setting, including substacks, if their own text properties aren't set. It's kind of easy to accidentally trigger the stack PI if you click out of a control while its own PI is open.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Thu Feb 08, 2024 3:51 pm

Jacque.

That would not cause the PI to act so badly, no? And why then would trashing the prefs file fix it?

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: I am far too bold

Post by dunbarx » Thu Feb 08, 2024 4:40 pm

Jacque.

1- Set the textStyle of a new stack to "bold".
2- Create a new field and enter text. (That text will indeed be bold).
3- In the field inspector click on the "Bold" button. (The "bold" button will toggle, but will not change the textStyle).

I can change the textStyle of the field by script or in msg, however, which seems odd.

In any case, nothing like what I experienced.

Craig

Post Reply

Return to “Talking LiveCode”