Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / system tray : several icons

Author
Message
Jean Philippe
19
Years of Service
User Offline
Joined: 10th Jul 2007
Location:
Posted: 24th Dec 2010 05:36
Hi,

I have been working on a background application for a week(not video game at all). The application is done but i would like to add some features like reducing the window to system tray and making the wintow tab disappear(hide window). The thing is that my background app has 2 status : activated or not activated(like a firewall for an exemple). I would like the icon in system tray to change weather the application is activated or not.

I have read the posts and thanks a lot to cryptoman for what he has done(next link).

Main post about system tray :
http://forum.thegamecreators.com/?m=forum_view&t=51995&b=8

(very funny message Jess T by the way, I have been using DB/DBpro for 10 years, never thought I would use that kind of tools until now)

More about changing icon :
In cryptoman's work the icon which is displayed in the system tray seems to be the default icon of the exe. We can define it while we develop the program but I don't see how I could change it while the program is running.

So if anyone knows a way to contact cryptoman or has the answer...

off-board:

While I was making the application I have been going through a lot of posts in which people said DBpro was not designed to create desktop app(cpu usage,functionnalities). I have to say am really satisfied by the result. Every five minute, my app go fetch on the internet some information by downloading URL pages and generate a web page which is upload on an FTP. About the cpu usage, it's kept at 0% except every five minutes when it reaches 2% for the update, it was just about not displaying the whole screen at each loop...^^ I know I suck (still my app has no interactive button: display changes only happen after a click so it made the job easier for me but lowering cpu usage with interactive screens might be more complicated). Anyway my point is DBpro is still a pretty good langage, I guess it would have taken at least 2 months to do the same thing in C++ or Java and thousands of codelines instead of 1000.

Thanks for reading

(Am french sorry for the translation)
Jean Philippe
19
Years of Service
User Offline
Joined: 10th Jul 2007
Location:
Posted: 30th Dec 2010 10:59 Edited at: 31st Dec 2010 13:49
well i managed to set up half of the system tray thing. My application can we reduced to system tray(desktop tab disappears) and a double click on the tray icon restores the window and the tab. If anyone need help with that part just use cryptoman's work http://http://forum.thegamecreators.com/?m=forum_view&t=51995&b=8 and ask for help here.

I think I will abandon the changing icon thing since it looks a bit more complex and it was more a "style" modification

see you

Login to post a reply

Server time is: 2026-07-18 07:32:11
Your offset time is: 2026-07-18 07:32:11