Jump to content
Sign in to follow this  
qwert

Need help with simplest use of GuiCtrlCreatePic

Recommended Posts

I finally have a simple use for what I thought was the default case for GuiCtrlCreatePic.

"To set the picture control to the same size as the file content set width and height to 0."

My GUI is 600 x 800 and the JPG on disk is 800 x 1200. So I'm expecting the image to completely fill the GUI and then some.

But the image displays at about 150 x 150, no matter what I try (such as using SetImage after creating the Pic).

There was a thread a few years ago that seems to cover this use: link  Has the "0, 0" specification stopped working?  Does the image have to be smaller than the GUI?

Any help will be appreciated.

 

 

Share this post


Link to post
Share on other sites

You're right. This looks like a bug

I just tested using a Pic with the "0, 0" specification , a 1600x1200 jpg, and a 800x600 gui, and I got this :
- with AutoIt v.3.3.12.0 , the image is displayed real size (bigger than the gui)
- with AutoIt v.3.3.14.5 , I get a 150x150 square, and dimensions <> 0 are needed to display a different size

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...