Search found 6179 matches

by dunbarx
Sat Oct 19, 2019 8:15 pm
Forum: Talking LiveCode
Topic: "Click at the loc of...." thingie
Replies: 2
Views: 73

"Click at the loc of...." thingie

I thought this merited its own thread. This is derived from the discussion at: http://forums.livecode.com/viewtopic.php?f=7&t=33215 ----------- Is a feature, a bug, expected behavior or just an anomaly? The command "click at the loc of..." does indeed click at that loc. As read, though, it seems tha...
by dunbarx
Sat Oct 19, 2019 8:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 28
Views: 785

Re: How to hide an option menu when no selection

Anyone think this is a feature, a bug, expected behavior or just an anomaly? The command "click at the loc of..." does indeed click at that loc. As read, though, it seems that the cursor ought to simply stay at the loc after the click. This is not the same as moving the cursor to that loc and manual...
by dunbarx
Sat Oct 19, 2019 3:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 19
Views: 444

Re: Preventing duplicate input

Bogs and I are together on this. Lets see what you started with, that is causing all this anxiety. This sort of thing should not need emergency surgery, nor fancy patches.

Craig
by dunbarx
Sat Oct 19, 2019 2:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 28
Views: 785

Re: How to hide an option menu when no selection

The proper function names are keyDown and rawKeyDown, not keysDown and rawKeysDown. rawKeyDown does not fire when the option menu is open and the Escape key is pressed. As long as we understand that "keyDown" and "rawkeyDown" are messages, not functions. The "keysDown" is a function. There is no "r...
by dunbarx
Fri Oct 18, 2019 9:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 19
Views: 444

Re: Preventing duplicate input

Jeff.

Jean-Marc has offered a timing solution. We have discussed setting properties to prevent unwanted excursions. There are likely many other ways to do this as well.

But I bet this can be dealt with right at the start. How are you doing what you are doing?

Craig
by dunbarx
Fri Oct 18, 2019 5:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 28
Views: 785

Re: How to hide an option menu when no selection

Michael, again.

You must have misread my earlier post, the one you thanked me for, if you all along thought I was talking about any kind of key-Like message. Go back to that one and reread carefully.

Craig
by dunbarx
Fri Oct 18, 2019 5:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 28
Views: 785

Re: How to hide an option menu when no selection

Michael.

Please go to the dictionary and look up "keysDown".

You will find it a very useful function.

The items you mentioned above are MESSAGES. There is a profound difference between these concepts. You have mixed them up before.

Craig
by dunbarx
Fri Oct 18, 2019 2:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to hide an option menu when no selection
Replies: 28
Views: 785

Re: How to hide an option menu when no selection

Still trying to be clear. It may matter to others trying to learn from this thread, and the distinction is subtle. What do you doubt? True, we found a message sent from an open menuOption. That in itself was a surprise. But the "keysDown" function is not at all the "rawKeysDown" message. Is that whe...
by dunbarx
Fri Oct 18, 2019 2:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 19
Views: 444

Re: Preventing duplicate input

Hi. Probably need to see your code. That you automatically migrate to another item before "locking" the first keypress should be rewritten, and the problem will go away. Your idea of setting a flag (a custom property) to "lock" the current item is sound, but as I mentioned above, I bet we do not nee...
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: 28
Views: 785

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: 28
Views: 785

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

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

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: 28
Views: 785

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: 28
Views: 785

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

Go to advanced search