![]() So, download, open ZIP, grab folder inside and place it where you want. Some examples work without classic download. GIF files are downloaded automatically if some example script needs it. To know more about the license, please check our license page for more informtion.Expand collapse popup #include #include #include "3" Opt ( "MustDeclareVars", 1 ) Start by choosing GIF to display Global $sFile = FileOpenDialog ( "Choose Image", "", "(*.gif *.png *.jpg *.tiff *.bmp *.jpeg)", - 1, "" ) If Then Exit Make GUI Global $hGui = GUICreate ( "GIF Animation", 500, 500, - 1, - 1, $WS_OVERLAPPEDWINDOW ) Add some buttons Global $hButton = GUICtrlCreateButton ( "&Pause animation", 50, 450, 100, 25 ) Global $hButton1 = GUICtrlCreateButton ( "&Delete Control", 200, 450, 100, 25 ) Global $hButton2 = GUICtrlCreateButton ( "&Open Image", 350, 450, 100, 25 ) Make GIF Control Global $hGIF = _GUICtrlCreateGIF ( $sFile, "", 10, 10 ) If Then GUICtrlSetState ( $hButton, $GUI_DISABLE ) GUICtrlSetTip ( $hGIF, "Image" ) Additional processing of some windows messages (for example) GUIRegisterMsg ( 133, "_Refresh" ) WM_NCPAINT GUIRegisterMsg ( 15, "_ValidateGIFs" ) WM_PAINT Global $iPlay = 1 Show it GUISetState ( ) Loop till end While 1 Switch GUIGetMsg ( ) Case - 3 Exit Case $hButton If $iPlay Then If _GIF _PauseAnimation ( $hGIF ) Then $iPlay = 0 GUICtrlSetData ( $hButton, "Resume animation" ) EndIf Else If _GIF _ResumeAnimation ( $hGIF ) Then $iPlay = 1 GUICtrlSetData ( $hButton, "Pause animation" ) EndIf EndIf Case $hButton1 _GIF _DeleteGIF ( $hGIF ) Case $hButton2 $sFile = FileOpenDialog ( "Choose gif", "", "(*.gif *.png *.jpg *.tiff *.bmp *.jpeg)", - 1, "", $hGui ) If Not Then _GIF _DeleteGIF ( $hGIF ) delete previous $hGIF = _GUICtrlCreateGIF ( $sFile, "", 10, 10 ) If Then GUICtrlSetState ( $hButton, $GUI_DISABLE ) Else GUICtrlSetState ( $hButton, $GUI_ENABLE ) EndIf GUICtrlSetTip ( $hGIF, "Image" ) $iPlay = 1 GUICtrlSetData ( $hButton, "Pause animation" ) EndIf EndSwitch WEnd Func _Refresh ( $hWnd, $iMsg, $wParam, $lParam ) #forceref $hWnd, $iMsg, $wParam, $lParam _GIF _RefreshGIF ( $hGIF ) EndFunc =>_Refresh Func _ValidateGIFs ( $hWnd, $iMsg, $wParam, $lParam ) #forceref $hWnd, $iMsg, $wParam, $lParam _GIF _ValidateGIF ( $hGIF ) EndFunc =>_ValidateGIFsĭownload from here if you want to impress chicks: The " Spinner" spinner is released under loading.io free 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. 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 |