Search found 6170 matches

by dunbarx
Fri Oct 18, 2019 2:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 21
Views: 491

Re: How to hide an option menu when no selection

Michael. I doubt it, given that, as I mentioned, rawKeysDown doesn't fire either when the menu is dropped. Hmmm. Just to be clear, in an open optionMenu, "mouseRelease" is sent. You're welcome. It is sent for the reasons discussed above, and possibly those reasons are even true. And since a message ...
by dunbarx
Thu Oct 17, 2019 8:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 21
Views: 491

Re: How to hide an option menu when no selection

Correct. The escapeKey message is not sent. But the keysDown function knows when the escapeKey is pressed, and that can be used to the same effect.

Craig
by dunbarx
Wed Oct 16, 2019 9:20 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 27
Views: 587

Re: Using external script only stack as behaviour

I see what you are all talking about. But one does not have to add additional stacks. I have used a single stack as a repository of one or more behaviors. You might say, "why not just place handlers normally in the stack script, and use the hierarchy"? Well, I could, and of course do. I guess it jus...
by dunbarx
Wed Oct 16, 2019 9:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to update a cell in a Data Grid table?
Replies: 4
Views: 138

Re: How to update a cell in a Data Grid table?

I think of this differently. I always extract the entirety of the DG with the dgText, do stuff in "ordinary" LC. and re-install. Thus I rarely distinguish between tasks involving one or more "cells", one or more rows or columns, or the whole shebang. This is just laziness on my part. But my comfort ...
by dunbarx
Wed Oct 16, 2019 9:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 21
Views: 491

Re: How to hide an option menu when no selection

Michael.

I told you this would be fun.

Craig
by dunbarx
Wed Oct 16, 2019 8:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 21
Views: 491

Re: How to hide an option menu when no selection

Jacque. Rereading, I now see what you are on about. This applies only to the escapeKey. None of the other control keys do this. Apparently, the "mouseRelease" message fires even if the cursor is within the rect, as long as the menu is open. It does not fire if closed. Does opening a menu essentially...
by dunbarx
Wed Oct 16, 2019 8:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 21
Views: 491

Re: How to hide an option menu when no selection

Jacque. The optionMenu is invoked externally, with "click at the loc of btn..." So when that happens, and the user clicks anywhere BUT within the rect of that optionMenu, mouseRelease fires. This was the intent of the OP, that the user would invoke the option, and then decide not to go there at all....
by dunbarx
Wed Oct 16, 2019 2:49 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 27
Views: 587

Re: Using external script only stack as behaviour

If I remember right there was last year a post by Mark Waddingham who said it was never intended to use "set the behaviour" to anything else than to a button. And that this may be restricted to buttons in future versions. I always thought that having a button as the only repository of a behavior wa...
by dunbarx
Tue Oct 15, 2019 6:46 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 27
Views: 587

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: 27
Views: 587

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: 552

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: 552

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: How to hide an option menu when no selection
Replies: 21
Views: 491

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: How to hide an option menu when no selection
Replies: 21
Views: 491

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: How to hide an option menu when no selection
Replies: 21
Views: 491

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...

Go to advanced search