Changing button-icons via script?
Posted: Sun May 15, 2011 6:32 pm
Hello,
I got a little script-problem. There are 2 buttons "Man" and "Woman"... if you click on one, it will be highlighted and the icons of the other button shall be changed.
Script of the first button (named: "Button_mann_0") :
The id´s refer to pictures on an other substack, where I imported the pictures as controls. If i push the button, following error appears:
Thanks for help
I got a little script-problem. There are 2 buttons "Man" and "Woman"... if you click on one, it will be highlighted and the icons of the other button shall be changed.
Script of the first button (named: "Button_mann_0") :
Code: Select all
global g_neueperson_sex
on mouseUp
if g_neueperson_sex<>"mann" then //checks if its allready activated
put "mann" into g_neueperson_sex
set the icon of the btn "Button_frau" to ID 10012
set the hovericon of btn "Button_frau" to ID 10013
set the armedicon of btn "Button_frau" to ID 10012
end if
end mouseUp
Maybe important: The buttons are on a seperate substack which is opened via filepath during execution. (Want to be able to save this substack later in a file)button "Button_mann_0": compilation error at line 6 (if: not a command) near "10012", char 48
Thanks for help
