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.

DLL Talk / System Tray dll..... a basic start

Author
Message
dapaintballer 331
18
Years of Service
User Offline
Joined: 20th Dec 2005
Location: USA
Posted: 16th Jun 2006 23:34
I've always wanted to have my programs be able to minimze to system tray, and if you right click on the icon a menu pops up.

I'm not 100% sure this will be the full solution to make a menu but it seems C:/windows/system32/mslbui.dll does something with the system tray icons, when you right click them.

I'll try to look more into it, or is there already a plugin or something to use the system tray?

~`Gamerssoft.com'~
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 16th Jun 2006 23:36
When you place an icon in it, you create popup menu's and attach them to it... nothing to do with that dll.
dapaintballer 331
18
Years of Service
User Offline
Joined: 20th Dec 2005
Location: USA
Posted: 16th Jun 2006 23:43 Edited at: 17th Jun 2006 00:08
so what are you saying? do you know a way to make menus attached to the icons?

i found basic info, microsoft says its a "LangageBar Add In" but thats about it

and how do you get programs to minimze to system tray instead of task bar?

edit:

aha, here are a few functions in that dll that cought my eye, any idea how to use them or anything?

only the first one is an "export function" the others are "import functions"

CTFGetLangBarAddIn
DestroyIcon
FindResourceA
LoadResource
LoadImageA

~`Gamerssoft.com'~
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 16th Jun 2006 23:53
hmmm good idea, if I ever get time, I'll try to do something like this only problem I see is getting messages from it(how would you get them)

JouleOS and friends
great thanks to http://galekus.com for FREE HOSTING!
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Jun 2006 14:58
the objects are:
NotifyIcon
ContextMenu

OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 17th Jun 2006 16:36
Did have source code for doing this (years ago as well) - will try and find the old plug-in code.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
FrEaK_sK8
18
Years of Service
User Offline
Joined: 11th Mar 2006
Location: errr
Posted: 29th Jun 2006 18:18
You could make a dll for that ...Try doing something like that with purebasic.
x:/program files/purebasic/systemtray.pb

Sk8 or Die madafaka
Bmad6
19
Years of Service
User Offline
Joined: 25th Aug 2005
Location: Virginia, United States
Posted: 29th Jun 2006 19:02
hmm ill take a look. thanks

"Catch me ridin' dirty" - Peace Out
FrEaK_sK8
18
Years of Service
User Offline
Joined: 11th Mar 2006
Location: errr
Posted: 1st Jul 2006 20:28 Edited at: 1st Jul 2006 20:33
Some .exe example for minimizing to sys. tray. that I made
in purebasic ( look at the attached file ) , and here's the purebasic code if it helps ...


EDIT: sry ... forgot to attach the icon needed for file ( i putt it all in .rar file now
EDIT2: Updated again... Now it should work..

Sk8 or Die madafaka

Attachments

Login to view attachments
EsteemDE
19
Years of Service
User Offline
Joined: 5th Aug 2005
Location:
Posted: 4th Jul 2006 11:04
@FrEaK_sK8 - Can I ask you something? I was just wondering what a certain part in your code is meant to do... I dont use purebasic... so maybe it does something... but if it was DBP... it wouldnt do anything. Here is the code I am referring to:



Current Project - Dark NET System Framework DLL
Percentage - 14%.......Lines of Code - 9,171
This Info Updated - 6/18/06 12:10pm
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 4th Jul 2006 11:43
It allows the creation of gadgets for the opened window (which is ID 0) - a gadget can be a button, icon, scrollbar etc etc

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
X Trade
20
Years of Service
User Offline
Joined: 19th Feb 2004
Location: near bristol, UK
Posted: 9th Jul 2006 18:00
i think there was a dll for making your program go to the task bar and back again, on TCA's site

www.AoFP.co.uk
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 10th Jul 2006 00:44
yea i thought there was too but it didn't work on my pc for some reason

JouleOS and friends
great thanks to http://galekus.com for FREE HOSTING!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th Jul 2006 22:43 Edited at: 12th Jul 2006 22:44
It required two DLLs - one for the main program and one for the icon. If it doesn't work for another reason, then I cant help.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
Varix
18
Years of Service
User Offline
Joined: 23rd May 2006
Location:
Posted: 30th Jul 2006 23:35
Hey! I know a little vb, and user32.dll has the function to minimize to the tray.
Jack LOL
18
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card

Login to post a reply

Server time is: 2024-11-22 12:01:57
Your offset time is: 2024-11-22 12:01:57