Jump to content

GUICtrlSetGraphic does not draw over pic


qsek
 Share

Recommended Posts

I want to draw over a pic with GUICtrlSetGraphic Functions, but cant find the right styles. But maybe its another problem.

Please give me an hint.

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$Form1 = GUICreate("AForm1", 413, 305, 303, 219)
$graph1 = GUICtrlCreateGraphic(96, 72, 193, 177, BitOR($SS_CENTER,$SS_NOTIFY))
GUICtrlSetGraphic(-1,$GUI_GR_HINT, 1)
GUICtrlSetGraphic($graph1,$GUI_GR_MOVE, 100, 100)
GUICtrlSetGraphic($graph1,$GUI_GR_COLOR, 0xff00)
GUICtrlSetGraphic($graph1,$GUI_GR_LINE, 200, 200)
GUICtrlSetGraphic($graph1,$GUI_GR_CLOSE)
GUICtrlSetGraphic($graph1,$GUI_GR_REFRESH)
$Pic1 = GUICtrlCreatePic(@Systemdir & "\oobe\images\merlin.gif", 32, 16, 185, 177, -1 ,$WS_EX_LAYERED )
GUISetOnEvent($GUI_EVENT_CLOSE, "Close")
GUISetState(@SW_SHOW)


While 1
    Sleep(100)
WEnd

Func Close()
    Exit
EndFunc   ;==>Close
Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite
Link to comment
Share on other sites

I think this is design limitation.

But I'm not 100% sure.

I tested this little changed example which behaves the same:

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$Form1 = GUICreate("AForm1", 413, 305, 303, 219)
$Pic1 = GUICtrlCreatePic("c:\1.jpg", 32, 16, 250, 250);, -1 ,$WS_EX_LAYERED )
GUICtrlSetState(-1, $GUI_DISABLE)
$graph1 = GUICtrlCreateGraphic(96, 72, 193, 177, BitOR($SS_CENTER,$SS_NOTIFY))
GUICtrlSetGraphic(-1,$GUI_GR_HINT, 1)
GUICtrlSetGraphic($graph1,$GUI_GR_MOVE, 100, 100)
GUICtrlSetGraphic($graph1,$GUI_GR_COLOR, 0xff00)
GUICtrlSetGraphic($graph1,$GUI_GR_LINE, 200, 200)
GUICtrlSetGraphic($graph1,$GUI_GR_CLOSE)
GUICtrlSetGraphic($graph1,$GUI_GR_REFRESH)
GUISetOnEvent($GUI_EVENT_CLOSE, "Close")
GUISetState(@SW_SHOW)


While 1
    Sleep(100)
WEnd

Func Close()
    Exit
EndFunc   ;==>Close
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...