Repeating a hilite command over several cards
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Bidge,
did you sort the buttons after loading them into a button list like
suppose the name ends with a space and than a number, and the names are in a comma dellimited list:
I tried to put buttons in a scrolling group and it works.
regards
bernd
did you sort the buttons after loading them into a button list like
suppose the name ends with a space and than a number, and the names are in a comma dellimited list:
Code: Select all
sort items numeric of tButtonListCard by last word of each
regards
bernd
Hi Bernd.
Yes...I had the buttons sorted perfectly. All of a sudden the sorting order went out the window??? I had changed nothing at all, just imported a library. So I closed down Runrev and opened an older version I had saved and it worked perfectly?? Really strange eh?
Oh well. Things are working well again now... (crossed fingers
Cheers
Bidge
Yes...I had the buttons sorted perfectly. All of a sudden the sorting order went out the window??? I had changed nothing at all, just imported a library. So I closed down Runrev and opened an older version I had saved and it worked perfectly?? Really strange eh?
Oh well. Things are working well again now... (crossed fingers

Cheers
Bidge
Bidge,
the stack you sent me had an old button script of the chebox buttons "track XX" It did not clear a selection if the user unselected the checkbox.
here is the script that did just that:
I dont remember when that got lost.
regards
Bernd
the stack you sent me had an old button script of the chebox buttons "track XX" It did not clear a selection if the user unselected the checkbox.
here is the script that did just that:
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
Hello Bernd.
I am learning a lot thanks to you.
I did a modification of the checkbox behaviour. When a checkbox is deselected, all of the checkboxes will deselect, making you reselect a new group rather than deleting unwanted lines from the text field. It works well.
What do you think?
Cheers
Bidge
I am learning a lot thanks to you.
I did a modification of the checkbox behaviour. When a checkbox is deselected, all of the checkboxes will deselect, making you reselect a new group rather than deleting unwanted lines from the text field. It works well.
Code: Select all
end repeat on mouseUp
if the hilite of me is true 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
put empty into fld "userChoices"
end if
if the hilite of me is false then
repeat with k = 1 to the number of cards
repeat with i = 1 to the number of buttons of card k
if the short name of button i of card k contains "Track" then
set the hilite of button i of card k to false
end if
end repeat
end if
end mouseUp
Cheers
Bidge