Sign in to follow this  
Followers 0
jftuga

GUICtrlSetTrans

4 posts in this topic

Does something like GUICtrlSetTrans exist? It would be similar to WinSetTrans, but justfor a widget and not the whole window. I would like to use it in conjunction with GUICtrlCreatePic. If not, how could you write a UDF to do this?

Thanks,

-John

Share this post


Link to post
Share on other sites



Does something like GUICtrlSetTrans exist? It would be similar to WinSetTrans, but justfor a widget and not the whole window. I would like to use it in conjunction with GUICtrlCreatePic. If not, how could you write a UDF to do this?

Thanks,

-John

Look at GUICtrlSetBkColor


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>
GUICreate("My GUI picture",400,300,-1,-1,$WS_SIZEBOX+$WS_SYSMENU)

GUISetBkColor(0xE0FFFF)
$n=GUICtrlCreatePic("roses.jpg",2,2,296,350)
GUICtrlSetBkColor($n,0xffff00)

GUISetState()


While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

This does not do a whole lot so far. The help for GUICtrlSetBkColor says The special flag $GUI_BKCOLOR_TRANSPARENT can be used with label and picture controls to give them a transparent background. From the same documentation, I don't see how to use this.

Any ideas?

Thanks,

-John

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