Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Guictrlsetimage doesn't work for me

$
0
0
Hi!

I'm trying to have some buttons with images but the images don't show up no matter what I do. I've tried everything from absolute paths to other file extensions, compiling it x86, x64. Here's an example


#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <GuiButton.au3>
$GUI = GuiCreate("test", 222, 222, -1, -1)$piesag = GuiCtrlCreateButton("", 14, 16, 44, 44, $BS_BITMAP)
GuiCtrlSetImage($piesag, "\piese\1a.bmp")
GUISetState(@SW_SHOW, $gui)
While(1)
$msg = GuiGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>