IonicWind Software

Creative Basic => 2D/3D => Topic started by: GWS on September 04, 2007, 02:37:01 AM

Title: Direct X Clock
Post by: GWS on September 04, 2007, 02:37:01 AM
For old times sake, I just had to try out the DX features using the original clock program which dates back to 2002 .. :)

It works here with no problem.

Best wishes, :)

Graham

Title: Re: Direct X Clock
Post by: pistol350 on September 04, 2007, 06:48:02 AM
LOL ^^
Great great!
I will try to find my former Avatar that i used in the Pixia forum days.
This will bring back this feeling of revival of my first programming language  ;)
Thanks again Graham.
Title: Re: Direct X Clock
Post by: Egil on November 02, 2007, 11:26:26 AM
I like your old clock, Graham !

Therefore I thought that it would be nice to make an eyecatching screensaver out of it. so I started tempering with your code.
Just a few more lines were needed to make the program stop when a key is pressed or the mouse is moved. An EXE was produced and renamed the file extension to SCR. And by right-clicking on the file, choosing "Install", a new screensaver was borne.

But when trying to get rid of the caption I got stuck.  When the @NOCAPTION flag is added to the winstyle definition, the code executes just fine from within the IDE.
It also compiles to EXE withour any warnings. But when I try to run that EXE-file, it works.... for five seconds. Then it just stops. And it is impossible to delete that exe or make new one with the same name, before the computer has been restarted.

I must have missed something, I guess. So I'll probably spend the rest of the evening trying to figure out where I went wrong. Suddenly I remember why I enjoyed programming so much some thirty years ago...

I enclose the modified code, just in case someone out there is capable of pointing me in the right direction.

Almost forgot to say that the changes I have made, all are clearly marked.
Title: Re: Direct X Clock
Post by: GWS on November 02, 2007, 01:59:13 PM
Hi Egil,

I like your idea .. I've made a couple of small changes, one is to move the 'closewindow w1' from the @idtimer section to the main window messages after the 'waituntil run=0'.

The other is to increase the timer to 2 seconds - just to give a bit more breathing space. 

Seems to work OK here ..  :)

Isn't Creative the most 'hands-on' language for fun ..  ;D

Graham
Title: Re: Direct X Clock
Post by: Egil on November 02, 2007, 03:18:00 PM
Hi Graham,
It works OK here as well, but trying to get rid of the caption is just an exercise. Examining your code has made me learn more windows programming in a couple of hours than studying the Users Guide for several days...

And I quite agree.. This is GREAT fun!


73' de Egil  LA2PJ