woramon Posted October 16, 2011 Share Posted October 16, 2011 Bu projeye Arka plan resmini "_GUICtrlCreateGIF" le ekliyorum fakat $tab1 'in üstüne çıkıyor. "_GUICtrlCreateGIF" komut burda açıklanmış "http://www.tnctr.com/topic/145059-gif-animation-udf/" Deneme projesi olduğu için resim çok dandik ama yinede Linkini vereyim ==>http://b1110.hizliresim.com/11/10/16/5178.gif [codebox]#include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #include <WindowsConstants.au3> #include "GIFAnimation.au3" Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $hGui = GUICreate("Form3", 370, 552, 201, 127) GUISetOnEvent($GUI_EVENT_CLOSE, "Form3Close") GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form3Minimize") GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form3Maximize") GUISetOnEvent($GUI_EVENT_RESTORE, "Form3Restore") $Tab1 = GUICtrlCreateTab(40, 16, 289, 513) GUICtrlSetOnEvent(-1, "Tab1Change") $TabSheet1 = GUICtrlCreateTabItem("1") $TabSheet2 = GUICtrlCreateTabItem("2") $TabSheet3 = GUICtrlCreateTabItem("3") GUICtrlSetState(-1,$GUI_SHOW) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) Opt("MustDeclareVars", 1) If @error Then Exit Global $aGIFArrayOfIconHandles Global $hGIFThread Global $iGIFTransparent Global $tFrameCurrent Global $hGIF = _GUICtrlCreateGIF("c:\deneme.gif", 10, 10, $aGIFArrayOfIconHandles, $hGIFThread, $iGIFTransparent, $tFrameCurrent) GUICtrlSetTip($hGIF, "GIF") GUIRegisterMsg(15, "_Refresh"); WM_PAINT; don't forget this. It's needed only for non-transparent gifs though, but still. Global $iPlay = 1 GUISetState() Func _Refresh($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $iMsg, $wParam, $lParam _RefreshGIF($hGIF, $aGIFArrayOfIconHandles, $hGIFThread, $iGIFTransparent, $tFrameCurrent) EndFunc;==>_Refresh #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func Form3Close() EndFunc Func Form3Maximize() EndFunc Func Form3Minimize() EndFunc Func Form3Restore() EndFunc Func Tab1Change() EndFunc [/codebox] Quote Link to comment Share on other sites More sharing options...
blackman12 Posted October 16, 2011 Share Posted October 16, 2011 Gif dosyasını arkaplan yapamazsınız. resmin formatını değiştirin ve öyle deneyin. çünkü gif plugini resmi sürekli öne atacaktır. Quote Link to comment Share on other sites More sharing options...
woramon Posted October 18, 2011 Author Share Posted October 18, 2011 (edited) Biraz geç çevap verdim galiba Teşekkür ederim. Edited October 18, 2011 by woramon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.