Coxie

FTView SE VBA Image Change

3 posts in this topic

Hi, I am trying to change an image on a screen at runtime based on a user selection.

            With Me.FindElement(strObject)
                .Image = button
                .Width = 50
                .Height = 50
                .Top = 82
            End With

This does not work, and i can see that .Image is not an option for image, yet it shows on the property panel.

StrObject is the image object that needs to be changed

The variable button is a string that is the image title.

Is there any way to do this? Any help would be appreciated.

 

Thanks

Coxie

Share this post


Link to post
Share on other sites

You could nest a number of objects, each with animation visibility a function of the user selection.  Group them together in same location.  That is what you want, right?  Based on user selection to display a certain image?  Each object would be linked to that visibility tag with an expression.

Share this post


Link to post
Share on other sites

Thanks for the reply,

I did think about this approach, but it wouldn't be practical for this application. I could potentially have 20-30 images depending on the application, and different for each option.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now