Try the VistaClock - Major performance update!

Developed or developing a new product in PureBasic? Tell the world about it.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Any chances to release the source in the future?
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Yes, for sure. I haven't done it yet because I don't want a lot of half-written versions floating around. Once it's released it'll come as a full package w/source & graphics.
BERESHEIT
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Wow that's extremely cool. The noobs here (including me :LOL:) could learn alot from this. Thanks :D.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

netmaestro wrote:Ah, interesting. Thanks for the feedback, I suspect the issue there is that it uses a windowed screen and sprite3d graphics, which requires dx7 or better to be available. I'll put cleaner code in there so it ends gracefully if it can't run. (I'm guessing no dx7 is the issue, anyway) The reason for the cpu usage will be that it can't verify the background so it's always trying to update it. Good one, thanks again.
I have DirectX 9.0c installed. And unlike my other computer, this graphics card usually works pretty well.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

sheesh, I'm stumped then.
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

netmaestro wrote:Yes, for sure. I haven't done it yet because I don't want a lot of half-written versions floating around. Once it's released it'll come as a full package w/source & graphics.
Wow - what a tutorial that will be. Anxiously awaiting.

Many thanks

cheers
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

rsts wrote:Wow - what a tutorial that will be. Anxiously awaiting.
Yes, ditto. Very nice.
@}--`--,-- A rose by any other name ..
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

nice clock netmaestro.

hum, maybe you can find this interesting (desktop painting) :

Code: Select all

Procedure.l myCallback(hwnd.l,uMsg.l,wParam.l,lParam.l)
  Select uMsg
    Case #WM_ERASEBKGND
      ProcedureReturn #False
    Case #WM_PAINT
      For i=1 To 2
        x = GadgetX(i)
        y = GadgetY(i)
        SetRect_(rect.RECT,x,y,x+GadgetWidth(i),y+GadgetHeight(i))
        ValidateRect_(hwnd,rect)
        RedrawWindow_(GadgetID(i),0,0,$407)
      Next
      PaintDesktop_(BeginPaint_(hwnd,ps.PAINTSTRUCT))
      EndPaint_(hwnd,ps)
    Case #WM_SIZING,#WM_MOVING
      InvalidateRect_(hwnd,0,1)
  EndSelect
  ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure

If OpenWindow(0,100,100,320,240,"",#PB_Window_SystemMenu|#PB_Window_SizeGadget)
  ;SmartWindowRefresh(0,1)
  CreateGadgetList(WindowID(0))
  ButtonGadget(1,5,5,100,50,"Hello")
  EditorGadget(2,5,60,100,175)
  SetWindowCallback(@myCallback(),0)
  InvalidateRect_(WindowID(0),0,1)
  Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

hehe. xray vision! Clever.
@}--`--,-- A rose by any other name ..
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Ummm.... must be only viewable on XP. Here is what it looks like on my Windows 2000 Pro:

Image
Image Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:shock: :)

The clock?

There is only one clock
@}--`--,-- A rose by any other name ..
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Yes I think I have an API in there that isn't supported on Win2000 - I'll have to replace it with something else. That's a nice green box though straker, if you don't care what time it is you've got something nice to look at. :D
BERESHEIT
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Oh good, for a minute I thought you might have been inspired by Mandelbrot or Dali.
Image Image
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:lol:
@}--`--,-- A rose by any other name ..
SoulReaper
Enthusiast
Enthusiast
Posts: 372
Joined: Sun Apr 03, 2005 2:14 am
Location: England

Post by SoulReaper »

works very nice here on windows 2000 pro sp4 gfx card radeon 9800 pro & direct x9.0c

always ontop would be a good feature I think - what do you think...

once again great work :) :wink:

Regards
Kevin :wink:
Post Reply