Jump to content

Recommended Posts

Posted

Hey I woz just wondering if there is anyway to display an image with a certain percentage of transparency ?

Is there anyway of adding this feature to SplashImageOn ?

So if you wanted 20 percent transparency, something like this !

SplashImageOn ( "title", "file" , width , height , x pos , y pos , opt ,trans 20 )
Posted

I have just realised that SplashImageOn is very limited.

You can only have 1 image displayed on screen using SplashImageOn !

In order to display a second image the first muct be undisplayed !

Why is this ? and is there any chance that SplashImageOn can be altered to allow more that 1 image to be displayed on screen at once ?

Posted

1) Goto this post and get the code for the function _GetImageSize

2) Add the following code below:

$file = "C:\Windows\Prairie Wind.bmp"

Global $WS_POPUP = 0x80000000, $WS_CAPTION = 0x00C00000, $WS_SYSMENU = 0x00080000
Global $WS_BORDER = 0x800000, $WS_DLGFRAME = 0x400000

$aSize = _GetImageSize($file)
If @error Then
   MsgBox(4096,"","Error...")
   Exit
EndIf

GuiCreate("Example One", $aSize[0], $aSize[1], 10, 10, 0)
GuiCtrlCreatePic($file, 0, 0, $aSize[0], $aSize[1])
GuiSetState()

GuiCreate("Example Two", $aSize[0], $aSize[1], 300, 300, $WS_POPUP)
GuiCtrlCreatePic($file, 0, 0, $aSize[0], $aSize[1])
GuiSetState()

Sleep(5000);show for 5 seconds...
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Posted (edited)

Tnx CyberSlug nice example bit over my head at this moment in time seeing as Ive just updated to .103 and have never tryed any GUI creation before that was to be expected.

The current GUI commands at first glance dont appear to be all that userfriendly for lack of a better word. :)

I feel a bit out of my dept !

But im sure that as with all things, over time it shall become clearer.

Tnx for the push in the right direction :)

Edited by nova
Posted

Tnx CyberSlug nice example bit over my head at this moment in time seeing as Ive just updated to .103 and have never tryed any GUI creation before that was to be expected.

The current GUI commands at first glance dont appear to be all that userfriendly for lack of a better word.  :)

I feel a bit out of my dept !

But im sure that as with all things, over time it shall become clearer.

Tnx for the push in the right direction  ;)

<{POST_SNAPBACK}>

Unless you propose something everybody like better the syntax of the Gui functions have a very probability to change.

Just propose the way you think Gui functions should be. :)

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
×
×
  • Create New...