add/move/put into to group
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
add/move/put into to group
is it possible to move an existing field/button into a new or existing group by code?
The IDE allows you to create a new group for an existing control. But you can't do it in code... as far as I see.
thanks
The IDE allows you to create a new group for an existing control. But you can't do it in code... as far as I see.
thanks
Re: add/move/put into to group
Hi rinzwind ,
Yes
Something like that :
Best regards
Jean-Marc
Yes

Something like that :
Code: Select all
on mouseup
put the id of btn "MyBtnForCopy" into tBtnForCopyID
copy btn id tBtnForCopyID to group "myGroup"
delete btn id tBtnForCopyID
end mouseUp
Jean-Marc
https://alternatic.ch
Re: add/move/put into to group
HI rinzwind,
check this working script from a little test I just made:
Please note the little difference between "start" and "stop".
The first requires GROUP the latter BACKGROUND!?
Don't ask, no idea
Best
Klaus
check this working script from a little test I just made:
Code: Select all
on mouseUp
lock screen
select fld 1
cut
start editing grp "g1"
paste
stop editing bg "g1"
unlock screen
end mouseUp
The first requires GROUP the latter BACKGROUND!?
Don't ask, no idea

Best
Klaus
Re: add/move/put into to group
Aah copy and delete. Not as nice as move but its a good workarround. Thanks!
Re: add/move/put into to group
What about this :
Code: Select all
on mouseup
put the loc of group "myGroup" into tLocDest
put the id of btn "MyBtnForCopy" into tBtnForCopyID
move btn id tBtnForCopyID to tLocDest
copy btn id tBtnForCopyID to group "myGroup"
delete btn id tBtnForCopyID
end mouseUp
https://alternatic.ch
Re: add/move/put into to group
My solution come as near to "moving" as possiblerinzwind wrote:Aah copy and delete. Not as nice as move but its a good workarround. Thanks!

No deletion neccessary.