Pressed button image
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-14 5: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
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-14 5:31 AM
OK! Ill try it. Thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-15 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-15 8:55 AM
I do like this and changes only button position :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-16 6:56 AM
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-10-24 1:53 AM
Hello heyo,
Do you use invalidate() function afterwards?
/Osman
ST Software Developer | TouchGFX

- « Previous
-
- 1
- 2
- Next »