Search found 107 matches

by xApple
Sun Jul 22, 2007 1:40 am
Forum: Talking LiveCode
Topic: Status of keys on keyboard
Replies: 7
Views: 6421

Yeah well if there really is no way of knowing the status of those toggle-style keys, file it as a bug. I guess only the capslock is supported because all of the other ones have long gone on the macintosh keyboards or never existed. Thus, trying to implement them in your program will render it un-mu...
by xApple
Sat Jul 21, 2007 10:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Changing background group behavior on one card
Replies: 3
Views: 4461

"if statements" become increasingly complex. I'm sure you will handle the small increase in complexity ;) Note that it's better to use a switch control structure in this case. on mouseUp switch the name of this card case "SpecialBehaviour1" -- behviour for a special card break case "SpecialBehaviou...
by xApple
Thu Jul 19, 2007 11:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Sound volume
Replies: 4
Views: 4423

You can use the slider to do that by reading its "thumbPosition" propriety.
by xApple
Thu Jul 19, 2007 11:55 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Write to text file
Replies: 6
Views: 7340

The need to save the labels of your buttons can be avoided all together by placing your user interfaces in a substack of your mainstack. Most of the time, one must manualy saves the user's changes to a file in the preference directory like you are doing only because standalones cannot be modified. W...
by xApple
Thu Jul 19, 2007 11:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Quicken Date Behavior
Replies: 5
Views: 5165

That still makes you duplicate lots of code. Every one of your fields must have the switch pKey part. What if you want to change the key that calls ModifyDate() ? You would have to correct the "case M" line in *every* field. A more elegant solution is to trap the KeyDown message in the card and then...
by xApple
Mon Jul 16, 2007 6:14 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Message Box as a substack of my mainstack???
Replies: 2
Views: 3743

It might not be you... this last update of rev seams very buggy apparently...
To delete the stack just type:

Code: Select all

delete stack "Message Box"
Or get its id if it doens't work like that.
by xApple
Mon Jul 16, 2007 5:48 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Sound volume
Replies: 4
Views: 4423

Why do you want to change the sound volume ? It's something you should let the user change if he wants to. I always hate applications which change my sound volume inadvertently. If you are using OS X it's easy just type: do "set volume output volume 80" as applescript If you're on Windows.. well... ...
by xApple
Mon Jul 16, 2007 1:56 am
Forum: Multimedia
Topic: Screen Size/Monitor Depth
Replies: 4
Views: 8114

OK yes in that particular case it is legitimate... so long as you warn the user and give him a choice... there is however no way of doing it on a PC...

Concerning those 30 pixels try this command:

Code: Select all

set the rect of this stack to "0,0,1024,768"
hide menubar
by xApple
Sun Jul 15, 2007 5:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: newbie question; write to file, read from file?
Replies: 12
Views: 9431

i don't want to store preferences, i want to store data. what do i care about preferences at this point of my learning? It's the same thing: a preference is a piece of data. But as I said you'd better switch to the sub-stack method, since as your project will get bigger you might have more fields/d...
by xApple
Sun Jul 15, 2007 5:10 pm
Forum: Talking LiveCode
Topic: Is it me or do other people find Revolution generally buggy?
Replies: 13
Views: 10423

Instead of answer "OK" it might be better to use the form put "OK". This places the value in message box and prevents halting your execution. And for more complex scripts you can even use fields. Though sometimes it can be really useful to follow your scripts step by step.
by xApple
Sun Jul 15, 2007 5:09 pm
Forum: Multimedia
Topic: Screen Size/Monitor Depth
Replies: 4
Views: 8114

I agree with Klaus, if your application must change the resolution, then it's your interface that isn't thought out correctly, not the user's resolution settings. It's kinda against the human interface design guidelines. Why would you want to intrude on the user's choice like that, why do you need t...
by xApple
Sun Jul 15, 2007 5:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array question
Replies: 8
Views: 6635

Code: Select all

function getKeyOfValue theArray, theValue
  repeat for each line currentKey in the keys of theArray 
    if theArray[currentKey] = theValue then return currentKey 
  end repeat 
end getKeyOfValue
by xApple
Fri Jul 13, 2007 7:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array of fields
Replies: 4
Views: 4524

Yes absolutly, your code seams to be functional. Is it not ?
To add a layer of abstraction to commands you write in trascript the merge() and format() command are intresting. You can find a few exemples here:
http://forums.runrev.com/phpBB2/viewtopic.php?t=487
by xApple
Thu Jul 12, 2007 11:03 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: useSystemDate ?
Replies: 8
Views: 6414

The only suggestions I have is to vote for the corresponding bugs on the rev quality center. They might change something one day. Here are the ones I found: http://quality.runrev.com/qacenter/show_bug.cgi?id=4636 http://quality.runrev.com/qacenter/show_bug.cgi?id=3309 http://quality.runrev.com/qacen...
by xApple
Thu Jul 12, 2007 7:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: useSystemDate ?
Replies: 8
Views: 6414

The country flag in the menu-bar is just the keyboard layout settings, it shouldn't affect anything else. All the international settings are made in the system preference pane of the same name.

Go to advanced search