![]() ![]() Navigate ( $URL ) GUICtrlSetState ( - 1, $GUI_DISABLE ) GUICtrlSetBkColor ( - 1, 0x404040 ) GUICtrlSetColor ( - 1, 0x123456 ) GUISetState (, $SplashGUIlogo ) GUISetState (, $hGUI_c ) GUIRegisterMsg ( $WM_LBUTTONDOWN, "_WM_LBUTTONDOWN" ) While 1 Switch GUIGetMsg ( ) Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete ( $hGUI_c ) GUIDelete ( $SplashGUIlogo ) _GDIPlus _ImageDispose ( $hSplashlogo ) _GDIPlus _Shutdown ( ) Exit Func _WM _LBUTTONDOWN ( $hWnd, $iMsg, $wParam, $lParam ) _SendMessage ( $SplashGUIlogo, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0 ) EndFunc =>_WM_LBUTTONDOWN Func _SetBitmap ( $hGUI, $hImage, $iOpacity, $n_width = 200, $n_height = 200 ) Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend $hScrDC = _WinAPI _GetDC ( 0 ) $hMemDC = _WinAPI _CreateCompatibleDC ( $hScrDC ) $hBitmap = _GDIPlus _BitmapCreateHBITMAPFromBitmap ( $hImage ) $hOld = _WinAPI _SelectObject ( $hMemDC, $hBitmap ) $tSize = DllStructCreate ( $tagSIZE ) $pSize = DllStructGetPtr ( $tSize ) DllStructSetData ( $tSize, "X", $n_width )aĭllStructSetData ( $tSize, "Y", $n_height ) $tSource = DllStructCreate ( $tagPOINT ) $pSource = DllStructGetPtr ( $tSource ) $tBlend = DllStructCreate ( $tagBLENDFUNCTION ) $pBlend = DllStructGetPtr ( $tBlend ) DllStructSetData ( $tBlend, "Alpha", $iOpacity ) DllStructSetData ( $tBlend, "Format", 1 ) _WinAPI _UpdateLayeredWindow ( $hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA ) _WinAPI _ReleaseDC ( 0, $hScrDC ) _WinAPI _SelectObject ( $hMemDC, $hOld ) _WinAPI _DeleteObject ( $hBitmap ) _WinAPI _DeleteDC ( $hMemDC ) EndFunc =>_SetBitmap Func _WinAPI _BitmapDisplayTransparentInGUI ( ByRef $hHBitmap, ByRef $hGUI, $iOpacity = 0xFF, $bReleaseGDI = True ) If Not BitAND ( GUIGetStyle ( $hGUI ), $WS_EX_LAYERED ) = $WS_EX_LAYERED Then Return SetError ( 1, 0, 0 ) Local $tDim = DllStructCreate ( $tagBITMAP ) If Not _WinAPI _GetObject ( $hHBitmap, DllStructGetSize ( $tDim ), DllStructGetPtr ( $tDim ) ) Then Return SetError ( 2, 0, 0 ) Local $tSize = DllStructCreate ( $tagSIZE ), $tSource = DllStructCreate ( $tagPOINT ), $tBlend = DllStructCreate ( $tagBLENDFUNCTION ) Local Const $hScrDC = _WinAPI _GetDC ( 0 ), $hMemDC = _WinAPI _CreateCompatibleDC ( $hScrDC ), $hOld = _WinAPI _SelectObject ( $hMemDC, $hHBitmap ) $tSize. To know more about the license, please check our license page for more informtion.Expand collapse popup #include #include #include #include #include #include _GDIPlus _Startup ( ) Global Const $SC_DRAGMOVE = 0xF012 $hSplashlogo = _GDIPlus _ImageLoadFromFile ( "SOME_PNG_WITH_TRANSPARENCY.PNG" ) $iw = _GDIPlus _ImageGetWidth ( $hSplashlogo ) $ih = _GDIPlus _ImageGetHeight ( $hSplashlogo ) $SplashGUIlogo = GUICreate ( "", $iw, $ih, - 1, - 1, $WS_POPUP, $WS_EX_LAYERED ) _SetBitmap ( $SplashGUIlogo, $hSplashlogo, 255, $iw, $ih ) $hGUI_c = GUICreate ( "A_GUI", $iw, $ih, 0, 0, $WS_POPUP, BitOR ( $WS_EX_LAYERED, $WS_EX_MDICHILD ), $SplashGUIlogo ) GUISetBkColor ( 0x123456, $hGUI_c ) _WinAPI _SetLayeredWindowAttributes ( $hGUI_c, 0x123456 ) $oObj = ObjCreate ( "Shell.Explorer.2" ) $oObj_ctrl = GUICtrlCreateObj ( $oObj, ( $iw / 2 ) - 65, ( $ih / 2 ) - 65, 130, 130 ) $sGIF = & "\loading.gif" $URL = "about:" $oObj. The " Equalizer" spinner is released under loading.io pro License. ![]() Since we provide GIF / CSS as alternatives to the SVG animation, you are free to choose what format to use in your own projects however, we still think SMIL is a powerful language, and you can help it to gain more popularity by using SMIL with your project. With Tenor, maker of GIF Keyboard, add popular Loading Transparent Gif animated GIFs to your conversations. Furthermore, since Microsoft Edge has officially changed it's engine to Chromium, you can think SMIL as it has been supported by all modern browsers. SMIL includes features that can not be replaced with CSS Animation, and there are still people using SMIL all over the world. We use SVG SMIL when animating our SVG spinner, and you might have noticed that Chrome once deprecated SMIL several years ago.Īlthough Chrome tended to deprecate SMIL, this action was suspended. Is it supported in latest version of Microsoft Edge?ĭoes it work in tag or background-image CSS style? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |