Search found 6162 matches

by dunbarx
Tue Oct 15, 2019 6:46 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 18
Views: 310

Re: Using external script only stack as behaviour

Bogs. Hmmm. I have a mainStack "xxx" and its subStack "yyyy". I have a stack script in "yyyy", and set the behavior of "xxx" to the long id of stack "yyyy". I have to start using "yyyy" in order for something in "xxx" to work. If I stop using "yyyy", that functionality goes away. Back and forth... T...
by dunbarx
Tue Oct 15, 2019 2:56 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 18
Views: 310

Re: Using external script only stack as behaviour

I think the dictionary is misleading in this. It simply states that the pathname to the behavior stack must be of a certain form, to allow portability. This would lead one to think that if both stacks were open, LC would know to look for and use the behavior stack. After all (again, assuming both st...
by dunbarx
Mon Oct 14, 2019 2:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 444

Re: How to stop Answer Dialog from displaying "answer dialog" ?

Klaus.

Of course. I was sloppy, simply checking only the stack script.

Craig
by dunbarx
Mon Oct 14, 2019 12:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 444

Re: How to stop Answer Dialog from displaying "answer dialog" ?

Confirm this was never an issue on Mac. First I have heard of it anywhere. Anyway, the script of the "answer dialog" stack is" on resizeStack end resizeStack on openStack end openStack on preOpenCard end preOpenCard on openCard end openCard on closeCard end closeCard So where might any sort of timin...
by dunbarx
Sun Oct 13, 2019 5:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't hide an option menu when no selection
Replies: 6
Views: 231

Re: Can't hide an option menu when no selection

In the meantime, I've made some fields that work like option menus, so that's my solution... Yes rolling your own, as we like to say (after all, most of us are old, old...) allows one to make tools that have functionality far beyond the native set. If that were not possible, much of the beauty of L...
by dunbarx
Sun Oct 13, 2019 5:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't hide an option menu when no selection
Replies: 6
Views: 231

Re: Can't hide an option menu when no selection

Michael. You will have a much easier time when you learn just a little more vocabulary. Like learning any new language, this takes time and practice. To a point you made earlier, it is hard to know, unless you have a bunch of hours under your belt, where to look in the dictionary. So now every time ...
by dunbarx
Sun Oct 13, 2019 5:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't hide an option menu when no selection
Replies: 6
Views: 231

Re: Can't hide an option menu when no selection

Michael. You are learning there is a slippery slope between being clever and making kluges. You tell me: In the script of the optionMenu button: on mouseRelease if the mouseLoc is within the rect of me and the keysDown = 65307 then answer "escapeKey pressed!" end mouseRelease So, kluge or cleverness...
by dunbarx
Sun Oct 13, 2019 3:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't hide an option menu when no selection
Replies: 6
Views: 231

Re: Can't hide an option menu when no selection

Michael. You are going to be so much fun to have around. Try this. On a new card make an option menu and a field. Put a few lines in the field and then lock it. In the field script: on mouseUp show btn 1 ; click at the loc of btn 1 end mouseUp In the button script; on mouseLeave hide me end mouseLea...
by dunbarx
Fri Oct 11, 2019 4:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Various ways of matching a line
Replies: 7
Views: 335

Re: Various ways of matching a line

Michael.

This is not the first time you have posted thoughtful musings on the innards of LC. Keep it up!

Craig
by dunbarx
Thu Oct 10, 2019 1:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1307

Re: Possible to easily assign lists to variables & vice-versa?

Michael,

Hermann is nothing if not forthright. He has no agenda other than trying to help. You have misinterpreted all he has tried to do, and the simple intentions behind it.

Lets all start from scratch. LC stuff only; what's next?

Craig
by dunbarx
Thu Oct 10, 2019 5:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1307

Re: Possible to easily assign lists to variables & vice-versa?

This is going south quickly. We do not want another Amthony Black fiasco, after all. @Michael. Nobody but you has criticized anything. Two things: 1- Some of your posts do not show adequate context. That is why I did not know, until you later filled me in, that your list consisted of populated varia...
by dunbarx
Wed Oct 09, 2019 7:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1307

Re: Possible to easily assign lists to variables & vice-versa?

Michael. You are doing great. LC is flexible in its syntax, more so, as I said, than I would oftentimes like. So just to nitPick: put (var1, var2, var3, var4, var5) into theList really should be: put "var1, var2, var3, var4, var5" into theList You will soon see that these things matter, especially w...
by dunbarx
Wed Oct 09, 2019 3:19 pm
Forum: Feature Requests
Topic: Assign multiple variables from a split list on the fly
Replies: 4
Views: 299

Re: Assign multiple variables from a split list on the fly

Michael. Also, LC starts default keys with "1', not "0". There would be no "data[0]" Know also that you can create your own keys explicitly: put "dog" into myArray[pet] put "chicken" into myArray[dinner] put "cookie" into myArray[dessert] In that way, of course, you could then have a "0" as your fir...
by dunbarx
Wed Oct 09, 2019 2:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Here's how to add an item to the end of a list
Replies: 4
Views: 185

Re: Here's how to add an item to the end of a list

Michael. Your snippet will not compile, you need to: put "figs" into item (num(items of tList )+1) of tList Now then: on mouseUp put "apples,berries,cherries" into tList put "figs" into item last+1 of tList end mouseUp yields ""figs,berries,cherries", LC is ignoring the "last+" portion, as it often ...

Go to advanced search