Jump to content

SplashImage (or GUI) without border


Recommended Posts

I need something like SplashImageOn without title and border (as opt = 1, but without thin border). I have just to make an image appear/disappear in a specified position.

As alternative I tested GUICreate/GUICtrlCreatePic but I can't get rid of border even using $WS_POPUPWINDOW,$WS_EX_TOOLWINDOW styles.

Any help?

Edited by masvil
Link to post
Share on other sites

Is this anything like what you want

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 438, 193, 115, BitOR($WS_SYSMENU,$WS_DLGFRAME,$WS_POPUP,$WS_CLIPSIBLINGS,$DS_MODALFRAME), 0)
$Pic1 = GUICtrlCreatePic("d:\My Documents\My Pictures\topost\3d0d50cb8cbee152056da07040fc9eebd231eb36.jpg", 0, 0, 633, 454, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to post
Share on other sites

Here you go, pic must be a bmp and have a 1 pixel white border

#include <GUIConstants.au3>
HotKeySet("{ESC}", "Terminate")

Func Terminate()
    GUIDelete($gui)
    Exit
EndFunc   ;==>Terminate

Func SetWindowRgn($h_win, $rgn)
    DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1)
EndFunc   ;==>SetWindowRgn



$gui = GUICreate("", 397, 427, -1, -1, $WS_POPUP)
GUICtrlCreatePic(".\test.bmp", 0, 0, 397, 427)
$a = DllCall(".\BMP2RGN.dll", "int", "BMP2RGN", _
        "str", ".\test.bmp", _
        "int", 255, _
        "int", 255, _
        "int", 255)
SetWindowRgn($gui, $a[0])
GUISetState(@SW_SHOW, $gui)
While 1
    Sleep(50)
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to post
Share on other sites
  • 1 year later...
  • 9 years later...
On 6/22/2009 at 5:28 PM, Valeriy said:

How to remove border in SplashImageOn function?

sorry , maybe this old post (maybe necro post), but maybe my info can help the other

in help file

SplashImageOn("", $sDestination, 500, 500, -1, -1, 1)

value last parameter give value "1", this will make SplashImageOn in borderless (almost border-less, having a one pixel width (thin) border.)

thanks

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...