2022-10-12 11:50 AM
Hello,
Is it possible to use bigger pressed button image than released button image? How can I achieve it?
Solved! Go to Solution.
2022-10-14 05:10 AM
Yes that's normal, so you'll need to play with these functions now :
if (button1.getPressedState() == true) // to know if we pressed the button
{
container1.setWidth(container1NewWidth); // change the container width
container1.setHeight(container1NewHeight); // change the container height
button1.setX(button1NewXPosition); // change the button X position to display the area you want to show
button1.setY(button1NewYPosition); // change the button Y position to display the area you want to show
container1.invalidate();
button1.invalidate();
}
/Osman
2022-10-14 05:31 AM
OK! Ill try it. Thank you again.
2022-10-15 07:50 AM
Hello @Osman SOYKURT . I created virtual function which calls when button is pressed and then changes containers height but nothing happens and I am sure that it fulfils function : container1.setHeight(container1NewHeight); Do you have any suggestions? Thank you.
2022-10-15 08:55 AM
I do like this and changes only button position :
2022-10-16 06:56 AM
.
2022-10-24 01:53 AM
Hello heyo,
Do you use invalidate() function afterwards?
/Osman