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: Klaus , FourthWorld , heatherlaine , kevinmiller
richmond62
Livecode Opensource Backer
Posts: 10428 Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Sat Apr 12, 2025 7:41 am
I wonder about 2 things:
1. Can one do this sort of thing (pseudocode ?):
Code: Select all
put the script of button "Bomb" into field "Cheese"
2. IF #1 is possible will it retain the colourisation from the script editor?
IF #2 is NOT possible how can I apply script colourisation to script bits in a standard text field?
richmond62
Livecode Opensource Backer
Posts: 10428 Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Sat Apr 12, 2025 8:12 am
Damn: no gay parade.
-
Klaus
Posts: 14325 Joined: Sat Apr 08, 2006 8:41 am
Contact:
Post
by Klaus » Sat Apr 12, 2025 10:01 am
Hi Richmond,
this affords 2 steps!
Code: Select all
...
put the script of button "Bomb" into field "Cheese"
_internal script colorize char 1 to (the number of chars of field "Cheese") of field "Cheese"
...
That should do the trick.
See also:
viewtopic.php?f=7&t=39491 , where you had replied!
Best
Klaus
richmond62
Livecode Opensource Backer
Posts: 10428 Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Sat Apr 12, 2025 10:10 am
That is beyond marvellous!
Where does one find out about internal scripts ?
Klaus
Posts: 14325 Joined: Sat Apr 08, 2006 8:41 am
Contact:
Post
by Klaus » Sat Apr 12, 2025 10:15 am
And only four months ago...
Klaus
Posts: 14325 Joined: Sat Apr 08, 2006 8:41 am
Contact:
Post
by Klaus » Sat Apr 12, 2025 10:16 am
richmond62 wrote: Sat Apr 12, 2025 10:10 am
Where does one find out about
internal scripts ?
These are undocumented features, so the answer is "nowhere".
richmond62
Livecode Opensource Backer
Posts: 10428 Joined: Fri Feb 19, 2010 10:17 am
Post
by richmond62 » Sat Apr 12, 2025 10:31 am
Well, you have either got a hotline to God, or you spend all your time digging through the IDE.
-
Klaus
Posts: 14325 Joined: Sat Apr 08, 2006 8:41 am
Contact:
Post
by Klaus » Sat Apr 12, 2025 10:57 am
I've just a memory like an elephant.
Have read this on the mailinglist some years ago, but could remember
that I already answered this question here a couple of months ago.
dunbarx
VIP Livecode Opensource Backer
Posts: 10507 Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sat Apr 12, 2025 3:05 pm
There are threads about undocumented native words. Do a search for "messagemessages"
Craig
dunbarx
VIP Livecode Opensource Backer
Posts: 10507 Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Sat Apr 12, 2025 11:00 pm
Richmond.
Exactly, which is why I wondered why a list of undocumented native words was so mysteriously unavailable. I bet such a list likely contains gold. The "messageMessages" has come in wildly useful now and then.
Craig