Sign in to follow this  
Followers 0
name15

re-size GUICtrlCreatePic() as size picture

5 posts in this topic

How to re-size GUICtrlCreatePic () function to become the same size as the image

And become suitable for the size of the GUI without changing the form of image

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Use GUICtrlSetPos() to change position and/or size of a control

Also (from help file for GUICtrlCreatePic() )

If you want to have a picture having the same size as the file content just use width=height=0

Edited by whim

Share this post


Link to post
Share on other sites

Use GUICtrlSetPos() to change position and/or size of a control

Also (from help file for GUICtrlCreatePic() )

It does say that but it should not. It should say

"Use 0 for both the width and the height parameters passed to GuiCtrlCreatePIc."

(If you were to interpret that statement like this

$Width = $Height = 0

and then use $Width and $Height as parametrs for the Pic then the picture will probably not appear.

$Width will be True if $Height was zero or an empty string or a string which began with digits which equate to '0', otherwise $Width will be False

$Height will be 0. If you then use the results for the parameters and $Width is True you will not get what you expected.

)


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

pz example

Share this post


Link to post
Share on other sites

pz example

?

Did you try with height and width as zero?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  
Followers 0