Primary Student Livecode Interface (Simplified Developer Interface)

Share tips, tools, and other resources for helping educators bring LiveCode into the classroom

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by bogs » Fri Oct 11, 2019 10:44 am

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:
Image

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Fri Oct 11, 2019 11:16 am

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.
Attachments
TB.livecode.zip
HERE'S THE STACK.
(19.41 KiB) Downloaded 293 times

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by bogs » Fri Oct 11, 2019 11:29 am

(Making a note) gives me even less inclination to move up the line, thanks for the info!
Image

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Fri Oct 11, 2019 1:28 pm

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 10639 times

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by Klaus » Fri Oct 11, 2019 1:42 pm

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

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » 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.

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by Klaus » Sat Oct 12, 2019 10:47 am

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

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Sat Oct 12, 2019 5:09 pm

widgetGuff.png
-
Just does not work.
-
Screenshot_20191012_190740.png
Screenshot_20191012_190740.png (9.41 KiB) Viewed 10553 times
-
How does one address this?

jpatten
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 45
Joined: Tue May 06, 2008 11:24 pm

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by jpatten » Sat Oct 12, 2019 5:12 pm

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.

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Sat Oct 12, 2019 5:13 pm

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."

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Sat Oct 12, 2019 5:24 pm

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.

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

Re: Primary Student Livecode Interface (Simplified Developer Interface)

Post by richmond62 » Mon Oct 14, 2019 9:18 am

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

Post Reply

Return to “Educational Outreach”