Search found 12009 matches

by Klaus
Tue Dec 01, 2020 1:38 pm
Forum: Animation Engine
Topic: Object movement causing lag and jerks, SOLVED
Replies: 11
Views: 227

Re: Object movement causing lag and jerks, SOLVED

Hi kwanz,

great! :-)
Feel free to ask, I will happily explain everything in detail to you!


Best

Klaus
by Klaus
Mon Nov 30, 2020 10:43 pm
Forum: Animation Engine
Topic: Object movement causing lag and jerks, SOLVED
Replies: 11
Views: 227

Re: Object movement causing lag and jerks,

Hi kwnz, here an example of the joys of a REPEAT loop with concatenated object names. :D It is a bit shorter than your keydown handler: on keydown thekey ## Avoid gazillions of IF END IFs :-) if thekey <> SPACE then exit keydown end if # tKey IS space so: play "gunshot" ## Now check if any duck inte...
by Klaus
Mon Nov 30, 2020 8:14 pm
Forum: Talking LiveCode
Topic: Is it possible to send a time-delayed message with parameters?
Replies: 9
Views: 155

Re: Is it possible to send a time-delayed message with parameters?

When you say to put all messages inside quotes, does this include variables and handlers (I think that's what they are called, blocks of code)? No, only strings like object names etc and the name of the message you want to SEND or DISPATCH including the parameters for the sent handlername, see my e...
by Klaus
Mon Nov 30, 2020 7:44 pm
Forum: Animation Engine
Topic: Object movement causing lag and jerks, SOLVED
Replies: 11
Views: 227

Re: Object movement causing lag and jerks,

As you can see, the forum leaves "shadow topic" in place after moving a thread.
Maybe that is sufficient?

If not, I can move this thread back to the beginners section.
However this IS in fact an animation engine question, isn't it?
-> aeMoveTo the long ID of img 1,(700,259),2000,"overshoot"
by Klaus
Mon Nov 30, 2020 7:40 pm
Forum: Talking LiveCode
Topic: Is it possible to send a time-delayed message with parameters?
Replies: 9
Views: 155

Re: Is it possible to send a time-delayed message with parameters?

Hi AGC studios, you are mixing the syntax of SEND and DISPATCH. ... ## All strings and messages you send in quotes! ## Get used to it in your own interest! The engine is getting less forgiving with "sloppy" syntax with every version. ## Believe me, I experienced this several times in the last 20 yea...
by Klaus
Mon Nov 30, 2020 6:57 pm
Forum: Animation Engine
Topic: Object movement causing lag and jerks, SOLVED
Replies: 11
Views: 227

Re: Object movement causing lag and jerks,

We have in fact a special "Animation Engine" sub forum, will move this thread there...
by Klaus
Mon Nov 30, 2020 2:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Handling mouseText and mouseline events
Replies: 6
Views: 119

Re: Handling mouseText and mouseline events

Hi Glenn, of coursee you can use mousetext and mouseline in ONE mouseup handler. BUT an open field (locktext = false) does not receive any MOUSEUP or MOUSEDOWN* messages! *Only a right mousedown to be able to display a context menu or whatever. Something like this does work: on mousedown tNumber ## ...
by Klaus
Sun Nov 29, 2020 9:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Calendar widget
Replies: 19
Views: 877

Re: Calendar widget

marksmithhfx wrote:
Sun Nov 29, 2020 9:32 pm
Put in 2020-02-31 (Feb 31)
I would never do that! :-)
by Klaus
Sat Nov 28, 2020 9:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Calendar widget
Replies: 19
Views: 877

Re: Calendar widget

Hi Mark, yep, the format of the date returned from the widget is erm. un-LC-like, to say the least. :D Unfortunaltey this is not recognized by LCs "convert" function So the answer is you need to write a little function which formats that date to a LC friendly one. Best Klaus P.S. Sounds like a nice ...
by Klaus
Sat Nov 28, 2020 5:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Problem to open a stack
Replies: 3
Views: 117

Re: Problem to open a stack

Hi Frank,

welcome to the forum!

Try this:
In menu -> Deleopment select -> Suppress Messages and try to open your stack.


Best

Klaus

P.S.
It is -> Lady, Ladies (no apostrophy nonsense in any plural!) 8)
by Klaus
Sat Nov 28, 2020 4:13 pm
Forum: Calculator
Topic: pKey (entering a number)
Replies: 4
Views: 91

Re: pKey (entering a number)

AHA! :D OK, do this: on keyDown pKey ## All numbers are allowed: if pKey is a number then pass keyDown else ## Only ONE decimal point allowed, so we have to check: if pKey = "." AND "." is not in me then pass keydown else beep end if beep end if end keyDown Tested and works! Best Klaus
by Klaus
Sat Nov 28, 2020 3:26 pm
Forum: Calculator
Topic: pKey (entering a number)
Replies: 4
Views: 91

Re: pKey (entering a number)

Hi Luca,

welcome to the forum!

Your script works here, I can only type numbers into the field.
So no idea what your problem is?

Best

Klaus

P.S.
Personal note:
A little "Hello" or something would not have hurt for the very first posting.
by Klaus
Sat Nov 28, 2020 11:08 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: setting the textstyle of words found after looping
Replies: 6
Views: 274

Re: setting the textstyle of words found after looping

Hi Glenn, sorry, that was a remnant of copy/paste! :oops: tWordCounter is correct, just made a little test and works as exspected: on mouseUp pMouseButton put 1 into tWordCounter repeat for each word x in field 1 repeat for each line y in field 2 if x = y then set the textstyle of WORD tWordCounter ...

Go to advanced search