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.

Newcomers DBPro Corner / Looking for a way to minimize to systray...

Author
Message
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 5th Apr 2005 03:39
I'm looking for a way to minimize my program to systray. Is there any way to do this? (via a dll perhaps?)
Dsarchy
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: UK- Kent
Posted: 5th Apr 2005 05:47
Im not sure how to do it but even if you could probs wouldnt be very useful anyway, dbp programs seem to take up alot of CPU, not something you want running in the background
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 5th Apr 2005 06:01
No they dont, not if you know how to set them idle, with sync off and sleep and so on when they arent active. I have several cpusave routines laying around.
Dsarchy
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: UK- Kent
Posted: 6th Apr 2005 03:59
cool didnt know that something to remember, i wonder how you would go about triggering that code say if it was minimized with say ALT+F4?
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Apr 2005 04:21
you can activate the idlemode if there hasnt been any keyactivity or mouseactivity in the program for lets say, 10 seconds. i dont know about the minimize thing though, havent really looked into that.
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 7th Apr 2005 01:44 Edited at: 7th Apr 2005 01:44
Are there really no one who knows how to minimize a db pro program to systray????
Neil19533
21
Years of Service
User Offline
Joined: 30th Aug 2003
Location: England
Posted: 7th Apr 2005 02:31
it would be done by calling windows commands search the net for the windows api and how to use it. there are somepeople on here who know about the windows api. jessticular the moderator knows about it.

Any spelling mistakes are totally In tensional.
wmf
19
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 7th Apr 2005 03:38
here is a link for vb6. works good in vb. i tried to convert it to dbpro but ran into problems.

http://support.microsoft.com/default.aspx?scid=kb;en-us;176085
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 7th Apr 2005 05:41
Neil19533: well, ok ..

wmf: damn that looks complicated. i dont know anything about visual basic you know

isnt there someone who has a more simple solution?
wmf
19
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 7th Apr 2005 05:58
it is complicated but it uses windows api's. even if you did get an icon into the system tray problems don't end there. you have to have a menu that can be accessed by api calls. there may be a dll for menus tho. I gave up on it.
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 7th Apr 2005 06:26
hmm, i'm trying to find a program that can handle it...

Could this be a solution perhaps:
http://www.download.com/ActiveX-System-Tray-Icon/3000-2401_4-890762.html?tag=lst-0-1

?
Cryptoman
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 7th Apr 2005 10:01 Edited at: 7th Apr 2005 13:28
Since you would have to create the window that sits in the sys tray, in theory, you could hook its mouse messages. I'm currenly bored working with FreeGui and BasicGL, so I'll try to give it a hack tonight.



Edit: I have it working with a dll(20k), I'm afraid I don't have the skill to do it all in Pro code as it requires a call back procedure. You can even use balloons on xp. You just have to wait for the Pro interface-->Dll code, which I'll work on after work tommorrow.


Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 7th Apr 2005 21:55
aaw, thanks alot man keep me posted or you can email me: monz@io.dk when you have something working
Cryptoman
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 8th Apr 2005 13:17 Edited at: 9th Apr 2005 12:06
Here is Your system tray Ver 0.1. Contains silly demo, include file and small dll. I'm unable to currently capture balloon messages but am out of time tonight. Your best bet is to print the #Constants in the include file to paper so you know what to do.


Click the download button.

Edit: Get it off the link in my next post.


Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 8th Apr 2005 20:25
The demo doesnt work. It just says "Irregular number of brackets in line 17, Line 17is : NiCommand(niadd).
Cryptoman
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 9th Apr 2005 01:21
I believe the error stems from the compiler u are using not liking the expressions with contants in the include. You can either change the constants to not include expressions or upgrade to the new version of DBPro. I don't use <5.8 anymore.


Cryptoman
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: Utah Mountains
Posted: 9th Apr 2005 12:08
Constants fixed so they should work with 5.7. More features. Version .2

http://forum.thegamecreators.com/?m=forum_view&t=51995&b=8&p=0


Login to post a reply

Server time is: 2024-09-23 17:24:08
Your offset time is: 2024-09-23 17:24:08