Simple Simon

Teaching software development? Using LiveCode to build your curriculum? This is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Simple Simon

Post by richmond62 » Thu May 19, 2016 9:44 pm

newTools.png
newTools.png (9.14 KiB) Viewed 15863 times

Warning
: the "Open" button is non-functional at the moment.
The "save" button doesn't work properly.

Your revTools and revMenubar stacks will vanish.
Don't panic: they will be restored next time you start Livecode.

This works only with Livecode 8.0.0 and up.
Last edited by richmond62 on Fri May 20, 2016 8:17 am, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Thu May 19, 2016 10:01 pm

Toolz.png
Hypercard 2.4 Tool Palette
Toolz.png (6.53 KiB) Viewed 15854 times
Metacard.png
Metacard 2.5 Tool Palette
Metacard.png (7.3 KiB) Viewed 15854 times
"Just for fun" here are pictures of the palettes that I got my idea from.

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

Re: Simple Simon

Post by richmond62 » Fri May 20, 2016 8:15 am

Here's a version that does palettise and does create buttons and fields on a new stack (just as long as it's called "New Stack")
instead of on the tool palette.
newHope.png
Last edited by richmond62 on Fri May 20, 2016 4:16 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Fri May 20, 2016 4:16 pm

"Open" button now works, "Import Image" button added [and it works!], "Save" button still proving a problem.
newT.png
newT.png (11.67 KiB) Viewed 15735 times
Last edited by richmond62 on Fri May 20, 2016 8:09 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Fri May 20, 2016 8:09 pm

'Open' button, 'Save' button now work.

New stack defaults to 600 x 500 pixels.
newT2.png
Last edited by richmond62 on Fri May 20, 2016 8:37 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Fri May 20, 2016 8:24 pm

With the exception of the 'New Stack' and the Import Image' I have used Metacard icons that are, still, oddly enough, available in Livecode 8.0.1.
I cannot say they "thrill my gorilla" that much, so will be on the lookout for some that seem a bit more contemp.
However, at the moment my main concern is functionality; aesthetic stuff can wait.
MCicons.png
I have lined up a series of icons for the buttons that are similar to the black ones used in Livecode 8.0, but, frankly, I don't like them very much.
I could, however, easily make a variant version with these if there were demand.
modernIcons.png
Last edited by richmond62 on Sat May 21, 2016 8:27 pm, edited 1 time in total.

Peter Bogdanoff
Posts: 3
Joined: Mon Aug 26, 2013 6:49 pm

Re: Simple Simon

Post by Peter Bogdanoff » Fri May 20, 2016 8:31 pm

Richmond,
Saving the stack: before the stack is saved to disk, name the stack itself--

Code: Select all

set the name of stack "New Stack" to it
set the label of stack "New Stack" to it
set the filename of stack "New Stack" to (it & ".rev")
Also, you can used the "defaultStack" property when using the tool palette so that any action is done on the topmost stack:

Code: Select all

set the defaultStack to the topStack
Now you don't have to refer to the user's stack by name

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

Re: Simple Simon

Post by richmond62 » Fri May 20, 2016 8:33 pm

That's a great help: Thanks so much.

I implemented your suggestions almost instantly.
Last edited by richmond62 on Fri May 27, 2016 5:09 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Fri May 27, 2016 5:09 pm

I tried out my "newTools" stack today on a 32-bit Linux computer and got a bit of a shock as all the buttons were speckly:
old.png
old.png (27.8 KiB) Viewed 15548 times
So, I rejigged the buttons so they look as they do on 64-bit Linux on 32-bit Linux:
new.png
new.png (19.37 KiB) Viewed 15548 times
Last edited by richmond62 on Sun May 29, 2016 8:24 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Fri May 27, 2016 5:11 pm

I had a long lunch break today, and did this:
lateral.png
lateral.png (10.49 KiB) Viewed 15548 times
for anyone who prefers this over the other version.
Last edited by richmond62 on Sun May 29, 2016 8:24 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Sun May 29, 2016 8:22 pm

So; update time: new versions of the ORIGINAL and the LATERAL palettes (SAVE button now working),
and an EXTENDED palette allowing one to mess around with TEXT in a FIELD in BROWSE mode.
extended.png
Last edited by richmond62 on Mon May 30, 2016 8:48 pm, edited 1 time in total.

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

Re: Simple Simon

Post by richmond62 » Sun May 29, 2016 8:23 pm

As mentioned above.
Attachments
lateral.zip
Latest version of the lateral palette.
(14.27 KiB) Downloaded 417 times
original.zip
Latest version of the original palette.
(14.26 KiB) Downloaded 416 times

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

Re: Simple Simon

Post by richmond62 » Sun May 29, 2016 8:34 pm

control.png
I'm just starting to experiment with onboard controls that can be dimmed/hidden in certain states:
this might take me towards a situation where I will disable Livecode's underlying
Property Palette.

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

Re: Simple Simon

Post by richmond62 » Mon May 30, 2016 8:47 pm

Those lunch breaks are beginning to tell:
extendedGuff.png
I'm sorry about the "bare" areas, but they will be filled in with more stuff as I get to it.
Attachments
extended.zip
And so it goes.
(22.27 KiB) Downloaded 419 times

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

Re: Simple Simon

Post by bogs » Wed Oct 18, 2017 4:37 pm

Wow am I late to the game. Very nice job Richmond62, did you get any farther with it, or is it considered done? It does work pretty smoothly :D

As I played with it, I did have a few questions and, possibly, suggestions.
  • How does one bring up the dictionary? On Linux, hit F1, nothing, and I don't see a button mapped to it.
  • What is the [text box |apply] area for? I can type commands, dictionary entries, etc, but hitting apply seems to do nothing with either.
Everything else presented seems logical and self explanatory, as far as it goes, in playing around with it I found the stack could be resized, showing the images used, or eliminating parts of it you didn't want to look at.
MaybeSetNoResize.png
Main bar resizeable...
I actually think this could be useful in a way as a replacement to the backdrop feature, but not sure how it could be implemented. One of the issues I see with the current backdrop feature is that you can't put any limits on it, if you turn it on, it covers the entire desktop, off it covers nothing.

I know you *can* set min/max width/height on a stack, so I would guess it could be pretty easy to set the stack to be whatever size your user wants it. The part I am guessing would be more difficult (but not unsolvable) would be segregating the controls from the bottom portion. I am guessing a group would be the simplest way to approach this, the question would be whether to put the tools in the group, or the expanded area of the stack and resizing the group overlay there.

All in all, very nice though, quick and responsive here.
Image

Post Reply

Return to “Teaching with LiveCode”