I've come across a very odd one today.
I added an image for company logos to be displayed. But then I find some look weird in the block, as people do a lot of strange things with logos.
So I decided to add a radio button next to it that allows the user to change the visible image using the Stretch property.
In the click event of the radio button I put in:
Where the "weirdness" begins is, if I have a logo on the screen, and I push the first radio button ("Natural") then it sets the property to "0 - Clip" (default), but I have defaulted the image to 1 initially - Isometric.
What is odd is, if I start at the bottom, and click the lowest radio button first, the image appearance changes to Stretch (as it should). Then I click the 2nd radio button, and it changes to Isometric, as it should. Then I click the 1st radio button and it presents the image as "natural" (clipped if too big to fit in the object). So, that's all fine. BUT now if I click bottom radio button again, it's "sticks" on "Clipped". If I start the order of this sequence from first to last then once it gets set to "clipped" it never moves off it again...
Any idea what could be causing this?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
I added an image for company logos to be displayed. But then I find some look weird in the block, as people do a lot of strange things with logos.
So I decided to add a radio button next to it that allows the user to change the visible image using the Stretch property.
In the click event of the radio button I put in:
Code:
DO CASE
CASE This.Value = 1
This.Parent.imgCompanyLogo.Stretch = 0
CASE This.Value = 2
This.Parent.imgCompanyLogo.Stretch = 1
CASE This.Value = 3
This.Parent.imgCompanyLogo.Stretch = 2
ENDCASE
Where the "weirdness" begins is, if I have a logo on the screen, and I push the first radio button ("Natural") then it sets the property to "0 - Clip" (default), but I have defaulted the image to 1 initially - Isometric.
What is odd is, if I start at the bottom, and click the lowest radio button first, the image appearance changes to Stretch (as it should). Then I click the 2nd radio button, and it changes to Isometric, as it should. Then I click the 1st radio button and it presents the image as "natural" (clipped if too big to fit in the object). So, that's all fine. BUT now if I click bottom radio button again, it's "sticks" on "Clipped". If I start the order of this sequence from first to last then once it gets set to "clipped" it never moves off it again...
Any idea what could be causing this?
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."