I've got a card called Controls which contains a combo box control with some code attached to on mouse enter handler. The code executes perfectly on this card just how I expect it. The ID for that button is 1035.
On another card, I've got a data grid and I have altered the row template to suit my input requirements. One of buttons on the data grid row contains a combobox which I've named the same as the one on the Controls stack. I would like to attach the behaviour of the Combobox in Controls card to this so I've got the following script on the object in the data grid.
Code: Select all
global gConnID,gList
on mouseEnter
set the behavior of btn id 1104 to THE LONG ID OF btn id 1035 of stack "Controls"
end mouseEnter
Chunk: no such object
Object cb_chargerate
Line set the behavior of btn id 1103 to THE LONG ID OF btn id 1035 of stack "Controls"
Hint 1103
I'm assuming the id's of objects change when they are in the data grid as they're so many instances of the objects per row, but I've tried the message watcher and can't seem to figure out what the button id of the source is in browse mode. Can someone point me in the right direction please?
Thanks
Jalz