Page 1 of 1
Posted: Tue Nov 26, 2002 7:13 pm
by BackupUser
Restored from previous forum. Originally posted by Kale.
Is it possible to place strings into the SysTray? other than the clock?
--Kale
New to PureBasic and falling in Love! 
Posted: Fri Feb 21, 2003 6:20 am
by BackupUser
Restored from previous forum. Originally posted by TheBeck.
I want to replace the standard windows clock with one that does more. I will post here if I have any luck. Does anyone else know how to do this, or have any ideas? How about making your systray icon stick to the right side of the systray?
Posted: Fri Feb 21, 2003 6:35 am
by BackupUser
Restored from previous forum. Originally posted by ricardo.
Originally posted by TheBeck
I want to replace the standard windows clock with one that does more.
Find a window with class: TrayClockWClass (in XP) and then parent your form with it, it should work its like the progressbar in the systray example here in the forums.
Code: Select all
If OpenWindow(0,0,0,450,200,#PB_Window_BorderLess,"Test")
CreateGadgetList(WindowID())
TextGadget(1,0,0,350,20,"New Time")
ButtonGadget(2,200,100,150,25,"Go to Clock Tray")
Repeat
EventID=WaitWindowEvent()
Select EventID
Case #PB_EventGadget
Select EventGadgetID()
Case 2
r = WindowFromPoint_(790,590); Not the best way to find the handle
GetWindowRect_(r,win.RECT)
x=win\left : y=win\top
w=win\right-win\left : h=win\bottom-win\top
ResizeWindow(w,h)
SetParent_(WindowID(),r)
EndSelect
EndSelect
Until EventID=#PB_EventCloseWindow
EndIf
Best Regards
Ricardo
Dont cry for me Argentina...
Posted: Sat Feb 22, 2003 12:24 am
by BackupUser
Restored from previous forum. Originally posted by TheBeck.
Thanks for your help Ricardo.