Jump to content

GUICtrlSetTrans


jftuga
 Share

Recommended Posts

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

Link to comment
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.

 

Link to comment
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

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...