name15 Posted January 30, 2010 Share Posted January 30, 2010 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 Link to comment Share on other sites More sharing options...
whim Posted January 30, 2010 Share Posted January 30, 2010 (edited) Use GUICtrlSetPos() to change position and/or size of a controlAlso (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 January 30, 2010 by whim Link to comment Share on other sites More sharing options...
martin Posted January 30, 2010 Share Posted January 30, 2010 Use GUICtrlSetPos() to change position and/or size of a controlAlso (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 = 0and 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. Link to comment Share on other sites More sharing options...
name15 Posted January 30, 2010 Author Share Posted January 30, 2010 pz example Link to comment Share on other sites More sharing options...
martin Posted January 30, 2010 Share Posted January 30, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now