Jump to content
masvil

SplashImage (or GUI) without border

Recommended Posts

masvil

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
masvil

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
BigDod

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
masvil

Is this anything like what you want

It still has a border :-(

Share this post


Link to post
Share on other sites
BigDod

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
masvil

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
Valik

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
masvil

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

Share this post


Link to post
Share on other sites
Valeriy

How to remove border in SplashImageOn function?

Edited by Valeriy

Share this post


Link to post
Share on other sites
cobaek
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

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

×