Page 2 of 3
Posted: Sun Jun 07, 2009 12:37 pm
by bn
Bidge,
in the checkboxes whenever a user hilites on this will add the selection to the field "userChoices"( look at the script of the checkboxes), so that is automatically the sequence of events. And it is a lot easier then how I did it before....
However the way it is now it does not delete an entry in that list if a user decides otherwise. Nor does it check for multiple checking/unchecking. It will dutifully adds a file two or more times and appends that track as as often as the user clicked.
On the other side there is a reset button now.
regards
Bernd
Posted: Sun Jun 07, 2009 12:41 pm
by bn
Hi Klaus,
this is just to alert you that a certain "major" grabbed a sub-domain name in on-rev.com. He says he is "coming soon". You might want to take legal action before he arrives...
regards
Bernd
Posted: Sun Jun 07, 2009 1:35 pm
by bidgeeman
Bernd and Klaus. Thank you again!!! Bernd, I was considering using fields and will study your stack and scripts in depth. Time to hit the sack down under

Many thanks again for your help. I am learning a lot from this great forum
Cheers
Bidge
Posted: Mon Jun 08, 2009 6:15 am
by bidgeeman
Is there a way of preventing a checkbox from being deselected once it has been selected?
Cheers
Bidge
Posted: Mon Jun 08, 2009 10:21 am
by bn
Bidge,
no, not without some scripting. But the checkbox is for selecting and deselecting. I would not fiddle around with this. It is the 'normal' behavior a user expects. What you could do is to delete the line in your field when the user deselects the checkbox. You know from the checkbox (track XX) which line might have been added. You could then get that original Line and if it is in the field of the selected tracks you could remove that line from the selected tracks.
Code: Select all
on mouseUp
if the hilite of me then
put last word of the short name of me into myLine
put line myLine of field "AudioNamesAndPathes" into line (the number of lines of field "userChoices")+1 of field "userChoices"
else ## not hilited = the user deselected it
put last word of the short name of me into myLine
put line myLine of field "AudioNamesAndPathes" into myTest
filter field "userChoices" without myTest
end if
end mouseUp
regards
Bernd
Posted: Mon Jun 08, 2009 10:30 am
by bidgeeman
Hi Bernd.
Thanks for the hand! I'm starting to understand how you get things to function. It's quite hard to understand when your starting off. You are a fantastic help thanks mate
Cheers
Bidge
Posted: Mon Jun 08, 2009 11:23 am
by bn
Bidge,
have a look at Scott Rossi's site (Tactile Media)
http://www.tactilemedia.com/
in the software section -> tutorials
there is a stack 'Get in Line'
it shows reordering of lines of a text field and even deleting lines by dragging them out of the field.
It would be a good option to let the user see his selection / reorder/delete them.
regards
Bernd
Posted: Mon Jun 08, 2009 11:29 am
by bidgeeman
Thanks Bernd! I'll check it out now
Cheers
Bidge
Posted: Mon Jun 08, 2009 12:41 pm
by bidgeeman
Wow. That sack is amazing and works with such a small code? Very clever indeed!
Thanks for the link Bernd
Bidge
Posted: Mon Jun 08, 2009 1:34 pm
by Klaus
Hi Bidge,
bidgeeman wrote:... works with such a small code?
Small code????? You DID check the card script, did you?

Posted: Mon Jun 08, 2009 1:47 pm
by bidgeeman
Aaaak!
Thanks for pointing that one out Klaus
Cheers
Bidge
Posted: Mon Jun 08, 2009 5:43 pm
by Klaus
Posted: Sat Jun 13, 2009 9:44 am
by bidgeeman
Hi Bernd.
I struck an error with that audio mixer stack you did. It's puzzling. I made a few more new buttons and for some reason every time I click button 10 an error message pops up. See below:
Code: Select all
Error message.
button "Track10": execution error at line 4 (Chunk: error in chunk expression), char 7
This is the line it's having trouble with:
put line myLine of field "AudioNamesAndPathes" into line (the number of lines of field "userChoices")+1 of field "userChoices"
?
Bidge
Posted: Sat Jun 13, 2009 10:13 am
by bn
Bidge,
no idea what is going on. Could you put your version up for download. I will have a look at it.
regards
Bernd
Posted: Sat Jun 13, 2009 10:59 am
by bidgeeman
Hi Bernd.
You beat me to the post. I was just about to write an explanation. I found out the problem. I had multiple versions of the same button number on a second stack. Once I deleted the cloned buttons everything worked fine.
It had me totally puzzled there for a minute
Cheers
Bidge