Search found 14 matches

by proza
Tue Aug 07, 2007 4:31 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Little Arrows question (scrollbar)
Replies: 1
Views: 3025

Little Arrows question (scrollbar)

Anyone tried using the little arrows scrollbar? I have one in my stack, but when I tried to play with it, I found that it can never go to the max (end) value. I created a little arrows and have the following script: on mouseUp put the thumbPos of me into field "value" end mouseUp I created a field n...
by proza
Thu Aug 02, 2007 2:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Constants and Globals
Replies: 2
Views: 4082

Thanks.

I found that the best way is to declare the contants as globals on the top of the stack script, then put values to them in the preOpenStack handler. Whenever I need the constants, I just declare them on the top of the script.
by proza
Sat Jul 28, 2007 4:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Constants and Globals
Replies: 2
Views: 4082

Constants and Globals

I would like to know how to declare constants and globals so that they can be used in every single card and every single object in a stack (maybe the sub stacks as well). Thanks! Proza P.S. I tried to put the declaration on the top of the stack script, but only the handlers on the stack script can s...
by proza
Fri Jul 20, 2007 3:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Write to text file
Replies: 6
Views: 8752

Thank you everyone.
I'll try the alternate methods.
by proza
Wed Jul 18, 2007 6:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Write to text file
Replies: 6
Views: 8752

I am sorry that when I typed the above message, there was some typo errors. The & return is before the to file. Today, I made a brand new stack to test again. I made three option menus named "btn1", "btn2" and "btn3". The choices of btn1 are 2,3,4,5. The choices of btn2 are 1,2,3,4,5. The choices of...
by proza
Wed Jul 18, 2007 6:45 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Write to text file
Replies: 6
Views: 8752

Write to text file

I created a stack. There are five option menus and one slider on the stack. I would like to write the values of all the option menus and the slider to a text file, one line per item. I used write label of btn "btnName" to file "fileName" & return to write the value of the option menus, and write thu...
by proza
Wed Jul 18, 2007 6:19 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Sound volume
Replies: 4
Views: 5332

I want to use a slider to let the user to change the sound volume, but it seems that it is impossible.

Thanks!
Proza

P.S. I am using Mac OS 9
by proza
Mon Jul 16, 2007 4:44 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Sound volume
Replies: 4
Views: 5332

Sound volume

I would like to know how can I change the sound volume.

Thanks!
Proza
by proza
Mon Jul 16, 2007 4:31 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array of fields
Replies: 4
Views: 5490

Thanks Klaus.
by proza
Sat Jul 14, 2007 4:25 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Number of slider marks not match with the scale
Replies: 4
Views: 5166

I agree that it is not perfect. When I click on the line, the thumb will not arrive at the next tick.

I think the best way is to let the company to fix this bug.
by proza
Sat Jul 14, 2007 4:19 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array of fields
Replies: 4
Views: 5490

When I click Apply, there is an error complaining about the & sign.
by proza
Fri Jul 13, 2007 7:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Number of slider marks not match with the scale
Replies: 4
Views: 5166

Thanks Mark.

How do you come up with the number 0.909?
If I change the max value to 20 or 25, will this number still works?
I also notice that at the basic property of the slider, there is something called "value format" (near the bottom part). What is this property for?

Proza
by proza
Fri Jul 13, 2007 5:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Number of slider marks not match with the scale
Replies: 4
Views: 5166

Number of slider marks not match with the scale

I have a slider, range from 0 to 10, but the number of marks that under the slider are one less than the highest value. I tried different max value, but the marks are always one less.

Is this done on purpose?

Thanks!
by proza
Fri Jul 13, 2007 4:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array of fields
Replies: 4
Views: 5490

Array of fields

I have a number of fields on a card labelled "f1", "f2", "f3", etc

I would like to ask is it possible to access then like an array?

For example:

repeat with i=1 to whatever
put i into field "f" & i
end repeat

Thanks!