Page 2 of 2

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Fri Oct 11, 2019 10:44 am
by bogs
richmond62 wrote:
Fri Oct 11, 2019 10:30 am
LiveCode 8.1.8, MacOS 10.7.5
Huh, I opened it in Lc 7.1.4 (I assumed from the pics, my bad) :D
richmond62 wrote:
Fri Oct 11, 2019 10:39 am
now all you need to do
Indeed: I love you too. 8)
Hee hee :wink:

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Fri Oct 11, 2019 11:16 am
by richmond62
Here's the stack with the openCard script finished properly:

Code: Select all

on openCard
   put 1 into KOPCHE
   repeat until KOPCHE > 20
      put ("B" & KOPCHE) into BNAME
      send "mouseUp" to btn BNAME
      send "mouseUp" to btn BNAME
      add 1 to KOPCHE
   end repeat
end openCard

on closeCard
   send "mouseUp" to btn "SAVE"
end closeCard
Mainly because post LiveCode 7.x.x (take note bogs) the way LiveCode
palettes were put together "went all funny" so mods could not be saved.

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Fri Oct 11, 2019 11:29 am
by bogs
(Making a note) gives me even less inclination to move up the line, thanks for the info!

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Fri Oct 11, 2019 1:28 pm
by richmond62
A real pain-in-the-bum is how to get at these and their commands as they are a widget:
-
widge.png
widge.png (30.09 KiB) Viewed 2820 times

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Fri Oct 11, 2019 1:42 pm
by Klaus
Hi Richmond,

this is -> widget "header_background"
And everything is scripted in -> stack "revtools"
I found out by:
1. opening the infamous "Project Browser" and
2. selecting "Show IDE stack in Lists" in menu "View"
3. Scrolled my way through all kind of REV stuff until I found the palette -> revtools
Hint, hint! 8)

Good luck!


Best

Klaus

P.S.
Save some lines:

Code: Select all

on openCard
   repeat with i = 1 to 20
      send "mouseUp" to btn ("B" & i)
      
      ## Why send mouseup twice?
      send "mouseUp" to btn ("B" & i)
   end repeat
end openCard

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 9:33 am
by richmond62
Why send mouseup twice?
Aye, well that does sound a bit daft . . . but . . .

The stack "TB" has the buttons saved in the condition they were in when last
used, so, if, mouseUp were sent up only once the revTools stack would end
up in exactly the reverse configuration to that saved.

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 10:47 am
by Klaus
Hi Richmond,
richmond62 wrote:
Sat Oct 12, 2019 9:33 am
Why send mouseup twice?
Aye, well that does sound a bit daft . . . but . . .

The stack "TB" has the buttons saved in the condition they were in when last
used, so, if, mouseUp were sent up only once the revTools stack would end
up in exactly the reverse configuration to that saved.
Then I would not send "mouseup" at all! :D
Example:
1. Stack gets opened -> Button = HIDE
2. mouseup 1 -> Button = SHOW
3. mouseup 2 -> Button = HIDE = same config as 1
What am I missing? And I'm sure I do!

-> save stack "revtools"
Will not work if LC is installed in the application folder and NOT run as ROOT, I get:
can't open stack script file

We are not allowed to save files inside of an application package inside of the "Applications" folder on the Mac.
macOS 10.14.6 LC 9.5.0


Best

Klaus

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 5:09 pm
by richmond62
widgetGuff.png
-
Just does not work.
-
Screenshot_20191012_190740.png
Screenshot_20191012_190740.png (9.41 KiB) Viewed 2734 times
-
How does one address this?

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 5:12 pm
by jpatten
Thanks for the all the feedback!

What Richmond did is what I started doing during my lunch too ;)

I just made a stack/palette with limited buttons. I added a few to to target aspects I wanted to introduce. For example, a button that brings up the Project Browser, and a button that puts the coordinates of the mouseLoc (coordinate math), a button that brings up the message box, so we can run some simple scripts, etc. I have not decided if I would create a custom palette for each concept I want to get across. But eventually, I would just move into the normal tools palette. They would have some familiarity and hopefully reduce the confusion of all the tools.

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 5:13 pm
by richmond62
I keep all my LiveCode installs in a folder inside my Home folder called "LC". on the Macintoshes I deploy on.

Over here, where I currently am (Kubuntu KDE Plasma Arty Tarty) there is no problem with Apple's
"chastity belt."

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Sat Oct 12, 2019 5:24 pm
by richmond62
I just made a stack/palette with limited buttons.
I am trying to make a settings palette so that a teacher can configure a setup for
a specific class the way they want it.

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Posted: Mon Oct 14, 2019 9:18 am
by richmond62
I lay awake most of last night agonising HOW to get at the properties of the revTools stack that allow it to;

1. Wax and Wane:
-
fatty.png
-
2. Shrink and Grow:
-
shrink.png