Search found 55 matches
- Mon Jul 25, 2016 4:14 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: pointing palette scripts to main stack
- Replies: 10
- Views: 5364
Re: pointing palette scripts to main stack
Thanks for instructions! Most helpful. I am learning.
- Fri Jul 22, 2016 1:00 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: How to execute the result of a function when...
- Replies: 15
- Views: 6807
How to execute the result of a function when...
what is returned by function is the name of a handler?
Code: Select all
on mouseUp
global gDoThis
put figureThis(gDoThis) into newTask
newTask --(the name of a handler. like "doLink")
end mouseUp
on doLink
beep
end doLink
- Thu Jul 21, 2016 2:21 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Loosing substacks
- Replies: 7
- Views: 3614
Re: Loosing substacks
Craig,
I think I understand your note yet I'm likely a long way off from testing a stand alone.
The image lists what I see when saving my stack.
Highlighted items (thought missing palettes) need to be deleted.
I think I understand your note yet I'm likely a long way off from testing a stand alone.
The image lists what I see when saving my stack.
Highlighted items (thought missing palettes) need to be deleted.
- Wed Jul 20, 2016 4:05 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Loosing substacks
- Replies: 7
- Views: 3614
Re: Loosing substacks
Thanks again for help here. Just noob ignorance...
Now see through Project Browser that the stacks in question are part of main stack instead of individual .livecode files.
Now see through Project Browser that the stacks in question are part of main stack instead of individual .livecode files.
- Wed Jul 20, 2016 3:37 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Loosing substacks
- Replies: 7
- Views: 3614
Loosing substacks
When a main stack is open and one of its substacks is also open, is a save of the main stack also saving its substacks. I've three times today had to recreate a substack palette because it disappears from disk. I've been 1) using "top-level stack "mypalette" to make changes and then saving. 2) Makin...
- Tue Jul 19, 2016 8:54 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scripting the level of a button ?
- Replies: 14
- Views: 6670
Re: scripting the level of a button ?
Most helpful is learning the simple fact that each object owns a unique layer. Able to pair layer with btn name (x1 - x117) with this script: on mouseUp repeat with x = 1 to 117 put the short name of btn ("x"&x) into nm set the layer of btn nm to x end repeat end mouseUp Thanks for your notes and sc...
- Tue Jul 19, 2016 7:57 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: pointing palette scripts to main stack
- Replies: 10
- Views: 5364
Re: pointing palette scripts to main stack
Thanks Klaus What am i doing wrong?? "Planner" is my main stack with handlers in the stack script (not cd script) Made New Substack of "Planner" Copied and pasted buttons in "Planner" to "Planner Tools" (my palette) on mouseUp global gPlaceThis put the short name of me into gPlaceThis toggleImages e...
- Tue Jul 19, 2016 4:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scripting the level of a button ?
- Replies: 14
- Views: 6670
Re: scripting the level of a button ?
So, using this code I get no change of layer:
Code: Select all
on mouseUp
-- level matrix of bans test
-- buttons are named x1, x2, x3...etc.
repeat with i=1 down to 117
set the layer of btn ("x"&i) to 6000
end repeat
end mouseUp
- Tue Jul 19, 2016 4:39 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: pointing palette scripts to main stack
- Replies: 10
- Views: 5364
Re: pointing palette scripts to main stack
Yes, each of the palette buttons contain same script:
toggleimages resides in the main stack's script
Code: Select all
on mouseUp
global gPlaceThis
put the short name of me into gPlaceThis
put the short name of me into fld "placeThis"
toggleImages -- error
end mouseUp
- Tue Jul 19, 2016 3:20 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: pointing palette scripts to main stack
- Replies: 10
- Views: 5364
Re: pointing palette scripts to main stack
Thanks dunbarx I went through the process again with same result. All the buttons in the palette are same btn scripts that use to reside on the main stack cd 1. (just copied and pasted) 1) Tried creating a substack for the palette 2) Tried creating a new main stack and pointing it to my main main st...
- Tue Jul 19, 2016 1:35 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Image ID assignments
- Replies: 1
- Views: 2866
Image ID assignments
How can I obtain a listing of the image IDs assigned to "standard" and "metacard..." images. (to avoid conflict assignment with my own images)?
- Tue Jul 19, 2016 1:27 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: pointing palette scripts to main stack
- Replies: 10
- Views: 5364
pointing palette scripts to main stack
Made a substack and copy/pasted several buttons from main stack to palette. The palette is set to the reference my main stack (object property) loading it with: palette stack "planToolBar" Those pasted buttons are no longer functional and not clear on the message path for palette. How to point palet...
- Tue Jul 19, 2016 1:00 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scripting the level of a button ?
- Replies: 14
- Views: 6670
Re: scripting the level of a button ?
My reason for using "set the level of btn to #" is to move an arrangement of 117 buttons to same level.
They are now scattered at great difference of depth. Perhaps it doesn't matter.
They are now scattered at great difference of depth. Perhaps it doesn't matter.
- Mon Jul 18, 2016 5:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scripting the level of a button ?
- Replies: 14
- Views: 6670
scripting the level of a button ?
I have button size and location "unlocked" and layer mode as "dynamic"
But I can't set level of a btn with this code:
But I can't set level of a btn with this code:
set the layer of btn "x1" to 101
- Sat Jul 16, 2016 7:37 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: scripting the script of a btn?
- Replies: 13
- Views: 6080
Re: scripting the script of a btn?
That makes perfect sense now... I've deleted all but 1 button, added 2 more but as shown in attached the stack shows memory of the number of buttons previously used. Each new button I create is an addition to the 118 btn sequence. How to purge? Ultimately, I need to use the button's position within ...