سلام.
دوستان مي خوام توي قسمتهاي مختلف برنامه اي كه با وي بي ساختم از عكس هاي انيميشن با فرمت گيف كه ترنس پرنت هم هست استفاده كنم. لطفا كمكم كنيد.
مرسي.ممنون.
شهاب.
Printable View
سلام.
دوستان مي خوام توي قسمتهاي مختلف برنامه اي كه با وي بي ساختم از عكس هاي انيميشن با فرمت گيف كه ترنس پرنت هم هست استفاده كنم. لطفا كمكم كنيد.
مرسي.ممنون.
شهاب.
به کمک این ocx ها.
پيمان جان اولي ocx ه كه فكر كنم رجيستر مي خواد چون موقع ران و اند كردن برنامه يه صفحه باز مي شه كه رجيستر مي خواد.و نتونستم انيميشن باهاش باز كنم ؛يعني باز ميكنه ولي عكس نشونش مي ده.
دو ومي هم dll بود كه كار كردن باهاشو بلد نيستم.
ميشه راهنمايي كني براي اين مشكلات.
ممنون.
تو اولی خودت باید فریم های عکس رو عوض کنی. یعنی خصوصیت frame فایل ocx رو باید تو تایمر همراه با مکث عوض کنی.
اینم توضیح dll.
تو گوگلم سرچ کنی ocx در این زمینه زیاد هست.کد:My English is not good so if you don’t understand something let me know and I try to explain more correctly. And of course if you have some problems with my control let me know.
My E-Mail: gtersaakov@sprynet.com. I don’t promise replay to you. This component is free. So there is no technical support. But if you would like to appreciate my time which was spend you could send any amount of dollars and cents(you could ask my address for this appreciation by Email or get it from my homepage (Page Resume) ). And of course for you I fix every bug, which will be noticed, and maybe offer to you my another components for free (if you will willing test it).
Gif89 file – it is file which store several pictures compressed with algorithm LZH. When one picture change another you get animation. Gif89 file has itself field speed with which one picture changed by another. But you can set it or don’t set it. There is Transparent color in gif files my control support it only in runtime mode. But if you see that in internet explorer gif shown with transparent control but in my control you saw background that mean Explorer has the same background as gif file and Transparent color don’t set in gif file, so you can edit gif file in any gif animator (can get it free on internet) and set transparent control. Again my control support transparent color in runtime mode.
My control use thread to animate gif so gif will move when you type in text or select records form database.
Installation: Just copy gif89.dll into you windows/system folder and run regsvr32.exe gif89.dll. Regsvr32.exe distributed with VB 5.0, VC 5.0 and many other Microsoft’s development tools.
There are 5 properties in my control.
1. AutoSize – when you load new picture control will automatically resize to size picture. It doesn’t working in FoxPro 5.0 so if you don’t want strange behavior so set this in false always in FoxPro. But you can try and will see what happening when it is true. It works fine in VB, Access and I have no idea how can I fix it.
2. AutoStart – when form loaded control automatically starts play file.
3. FileName – name of file when gif store.
4. Embed – if it false then you have to distribute you gif file with you application, if it true to gif file become part of you exe and you don't have to distribute gif itself. When you set embed to true then control will ignore FileName so if in design mode you set Embed in true and then decide change image then you have to set Embed in false change FileName and set Embed to true back.
5. Speed – Delay which happened when picture changed by next picture. 100 mean that delay will be 1 second. If gif itself has speed then control will ignore this property.
6. Glass – It is very complicate property. If it true rectangle which control cover paint in containers background color (BackColor in VB 5.0). So if you have picture under control (in VB 5.0 you can set Picture property of Form) you will see gray color rectangle and gif will be moving in it. But if you want that gif moved right on you picture then set Glass in true and you get it. But be careful sometimes if you don’t set forms property ClipControls in false you can get a hole on you form just because you form didn’t paint itself under control. If you put my control on PictureBox control then you have to change PictureBox property ClipControls.
Tip: Set Embed only for those gif files which size has reasonable size and you have it only on one form. If you have one gif on 5 form and set Embed in true on each of those forms, you get five gifs embedded in you exe file.
Also there are 3 methods
1. Start – understandable from name.
2. Stop – understandable from name.
3. AboutBox – understandable from name. You could get my email address from AboutBox.
Tip: You don’t have to do Stop then change FileName then Play. Just change FileName and everything should be fine.
مرسي پيمان جان كامپوننت زياد پيدا مي كنم ولي همشون پوليه.
نمي دونم چه كار كنم.
خودت بنویس.
مگه مي شه؟؟؟ خوب چيجوري؟؟نقل قول:
نوشته شده توسط Payman_62
حالا به چه درد مي خوره اجراي گيف تو فرم؟
من یک برنامه ای که دو تا agent با هم صحبت بكنند در ويژوال
با سلام
امیدوارم که این بتونه کمکت کنه......خودم رجیسترش کردم...با استفاده از خاصیت custom عکست را لود کن
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]