Sign in to follow this  
Followers 0
eHrgo

Superpose GuiCtrlCreatePics keeping Transparency?

5 posts in this topic

Hi guys, I have a little transparency problem:

$Main=GUICreate("MyGui", 237, 67, -1, -1, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_LAYERED))
$Back=GUICtrlCreatePic(@ScriptDir&'/GuiMain.gif', 0,0, 0,0)
GUICtrlSetState($Back, $GUI_DISABLE)

;$settings=GUICtrlCreatePic(@ScriptDir&'/GuiSettings.jpg',5,51,0,0)

While 1
    GUISetState(@SW_SHOW)
    Sleep(100)
WendoÝ÷ Ùh­Øb²+,)h!¶Úþ-)ò¦'¢oø§goÉÈéø¦«­¢+ØÀÌØí5¥¸õU%
ÉÑ ÅÕ½Ðí5åÕ¤ÅÕ½Ðì°ÈÌÜ°ØÜ°´Ä°´Ä°ÀÌØí]M}A=AU@°  ¥Ñ=H ÀÌØí]M}a}Q=A5=MP°ÀÌØí]M}a}1eI¤¤(ÀÌØí  ¬õU%
Ñɱ
ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥5¥¸¹¥Ìäì°À°À°À°À¤)U%
ÑɱMÑMÑÑ ÀÌØí ¬°ÀÌØíU%}%M   1¤((ÀÌØíÍÑÑ¥¹ÌõU%
Ñɱ
ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥MÑÑ¥¹Ì¹©ÁÌäì°Ô°ÔÄ°À°À¤()]¡¥±Ä(%U%MÑMÑÑ¡M]}M!=¤(%M±À ÄÀÀ¤)]¹

With this, like that:

Posted Image

See arrows for bugs..

__________________________________________

But i want it to look like:

Posted Image

Its kind of weird.. Just by adding this line, my whole transparency of the previous picture disapear...

I keep trying to superpose those 2 GuiCtrlCreatePic because I need the second one to be a button.

Thanks a lot§


Sorry for my Bad English.

Share this post


Link to post
Share on other sites



Hum... Maybe it wasn't a good idea to create this topic here.

I figured out where does the problem come from:

The transparency seems to only be applied to the second GuiCtrlCreateGraphic...Why? How can I avoid this?

If I can't, Is there any other way to define a part of the picture as a button?

Thanks


Sorry for my Bad English.

Share this post


Link to post
Share on other sites

Problem semi solved by using

GUICtrlCreateButton("", 5, 51, 92, 16, $BS_BITMAP)
GUICtrlSetImage ( -1, @ScriptDir&'/GuiSettings.bmp' )

Sorry for my Bad English.

Share this post


Link to post
Share on other sites

Problem semi solved by using

GUICtrlCreateButton("", 5, 51, 92, 16, $BS_BITMAP)
GUICtrlSetImage ( -1, @ScriptDir&'/GuiSettings.bmp' )
Maybe you could get some ideas from lod3n's script and PauliA's clock

How do you get it to work at all if you use

@ScriptDir&'/GuiSettings.bmp'

instead of

@ScriptDir&'\GuiSettings.bmp'

?

This GUI Help forum is a bit quiet compared to the General Help one. A lot of people post GUI questions there.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

How do you get it to work at all if you use

@ScriptDir&'/GuiSettings.bmp'

instead of

@ScriptDir&'\GuiSettings.bmp'

?

Hum.. I don't kow, but it works !

Thanks for those two example


Sorry for my Bad English.

Share this post


Link to post
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
Sign in to follow this  
Followers 0