Search found 457 matches

by magice
Tue Mar 03, 2015 6:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Validate number within a range
Replies: 9
Views: 5178

Re: Validate number within a range

jacque wrote:Yeah, I wasn't thinking about exclusionary case. And I wasn't driving either, but I was pre-coffee.
That is usually my excuse, but since I am now 2 weeks caffeine free, my new excuse will have to be my dyslexia. :D
by magice
Tue Mar 03, 2015 5:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Validate number within a range
Replies: 9
Views: 5178

Re: Validate number within a range

if myNumber < 8700 or myNumber > 8999 This will match all numbers. It needs to be "and" rather than "or". Look again. Actually this is correct, it is asking if it is out of the range rather than if it is within the range. I usually work this way so I can handle the "out of range" situation first an...
by magice
Mon Mar 02, 2015 11:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Validate number within a range
Replies: 9
Views: 5178

Re: Validate number within a range

if myNumber < 8700 or myNumber > 8999
by magice
Mon Mar 02, 2015 1:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Reset Script for Clock Timer
Replies: 2
Views: 2446

Re: Reset Script for Clock Timer

Here's a hint. Look up pendingMessages in the dictionary. Also, if the reset script is in another button, make the variables global and declare them in both button scripts.
by magice
Sun Mar 01, 2015 12:09 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 5140

Re: resizeStack and resizeControl

FredBeck wrote: magice, I tried this of course, but it's exactly the same. Does it work on your side?

Fred.
Yes this works for me.
by magice
Sat Feb 28, 2015 8:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: resizeStack and resizeControl
Replies: 8
Views: 5140

Re: resizeStack and resizeControl

This is why I don't ever use the geometry. It makes me feel stupid every time I try to understand it. (kind of like women) If you disable the geometry of both the group columnBrowser and the button horizontalDivider and then put this in the stack script I think it will give you the effect you are af...
by magice
Fri Feb 27, 2015 11:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launching the camera app windows 8.1
Replies: 6
Views: 5038

Re: Launching the camera app windows 8.1

I'm not sure if you know this, but your example shows the file path to use back slashes like windows. LiveCode uses forward slashes.
by magice
Fri Feb 27, 2015 5:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat while mouseDown / touchStart?
Replies: 7
Views: 5849

Re: Repeat while mouseDown / touchStart?

It is doing exactly what it is being told to do. It is creating a message to be sent every "barSpeed" milliseconds. However because the repeat loop is executing, those messages can''t. So when the repeat loop finishes they all get executed at once. Actually the best way to do this, is to eliminate t...
by magice
Fri Feb 27, 2015 3:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: dynamically setting standalone setttings
Replies: 3
Views: 2618

Re: dynamically setting standalone setttings

Thank you Klaus. I believe I can work with that.
by magice
Fri Feb 27, 2015 2:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: dynamically setting standalone setttings
Replies: 3
Views: 2618

dynamically setting standalone setttings

This is a long shot, but is there a way to set standalone settings in a dynamically created stack? I find myself creating a certain style of stack repetitively. So, like all repetitive tasks I decided to create an app to automate the process. The app works perfectly in that all I have to do is open ...
by magice
Wed Feb 25, 2015 7:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Decimal truncation
Replies: 16
Views: 10693

Re: Decimal truncation

maybe throw in a line like this?

Code: Select all

put temp - (temp mod .01) into temp
by magice
Wed Feb 25, 2015 4:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Select a pull down menu item from another handler...
Replies: 12
Views: 8976

Re: Select a pull down menu item from another handler...

Hi TJ, yes, mis-using a pulldown menu button to change its label IS in fact a violation of any thinkable HIG :D But ou can also "trigger" a menu item if you only have the NUMBER of that item: ... set the menuhistory of btn "your pull-down here" to 2 ... Will cause the same as if the user had select...
by magice
Wed Feb 25, 2015 4:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Select a pull down menu item from another handler...
Replies: 12
Views: 8976

Re: Select a pull down menu item from another handler...

Thank you for all the replies, sorry if I did a poor job of explaining my issue. I was looking for something like what magice posted. send "menuPick myChoice" to btn "myDropDownBtn" Basically I want to simulate a choice being made on the drop down menu. As Klaus pointed out it does not seem to have...
by magice
Wed Feb 25, 2015 3:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Select a pull down menu item from another handler...
Replies: 12
Views: 8976

Re: Select a pull down menu item from another handler...

Klaus wrote: Yep, that was what I also thought first, but the TS is talking about PULL-DOWN menu buttons, which do not have a (dynamic) label like e.g. an option-button.
Yes, I see what you mean. So, he must want to simulate the choice.
by magice
Wed Feb 25, 2015 3:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Select a pull down menu item from another handler...
Replies: 12
Views: 8976

Re: Select a pull down menu item from another handler...

If you just want to change the displayed choice of the dropdown, you can do it by changing the "label". If you want to simulate the choice of one of the items, then try this:

Code: Select all

send "menuPick myChoice" to btn "myDropDownBtn" 

Go to advanced search