Search found 365 matches

by sritcp
Fri Jun 29, 2012 2:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Message path and accessing variables
Replies: 6
Views: 1046

Message path and accessing variables

I am trying to understand what else travels along with the message. Let's say a button is clicked and the mouseUp message is simply passed on from the button to the card to the stack, where the message is implemented. Let's also say that i) the object script has declared a script-local variable, sOb...
by sritcp
Thu Jun 28, 2012 10:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What is the best way to implement Wait Mode?
Replies: 8
Views: 1120

Re: What is the best way to implement Wait Mode?

Hi Townsend:

It is not just waiting, but waiting while there is no click. So, the routine has to exit when there is a click.
In any case, in the code I have given above, I, too, have used a global variable as timer. It seems to work.

Regards,
Sri.
by sritcp
Thu Jun 28, 2012 9:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What is the best way to implement Wait Mode?
Replies: 8
Views: 1120

Re: What is the best way to implement Wait Mode?

Hi Craig and Jean-Marc: Thank you both for your responses. Craig, your code If the noClick of this stack = "" then send "waitMode" to this stack in blinkTime seconds checks the condition of no click and then waits, say, 30 seconds before sending the waitMode message to the stack; what happens if the...
by sritcp
Thu Jun 28, 2012 6:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: What is the best way to implement Wait Mode?
Replies: 8
Views: 1120

What is the best way to implement Wait Mode?

I am writing a children's app. When the child clicks (touches) one of the images on the screen (i.e., the transparent buttons on the images), things happen. When there is no activity from the child for a time, the program prompts by blinking each of the clickable objects in sequence. The way I have ...
by sritcp
Tue Jun 26, 2012 10:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: iOS app: How to child-proof preference setting?
Replies: 4
Views: 745

Re: iOS app: How to child-proof preference setting?

Yes, it should work. Thanks for the explanation.

I am trying to keep it as simple as I can (both programming- and user experience-wise), since i) the need is not security, and ii) the adult users (teacher/EI therapist) are often computer novices.

Thanks,
Sri.
by sritcp
Tue Jun 26, 2012 4:31 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to set the font size and line spacing of menu items?
Replies: 4
Views: 1486

Re: How to set the font size and line spacing of menu items?

Unfortunately, increasing the textSize of the button (in the inspector or by script) increases only the label font size; the menuItems remain the same size.

Regards,
Sri.
by sritcp
Tue Jun 26, 2012 4:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: iOS app: How to child-proof preference setting?
Replies: 4
Views: 745

Re: iOS app: How to child-proof preference setting?

No, the children can't read. Yes, multiple choice option button is out. I was thinking of a click at the top right corner to reveal a text field, into which the adult will type in an upper case letter (requires holding down the shift key, so a toddler won't do this accidentally) which would reveal t...
by sritcp
Tue Jun 26, 2012 2:15 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to set the font size and line spacing of menu items?
Replies: 4
Views: 1486

Re: How to set the font size and line spacing of menu items?

...... You can certainly set all text properties in the actual menuItem that is finally displayed. ...... How exactly would I do that? It is not very clear from your post. Will a piece of code like set the textSize of menuItem 1 of button "pullDownMenu" to 18 work? (the above code doesn't work; I g...
by sritcp
Sun Jun 24, 2012 10:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to set the font size and line spacing of menu items?
Replies: 4
Views: 1486

How to set the font size and line spacing of menu items?

Is it even possible to set the text size of menu items of a pulldown menu (which is a button)? Also, the vertical space between the menu items? For mobile apps, the menu items need to be large enough and sufficiently separated from neighbor items to be tap-selected without error. I couldn't find a w...
by sritcp
Sat Jun 23, 2012 10:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: iOS app: How to child-proof preference setting?
Replies: 4
Views: 745

iOS app: How to child-proof preference setting?

I am developing an iPad app for children. (It is a language learning app for ESL children as well as children with hearing loss who are learning to listen and speak). The app consists of cards. Each card is an interactive exercise. We want the child to stay on the current card. Only the adult (paren...
by sritcp
Sat Jun 23, 2012 6:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How do I code "If this is a button, then ..."?
Replies: 11
Views: 1248

Re: How do I code "If this is a button, then ..."?

sturgis wrote:......
put word 1 of (target) -- force target to be completely evaluated first
And it works! And, I learned something today!

Thanks,
Sri.
by sritcp
Sat Jun 23, 2012 6:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to know when my audioClip has finished playing?
Replies: 2
Views: 376

How to know when my audioClip has finished playing?

When a player is used, it sends a message playerFinished when it is done playing. But, when I play an imported audioClip, using play audioClip "clipName" how would I know it is finished? (actually, I am trying to make an image blink as long as the audioclip is playing). Thanks for any help, Sri.
by sritcp
Sat Jun 23, 2012 5:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How do I code "If this is a button, then ..."?
Replies: 11
Views: 1248

Re: How do I code "If this is a button, then ..."?

............. on mouseUp put target end mouseUp It works exactly as described........... Yes, but not if you try put word 1 of target I guess "word 1 of" doesn't work with target but does with the target . (By the way, I tried only with a button; so the "lockedText" explanation, while valid, didn't...
by sritcp
Sat Jun 23, 2012 3:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How do I code "If this is a button, then ..."?
Replies: 11
Views: 1248

Re: How do I code "If this is a button, then ..."?

I was referring to the following, found in the Comments section under target keyword in the dictionary If the target object is not a field, the target keyword reports the name of the object, just like the target function. I found that it does not; target keyword reports nothing; the message box is b...

Go to advanced search