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

Problem with $WS_EX_COMPOSITED and $GUI_BKCOLOR_TRANSPARENT for label

$
0
0
So, as the title says.
I am trying to make a gui with background image and without "sys" buttons and border ($WS_POPUP). Since i used image to make custom buttons and_lif with GetCursorInfo) to change image, changes was flickering. So for that i used $WS_EX_COMPOSITED. But! If you change label with transparent bg, they will overlap. Just for example:
[ autoit ]      
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form = GUICreate("Form", 420, 182, -1, -1, BitOR($WS_POPUP, $WS_EX_COMPOSITED)) GUISetBkColor(0x000000) $Label = GUICtrlCreateLabel("", 150, 50, 15, 15) GUICtrlSetFont($Label, 10) GUICtrlSetColor($Label, 0xFFFFFF) ;GUICtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) For $i = 1 To 100 GUICtrlSetData($Label, $i) Sleep(10) Next
After this, uncomment transparent bg and run again.
Any way to avoid this? Because i need to keep the label with transparent bg. (since bg image :) )
Or maybe there is another way to avoid flickering?
Also 1 more question, how do i make window move by clicking on body of it? I mean, game launchers (most of mmo) you able to move window just by holding mouse somewhere on the window (not only on the top as usual). I saw this somewhere, but can't find it :o

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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