Modify ↓
Opened 11 years ago
Closed 7 years ago
#2962 closed Bug (Fixed)
GUICtrlSetImage resizes Pic control with $SS_SUNKEN style
| Reported by: | MrCreatoR | Owned by: | Jos |
|---|---|---|---|
| Milestone: | 3.3.15.1 | Component: | AutoIt |
| Version: | 3.3.12.0 | Severity: | None |
| Keywords: | Cc: |
Description
Reproducing example:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$hGUI = GUICreate("Test Script", 300, 200)
$sImage = @AutoItExe & "\..\Examples\GUI\mslogo.jpg"
$iPic = GUICtrlCreatePic($sImage, 20, 40, 100, 30, $SS_SUNKEN)
;$iPic = GUICtrlCreatePic($sImage, 20, 40, 100, 30, -1, $WS_EX_DLGMODALFRAME)
GUISetState(@SW_SHOW, $hGUI)
For $i = 1 To 10
GUICtrlSetImage($iPic, $sImage)
Sleep(100)
Next
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
the size of the pic control (with $SS_SUNKEN style or $WS_EX_DLGMODALFRAME exstyle or some other styles) changes when we use GUICtrlSetImage.
If we add $SS_CENTERIMAGE style then this will solve the issue, but i think it shouldn't happen.
Attachments (0)
Change History (2)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
| Milestone: | → 3.3.15.1 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [12223] in version: 3.3.15.1
Note:
See TracTickets
for help on using tickets.

3.3.14.5 the same.
5 years... any chance for a fix?