forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GIF animation
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Sun Nov 18, 2012 9:20 pm    Post subject: Reply with quote

Thanks for examples,

My first version will support only scanning for source images in selected format and from selected source directory. Source images are alphabetically sorted before being written into animated GIF file. I may later add more sophisticated control for source images and animation frames.

My current prototype looks like this

I still need to glue some "bolts and nuts" together, but basic interface is allready working including simple drag and drop support.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Mon Nov 19, 2012 6:56 am    Post subject: Reply with quote

No, these are independent windows in your example, Paul. Here what i mean. It's like resizable ob/cb. Several panels share the same area but you can increase and decrease their share with mouse

Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Mon Nov 19, 2012 9:35 am    Post subject: Reply with quote

This (i.e. docking windows) is not something I could contempt providing within ClearWin+, at least not at the moment. If anyone wants to take this up as a challenge, there is enough functionality already available for users to do this for themselves given time and patience.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Mon Nov 19, 2012 11:10 am    Post subject: Reply with quote

All compilers GUI are implemented via docking windows. SDBG would look much neater with them too...miss them very much.
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Tue Nov 20, 2012 11:07 am    Post subject: Reply with quote

I hit the wall while using Clearwin+ for the user interface. When I call a .NET routine from the callback, it works for the first time. A second call to the callback always kills the program with memory violation exception. When using some .NET class, there seems to be multiple threads running and I suspect this to be the cause for the exception.

As a result, I decided to create a .NET Form based user interface. Maybe it's a good time to try using Visual Clearwin? Smile

I have updated my files and added the Component Pascal source for the AnimGif.dll into AnimGif_dll directory. Available here
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Tue Nov 20, 2012 12:59 pm    Post subject: Reply with quote

Never seen Visual Clearwin in action, tried it before but failed. If 5 min video guide like the ones people post on YouTube was made things would be much easier.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Tue Nov 20, 2012 1:16 pm    Post subject: Reply with quote

There is a set of sample programs in C:\Users\xxxx\Documents\FTN95 Examples\NET\Visual ClearWin.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Tue Nov 20, 2012 2:11 pm    Post subject: Reply with quote

By some reason they never worked besides just "multithreading". I wrote about this here couple years ago, hopefully things changed since that because this is the way we all should program in future - truly visual way - but i never tried again.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Tue Nov 20, 2012 5:45 pm    Post subject: Reply with quote

Did you try again with a later release because I did fix a regression arising with .NET 2.?
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Tue Nov 20, 2012 8:03 pm    Post subject: Reply with quote

Just tried again. It complaints that it does not see CSC or VBC which is true - i have just the classical Win32 installation of FTN95...Will try to install right FTN95 on another copy of Windows7 OS i have somewhere. Or this was NET issue?

Last edited by DanRRight on Wed Nov 21, 2012 6:26 am; edited 2 times in total
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Tue Nov 20, 2012 8:40 pm    Post subject: Re: Reply with quote

DanRRight wrote:
Just tried again. It complaints that it does not see CSC or VBC which is true - i have just the classical Win32 installation of FTN95..

Those two compiler binaries are probably already installed by default. Try adding .NET framework directory into your system path.

Those binaries are located at:
Code:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\
on my computer.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Wed Nov 21, 2012 10:09 am    Post subject: Reply with quote

It is known that developers and users who do not know what's to expect from the product see things differently. So seeing things with the eyes of users (read - idiots) is #1 condition for success. Look at the failure of Linux distros among general public and rise of Android and iOS both based on Linux.

At Silverfrost I'd ask several users to write similar step-by step commentary as below to their NET examples ... what they see, what they want to see, how easy all was, are they impressed or depressed....

Here is the notes of an idiot in his N-th attempt to look at the Silverfrost NET DEMO.


==========
First step looking at what demo examples we have

--> Fortran Calculator, Mandelbrot, Matrix inversion etc, very very few same as 10 years ago

