Code: Select all
on selAllLabFlds
-- to select all of the Label Fields
--first make a list with the names of all the objects to select
repeat with i = 1 to the number of fields in the target
put the short name of field i of the target into y
if the short name of field i of the target = "Label Field" then
put " and field " & i & " of the target " after theList
end if
end repeat
delete the first word of theList
do "select " & theList
end selAllLabFlds
Code: Select all
on reGrp
--regroup the background forms & Rectangles of the buttons
--note: if any other backgrounds are used, they need to be handled here
--the label for the form graphics
put the short name of the target & "BGStuff" into bgName
put the short name of the target & "BGRects" into bgRects
put the short name of the target & "BGLabFlds" into bgLabFlds
--get rid of any existing group bgStuff, and it's parts
rmGroup bgName
rmGroup bgRects
rmGroup BGLabFlds
--make a new rect group
selAllRects
create group bgRects
#group
#set the name of last group to bgRects
--and for the labels
selAllLabFlds
create group bgLabFlds
#group
#set the name of last group to bgLabFlds
--now combine them
select group bgRects of the target and group bgLabFlds of the target
#group
#set the name of last group to bgName
create group bgName
set the cantSelect of group bgName to true
end reGrp
Code: Select all
selAll
When I use the
Code: Select all
create group bgName
If I use the group command, grouping is always successful, but the group is not always the
Code: Select all
last group
Code: Select all
it
As I've read the userguide and dictionary, it appears that both of my methods should work, but neither do.
What am I doing wrong, or have I found a bug? (This is the linux alpha test version).
thanks,
hawk