Solved TD-17229: Multiple image bitmaps : hover/disabled...

Report TD 5.x and 6.x bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3321
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-17229: Multiple image bitmaps : hover/disabled...

Post by Dave Rabelink » 10 Mar 2017, 13:52

TD 6 and up (incl TD 70 UPD1)

When using an image on a button which is too large to be displayed, the image is resized to fit the button.
See image 1:

MultiImageresizeIssue_1.png

When the image style of the button is Multiple (so normal, disabled and hover states are separately defined in the bitmap) these issues occur:

1) Disable/Resize issue
When not clicked before on a button and disable it, the disabled state image is not resized.
See image 2:


MultiImageresizeIssue_2.png
Now, if you click on the button and after that disable it, the image is correctly resized.
See image 3:

MultiImageresizeIssue_3.png

2) Hover issue
When hovering over a button where the image is not fitting (and is correctly resized to fit in normal state) the image is not resized.
Seems the animation from normal to hover-over is not taking the resize into account.
This looks very weird. The image suddenly seems to get zoomed in.
So when the resolution/dpi changes of the screen it can be that images which do fit in setup A do not in setup B.
That means that these users will get this zooming feature which is not wanted.
See image 4 (the mouse pointer is not part of the screenshot, but the upper button is hovered over):

MultiImageresizeIssue_4.png

In both cases 1) and 2) every state (normal, disabled and hover) must take image resize to fit into account to keep consistent look&feel.

PS
I also tested option buttons. The same issues are also present on them.
(where the checked, disabled and hover states are not resized)

MultiImageButtonResizeIssue.zip
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot], aareon_orleans and 1 guest