Primary Level Educational version
Forum rules
Be kind.
Be kind.
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Sorted out the CANCEL button so it actually does what it should . . .
-
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Now generates a new stack where it should:
-
-
- Attachments
-
- newTools.livecode.zip
- Stack.
- (233.36 KiB) Downloaded 132 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Frankly that "STACK" button was 'not much cop', so went for a new palette:
-
-
- Attachments
-
- newTools.livecode.zip
- Stack.
- (312.43 KiB) Downloaded 119 times
https://richmondmathewson.owlstown.net/
- OpenXTalkPaul
- Posts: 1574
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Primary Level Educational version
I'm a sucker for brushed metal.
My Object/Resource extractor thing I'm working on might be helpful for working on IDE stacks like this.
I'm going to upload what I've got so far on that in a bit.
My Object/Resource extractor thing I'm working on might be helpful for working on IDE stacks like this.
I'm going to upload what I've got so far on that in a bit.
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
It doesn't have to be brushed metal as far as I am concerned.
But I do feel a textured background is better in terms of making the 'handles' stand out, and stopping your eyes going funny with a solid colour.
My experience with about 100 programs for content development and reinforcement through 2 universities and my language school (using HyperCard, ToolBook, Metacard, and RR/LC) is 10-20% of the time on programming, and the rest on 'Look and Feel'. Something that is, in my opinion, overlooked in a large number of cases.
But I do feel a textured background is better in terms of making the 'handles' stand out, and stopping your eyes going funny with a solid colour.
My experience with about 100 programs for content development and reinforcement through 2 universities and my language school (using HyperCard, ToolBook, Metacard, and RR/LC) is 10-20% of the time on programming, and the rest on 'Look and Feel'. Something that is, in my opinion, overlooked in a large number of cases.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
So: some incremental improvements with the stack creation palette:
- -
Also takes into account if the user has not given the stack a name:
-
- -
Also takes into account if the user has not given the stack a name:
-
- Attachments
-
- newTools.livecode.zip
- Stack.
- (312.62 KiB) Downloaded 121 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Why not have a bit more fun? . . .
- -
- -
- Attachments
-
- newTools.livecode.zip
- Stack.
- (313.33 KiB) Downloaded 120 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Proper default settings for Stack palette & improved affordances on colour buttons:
- - -
Default stack is now white and 300 x 300 pixels.
- - -
Default stack is now white and 300 x 300 pixels.
- Attachments
-
- newTools.livecode.zip
- Stack.
- (313.32 KiB) Downloaded 124 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
I am a bit stuck:
My newTools stack contains a button with this script:
What ACTUALLY happens with this script is that my imported image ends up in the newTools stack, and NOT my target stack.
-
My newTools stack contains a button with this script:
Code: Select all
on mouseUp
answer file "Select image:"
if the result is not cancel then
set the lockscreen to true
put the short name of the topStack into STAKK
import paint from file it to stack STAKK
set the name of the last control to "XYZ"
end if
end mouseUp
-
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 1533
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Britain (Previously known as Great Britain)
- Contact:
Re: Primary Level Educational version
Is your target stack specified in a variable somewhere?
Otherwise, it's probably doing what it thinks is correct - the topstack is probably the newTools stack.
Perhaps if you can store the name of the new stack in a global variable, then use that in the target stack to import the image into.
Otherwise, it's probably doing what it thinks is correct - the topstack is probably the newTools stack.
Perhaps if you can store the name of the new stack in a global variable, then use that in the target stack to import the image into.
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
That doesn't seem to make sense if the button containing the script is on a palette.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
The redoubtable Bernd Niggeman in the LC Forums provided the help I needed:
-
Code: Select all
on mouseUp
put the topStack into STAKK
if (the short name of this stack) is STAKK or STAKK is empty then
answer "activate the target stack first" with "Ok"
exit mouseUp
end if
answer file "Select image:"
if the result is not cancel then
set the lockscreen to true
set the defaultStack to STAKK
import paint from file it
set the name of the last control to "XYZ"
end if
end mouseUp
- Attachments
-
- newTools.livecode.zip
- Stack.
- (313.82 KiB) Downloaded 87 times
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 1533
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Britain (Previously known as Great Britain)
- Contact:
Re: Primary Level Educational version
I guess that works, but it's a bit of a pain to be told to activate the target stack first. Surely it should just put it on the user's stack without prompting.
Judging by the window controls on the main stack (as they are greyed out), the main stack window is in the background, so is not the front stack.
You could just avoid all that with a variable that sets the default stack to whatever the main stack is called when it gets created.
Anyway, glad you are happy.
Judging by the window controls on the main stack (as they are greyed out), the main stack window is in the background, so is not the front stack.
You could just avoid all that with a variable that sets the default stack to whatever the main stack is called when it gets created.
Anyway, glad you are happy.
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
I wouldn't put things as simplistically as that.Anyway, glad you are happy.
This interface is very much a work in progress (3 steps forward, 2 steps back). After all, that button should NOT import an image: it should throw up a "image Import" palette with all sorts of options.
Such as:
SIZE
POSITIONING
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
ALSO: every button on every palette should check whether "Sunny Jim" has made a stack on which to place buttons, fields, pictures, graphics, and so forth: otherwise things could get seriously screwed up.
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 1533
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Britain (Previously known as Great Britain)
- Contact:
Re: Primary Level Educational version
That's kind of what my idea would have done (probably rough sudo-code):richmond62 wrote: ↑Wed Jan 17, 2024 5:30 pm ALSO: every button on every palette should check whether "Sunny Jim" has made a stack on which to place buttons, fields, pictures, graphics, and so forth: otherwise things could get seriously screwed up.
Code: Select all
global rSunnyJimsTargetStack
on mouseup
if not (there is a stack rSunnyJimsTargetStack) or rSunnyJimsTargetStack is empty then
-- no stack has been created
else
-- we now know the target stack for everything
create button "new button " & the seconds in stack rSunnyJimsTargetStack
end if
end mouseup
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
ALL that should be necessary, as ALL the palettes in my newTools are palettes, is for each command to pick up the name of the topStack (after all, Sunny Jim could be farting around with 3 stacks) . . . so, no globals needed.
-
-
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 1533
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Britain (Previously known as Great Britain)
- Contact:
Re: Primary Level Educational version
Code: Select all
global rSunnyJimsTargetStack
on resumestack
put the name of this stack into rSunnyJimsTargetStack
end resumestack
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
Easy, indeed: and one of several ways of doing things.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 2767
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Primary Level Educational version
And with this picture you should ken what I'm speiran for:
-
-
https://richmondmathewson.owlstown.net/
Who is online
Users browsing this forum: No registered users and 12 guests