Author Topic: Let's Learn LiveCode computer programming  (Read 6719 times)

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #15 on: Dec 06, 2019, 10:24:55 AM »
This is the Tool Palette [Which is very complicated and frightening  :) ]

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #16 on: Dec 06, 2019, 10:27:19 AM »
We can simplify things so that the Tool Palette is much more friendly
(and only shows things that I shall use in these lessons).

Please deselect all the sections except for the Classic Controls.

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #17 on: Dec 06, 2019, 10:29:24 AM »
Oh, Cripes: I'm running out of time, so I'm "off" for a spot of lunch,
and then "Hey-Ho" for my work that actually puts some cheese in the fridge
(teaching Bulgarian kiddos how to function in English).

I'll be back this evening; so any Q's so far: let me have them.  :)

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #18 on: Dec 06, 2019, 11:24:02 AM »
Any one who previously worked with HyperCard on Macintosh computers
in the 1990s should be aware that LiveCode is a lineal descendant of HyperCard.

The same stack metaphor is employed here.

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #19 on: Dec 06, 2019, 06:13:55 PM »
This is the Menu Bar:

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #20 on: Dec 06, 2019, 06:20:00 PM »
Let's get started by making ourselves a new stack

[ this is a sort of canvas on which we can begin our programming ]

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #21 on: Dec 06, 2019, 06:20:30 PM »
You should end up with something like this:

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #22 on: Dec 06, 2019, 06:22:41 PM »
The basic concerns with computer programming are threefold:

1. Numerical operations.

2. Text operations.

3. Graphical operations.

So, to be amazingly unoriginal, I shall start with numerical operations.

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #23 on: Dec 06, 2019, 06:26:10 PM »
To get things going we need a button.

Please select a button on the Tools Palette, and DRAG it over onto your stack.
« Last Edit: Dec 06, 2019, 06:30:17 PM by richmond62 »

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #24 on: Dec 06, 2019, 06:36:32 PM »
Your stack should now have a button on it like this:

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #25 on: Dec 06, 2019, 06:37:02 PM »
With the right button on your mouse perform a right-click on the new button and select the Properties Palette.
« Last Edit: Dec 06, 2019, 06:40:25 PM by richmond62 »

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #26 on: Dec 06, 2019, 06:42:51 PM »
Change the name of the button to "ACTION"

Alex22

  • Hero Member
  • *****
  • Posts: 14797
Re: Let's Learn LiveCode computer programming
« Reply #27 on: Dec 06, 2019, 06:48:22 PM »
So when you've learned it .............  what then  ?  8)

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #28 on: Dec 06, 2019, 06:48:59 PM »
Open the Properties Palette for your stack;

richmond62

  • Hero Member
  • *****
  • Posts: 4590
Re: Let's Learn LiveCode computer programming
« Reply #29 on: Dec 06, 2019, 06:50:05 PM »
This is all the initial start stuff.

Tomorrow we'll do some proper programming with the stack we have made just now.