masvil Posted February 3, 2008 Posted February 3, 2008 (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 February 3, 2008 by masvil
masvil Posted February 3, 2008 Author Posted February 3, 2008 AutoHotKey SplashImage func support borderless viewing, but I still hope someone of you have an AutoIT solution (AHK is a useless tool for me).
BigDod Posted February 3, 2008 Posted February 3, 2008 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
masvil Posted February 3, 2008 Author Posted February 3, 2008 Is this anything like what you wantIt still has a border :-(
BigDod Posted February 3, 2008 Posted February 3, 2008 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
masvil Posted February 3, 2008 Author Posted February 3, 2008 Here you go, pic must be a bmp and have a 1 pixel white borderThanx 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.
Valik Posted February 3, 2008 Posted February 3, 2008 Remove the $WS_DLGFRAME and $DS_MODALFRAME styles and your problem solved. Please learn how things work before you make feature requests.
masvil Posted February 3, 2008 Author Posted February 3, 2008 You're right. Thanx for past, present and future support to this growing community.
Valeriy Posted June 22, 2009 Posted June 22, 2009 (edited) How to remove border in SplashImageOn function? Edited June 22, 2009 by Valeriy
cobaek Posted July 24, 2018 Posted July 24, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now