Fortran Calculator
------------------
--> Clicking on all bat files ...
--> Getting complaints on absent vbc
--> Thanks to Jali, adding path c:\Windows\Microsoft.NET\Framework\v2.0.50727
--> complaint on absent 'resgen'
--> making global search of resgen
--> Found two in Microsoft SDKs

c:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\ResGen.exe
c:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\x64\ResGen.exe

--> Copying 64bit file first
--> compiling again
--> WOW, i've made exe file
--> launching
--> Great, it shows calculator menu
--> typing 4 and then sqrt
--> oops crash (unhandled exception)
--> taking resgen 32bit
--> compiling
--> crash again with the same error
--> Going to CS folder, doing all the above
--> getting error "Invalid calculation ..." message but not Exception message
--> doing 2+2
--> crash ... getting the same damn Exception message

Conclusion - crap
Who make all these examples, Andrew?
------------------
Next is Mandelbrot
--> Compiling
--> getting "unhandled exception..."

Conclusion - crap

-----------------
Matrix inversion
--> Compiling
--> getting EXE
--> running
--> Great atl least i see GUI
--> clicking on INVERT
--> "unhandled exception"

Conclusion is obvious

-----------------
Next is Message Box...
--> Compiling
--> it self-launches
--> scares my firewall
--> i allow it to run
--> freezes "Messagebox has stopped working, searching for solution"

Conclusion - Crap

-----------------
Next OnlineImageViewer
--> Launching BAT
--> run
--Works!

Conclusion - FINALLY SOMETHING WORKS AS IS!

-----------------
Threads

--> Launching BAT
--> run
--> Works! The only one worked since first look many years ago
--> Oops
--> praised to early
--> can not stop it .... freezed

Conclusion: WORKS... but

-----------------
Visual Clearwin
--> Searching for BAT files
--> No single BAT file found... no EXE files...no AVI or MP4 files ...no even README
--> i do not know what's to do without reading manuals
--> i do not read manuals to view demos and nobody does
--> pitiful end of the game again

Conclusion ? A decade from its appearance i still did not even see the DEMO of Visual Clearwin ! Irony is that i was probably one of the first who adopted Clearwin and used it excessively ...
-----------------

So far I am depressed with the NET.
Done Year 2022 Nov 20...

sorry for typo...it's 2012 Smile
Back to top
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Wed Nov 21, 2012 11:49 am    Post subject: Re: Reply with quote

DanRRight wrote:

Conclusion ? A decade from its appearance i still did not even see the DEMO of Visual Clearwin ! Irony is that i was probably one of the first who adopted Clearwin and used it excessively ...

I see potential in .NET stuff. I have not tested the supplied .NET examples directly, but have rewritten and tested some examples in Gardens Point Component Pascal.

Here is a little demo project for you, using Component Pascal main program with Visual Clearwin controls and FTN95 based .NET DLL for processing.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2815
Location: South Pole, Antarctica

PostPosted: Thu Nov 22, 2012 7:44 pm    Post subject: Reply with quote

Well, i see the gui but when run it i get same damn exceptions. But seems that does not matter too much. I don't know... but from what i have seen so far i don't see any really sweet candy and don't feel any motivation to fix anything and proceed further...i don't do excessive programming in other compilers and hence there is no value to me in NET. What i miss in FTN95 is Wininet, but if i needed it too much i'd take it from Intel Fortran. Will try .NET and Visual Clearwin again some day if will be lured by good demo
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Fri Nov 23, 2012 12:54 am    Post subject: Reply with quote

Jalih,

If you are looking for a good layout model for a graphics manipulation program, take a look at Microsoft's ICE (Image Composition Editor) which is a utility to create panoramas from a set of overlapping images. It is free to download, and works very well. (Just search MSDN for it).

95% of the time my own slow progress is because I do not know at the outset what layout works best. Actually doing it is less of a problem - except in maybe 10% of the cases where there isn't a simple Clearwin way of doing it, or worse, when the Clearwin code has an issue, like it doesn't work well in Windows 7.

Eddie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group