ON/OFF Image Button
in
Programming Questions
•
1 year ago
Hi All forum friends,
I'm a beginner on processing and noob ^_^. My question related to this ImageButton examples. How can i make the button become ON or OFF button, what is the programming. Ive seen on many site they using the Boolean function, but i don't understand it. What i want is, when the image button is not pressed its stayed on OFF position and image shows OFF image, when pressed its stayed on ON position and image shows ON image and when pressed it again its on OFF position again and image shows OFF image. This examples ImageButton not as i want, when i release my mouse it also release it.
Please help me,
Thanks.
I'm a beginner on processing and noob ^_^. My question related to this ImageButton examples. How can i make the button become ON or OFF button, what is the programming. Ive seen on many site they using the Boolean function, but i don't understand it. What i want is, when the image button is not pressed its stayed on OFF position and image shows OFF image, when pressed its stayed on ON position and image shows ON image and when pressed it again its on OFF position again and image shows OFF image. This examples ImageButton not as i want, when i release my mouse it also release it.
Please help me,
Thanks.
1