Jump to content

Search the Community

Showing results for tags 'guictrlsetimage()'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. How do you first clear an image without resizing the control (as a function)? I'm not sure if this is a bug but if you compare clearing as a function vs as a global? it works differently? I need to clear the image first as sometimes no image file is found #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ColorConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $hMain = GUICreate("Test", -1, 300, -1, -1, BitOr($WS_SIZEBOX, $WS_SYSMENU, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX), $WS_EX_ACCEPTFILES) $btn = GUICtrlCreateButton("Change", 120, 80, 75, 20, $BS_DEFPUSHBUTTON) $picUser = GUICtrlCreatePic("", 270, 10, 100, 80) $sImage = "C:\Windows\Web\Screen\img100.jpg" GUICtrlSetImage($picUser,""); - can be left alone without resizing control $sImage = "C:\Windows\Web\Screen\img104.jpg" GUICtrlSetImage($picUser, $sImage) GUISetState(@SW_SHOW) While True $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $btn ButtonPressed("C:\Windows\Web\Screen\img102.jpg") EndSelect WEnd Func ButtonPressed($imagelocation) ;GUICtrlSetImage($picUser,""); - don't comment out - it will clear picture but resize control GUICtrlSetImage($picUser, $imagelocation) EndFunc
×
×
  • Create New...