What is the mode of the "Code Editor" stack?
What is the mode of the "Code Editor" stack?
Hi,
I'm trying to find the mode property of internal livecode app stacks.
What mode would "Code Editor" be in? (And others, if you know it.)
I want to do some actions to stacks that have that specific mode.
The mode is an integer between 0 and 14.
I'm trying to find the mode property of internal livecode app stacks.
What mode would "Code Editor" be in? (And others, if you know it.)
I want to do some actions to stacks that have that specific mode.
The mode is an integer between 0 and 14.
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
No, it is not: it is an integer between 0 and 13.The mode is an integer between 0 and 14.
To find out the mode of a stack is extremely easy:
- -
However, after a longish search I cannot find a stack called Code Editor anywhere.
Re: What is the mode of the "Code Editor" stack?
The mode of stack "revNewScriptEditor X" = 1
Where X stands for the number of open script editor windows.
Oh, come on, code = script, and that's more than ovious!
Where X stands for the number of open script editor windows.
Really?richmond62 wrote: ↑Fri Jul 22, 2022 3:33 pmHowever, after a longish search I cannot find a stack called Code Editor anywhere.
Oh, come on, code = script, and that's more than ovious!
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
Well, it wasn't "ovious" to me.
- -
And IFF gg12 (with a posting total of 3) has been digging around inside the IDE they would know
that the stack you suppose they refer to was called revNewScriptEditor.
- -
- -
And IFF gg12 (with a posting total of 3) has been digging around inside the IDE they would know
that the stack you suppose they refer to was called revNewScriptEditor.
- -
Re: What is the mode of the "Code Editor" stack?
What the EGG?
Hint:
I I do not know the name of a stack, I usually use the message box, enter this string,
hit ENTER and move the cursor over the stack in question.
So I see -> revNewScriptEditor 1
I opened a script editor window first, of course!
And its mode is now 1, since it is open.
Hint:
I I do not know the name of a stack, I usually use the message box, enter this string,
hit ENTER and move the cursor over the stack in question.
Code: Select all
wait 2 secs;put the name of the mousestack
I opened a script editor window first, of course!
And its mode is now 1, since it is open.
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
The original OP has to be aware that modes are not fixed things, but,
as you stated, Klaus, change according to circumstance.
as you stated, Klaus, change according to circumstance.
Re: What is the mode of the "Code Editor" stack?
Live and learn... Stack 'modes' had passed me by somehow - looking this up in the dictionary was very enlightening!
As far as i can tell, this seems to be a read-only property?
Nevertheless, looking for certain stacks with certain modes (eg mode 0) will greatly simplify some of the tasks i'm coding... very timely!
As far as i can tell, this seems to be a read-only property?
Nevertheless, looking for certain stacks with certain modes (eg mode 0) will greatly simplify some of the tasks i'm coding... very timely!
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
Oh, I am such a screaming genius the first time I learnt about modes in LiveCode was this afternoon when I read the start of this thread.
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: What is the mode of the "Code Editor" stack?
I'm too impatient to wait 2 seconds. I enter the same thing in the message box but don't hit the return key. Then I move the mouse over the stack, and then hit return.Klaus wrote: ↑Fri Jul 22, 2022 5:05 pmI I do not know the name of a stack, I usually use the message box, enter this string,
hit ENTER and move the cursor over the stack in question.Code: Select all
wait 2 secs;put the name of the mousestack
I do the same thing using the mouseControl which let's me keep pointing at different controls to see their properties.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: What is the mode of the "Code Editor" stack?
Thanks for your answers
In my version of Livecode it said 0 to 14 in the dictionary, even if I thought it was 0 to 13
It was nice seeing you discuss, great day
gg
In my version of Livecode it said 0 to 14 in the dictionary, even if I thought it was 0 to 13
It was nice seeing you discuss, great day
gg
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
Yes, I apologise, you are quite right:In my version of Livecode it said 0 to 14 in the dictionary
- -
What is ODD though, is that the Dictionary does NOT describe what mode 14 is:
-
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
So, err, I thought I would be clever and try this:
- -
Which did no good at all, so, just to check I tried this:
- -
Which was not very helpful either.
- -
Which did no good at all, so, just to check I tried this:
- -
Which was not very helpful either.
Re: What is the mode of the "Code Editor" stack?
Well, take a look at the screenshot of the dictionary you posted!
This property is read-only and cannot be set.
-
- Livecode Opensource Backer
- Posts: 9443
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: What is the mode of the "Code Editor" stack?
You are actually expecting someone to read everything in this day-and-age? Come on!
AND, more importantly, why does the Dictionary say '14' and then indicate to people who
read slightly more that the truth is '13'?
Also, as Granddad said, "You can always ask." So, I did.
AND, more importantly, why does the Dictionary say '14' and then indicate to people who
read slightly more that the truth is '13'?
Also, as Granddad said, "You can always ask." So, I did.
-
- VIP Livecode Opensource Backer
- Posts: 9847
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: What is the mode of the "Code Editor" stack?
The mode property specifically is indeed read-only, but it is under the control of the scripter though the style property, and various commands that determine mode including ask, answer, sheet, palette, modeless, and others.stam wrote: ↑Fri Jul 22, 2022 6:56 pmLive and learn... Stack 'modes' had passed me by somehow - looking this up in the dictionary was very enlightening!
As far as i can tell, this seems to be a read-only property?
Nevertheless, looking for certain stacks with certain modes (eg mode 0) will greatly simplify some of the tasks i'm coding... very timely!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn