image 1 problem
Posted: Tue Mar 25, 2014 1:17 pm
I have 1 stack with 3 substacks. On the main stack I have 1 card with 1 image and some buttons on that card.
This image can change by selecting it from file. This is done in one of the substacks and put into the main stack with right size and position.
In the scripts I call it: image 1
But when I click on a button in the substack, which has nothing to do with the image 1, I get a execution error "can't find handler", which is pointing to my image 1 in the main stack.
I don't understand this. Somehow the script is going back to the scripts in the main stack, but I don't see the reason why this happens.
Here is how the image is selected and put on the card of the main stack (navigator)
on mouseUp
global PadLogo
delete Image 1
answer file empty
import paint from file it
set the height of image 1 to 80
set the width of image 1 to 120
set the location of image 1 to 438,54
put it into PadLogo
## answer Padlogo
send "logo" of stack "Navigator"
end mouseUp
And here is the script which is triggered when I click on the button "new record" on substack "Portals" , which has nothing to do with image 1 in the main stack "Navigator".
This script opens a stack "Input" and goes to the selected card.
on mouseUp
If field "WhichButton" = 1 then
answer "Button Relaties is not yet operational"
else
If field "WhichButton" = 2 then
send "goToCardNewOrg" of stack "Input"
else
If field "WhichButton" = 3 then
send "goToCardNewPerson" of stack "Input"
end if
end if
end if
end mouseUp
Thanks
Rob van der Sloot
This image can change by selecting it from file. This is done in one of the substacks and put into the main stack with right size and position.
In the scripts I call it: image 1
But when I click on a button in the substack, which has nothing to do with the image 1, I get a execution error "can't find handler", which is pointing to my image 1 in the main stack.
I don't understand this. Somehow the script is going back to the scripts in the main stack, but I don't see the reason why this happens.
Here is how the image is selected and put on the card of the main stack (navigator)
on mouseUp
global PadLogo
delete Image 1
answer file empty
import paint from file it
set the height of image 1 to 80
set the width of image 1 to 120
set the location of image 1 to 438,54
put it into PadLogo
## answer Padlogo
send "logo" of stack "Navigator"
end mouseUp
And here is the script which is triggered when I click on the button "new record" on substack "Portals" , which has nothing to do with image 1 in the main stack "Navigator".
This script opens a stack "Input" and goes to the selected card.
on mouseUp
If field "WhichButton" = 1 then
answer "Button Relaties is not yet operational"
else
If field "WhichButton" = 2 then
send "goToCardNewOrg" of stack "Input"
else
If field "WhichButton" = 3 then
send "goToCardNewPerson" of stack "Input"
end if
end if
end if
end mouseUp
Thanks
Rob van der Sloot