Sign in to follow this  
Followers 0
masvil

SplashImage (or GUI) without border

9 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



AutoHotKey SplashImage func support borderless viewing, but I still hope someone of you have an AutoIT solution (AHK is a useless tool for me).

Share this post


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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Is this anything like what you want

It still has a border :-(

Share this post


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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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

Thanx for effort, but ATM I really need no border at all because of particular desktop visual effects I'm working on.

If so I'll post on Feature Requests section.

Share this post


Link to post
Share on other sites

Remove the $WS_DLGFRAME and $DS_MODALFRAME styles and your problem solved. Please learn how things work before you make feature requests.

Share this post


Link to post
Share on other sites

You're right. Thanx for past, present and future support to this growing community.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

How to remove border in SplashImageOn function?

Edited by Valeriy

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