Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


NotifyIcon Libary


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2007, 02:27 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default NotifyIcon Libary

Allows to display an icon to Notification Area on PPC (NotifyIcon.dll) and to Systam Tray on PC (NotifyIconDesktop.dll)

Functions:
Add - Adds the application Icon to Notification Area for PPC and the icon ni.ico to System Tray for PC. For PPC the icon should be 16x16 pixels.

Remove - removes the Icon


Properties:
IconText - (PC only) The text to display when the mouse is over the icon

Events:
Click - Fires when the icon is clicked

The PPC source code (with some modifications) is from NotifyClient sample found on MSDN (Microsoft Developers Network)

Attached is a zip file with DLLs and sample ni.ico

PPC version c# source code can be downloaded from here http://www.terracom.gr/basic4ppc/NotifyIcon_source.zip
PC version c# source code can be downloaded from here http://www.terracom.gr/basic4ppc/Not...top_source.zip

For how to use it, see dzSpy application I've posted here dzSpy - Spy and Task Manager App - Open Source
Attached Files
File Type: zip NotifyIcon.zip (5.1 KB, 238 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 02:30 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

I not to sure what this does!

Can you post a simple example?

P.S.: Your work is great....But form me, that i'm not familiar to some of the expressions and terms you use, or some device OS events, it gets difficult to understand what some of you dll actually do!!
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 02:48 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See attached pictures
Attached Images
File Type: jpg pic1.jpg (17.5 KB, 253 views)
File Type: jpg pic2.jpg (15.8 KB, 218 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 03:18 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

And a short sample.

Compile it (needs notifyicon libraries and formlib) and put test3.exe, NotifyIcon.dll and FormLib.dll in your device
Run test3.exe, press "Show Icon", then the cross upper right.

You will see the icon in Notification Area (as in pic1)

Click the icon...
Attached Files
File Type: zip test3.zip (9.2 KB, 147 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 07-03-2007 at 03:26 PM. Reason: add ni.ico to zip
Reply With Quote
  #5 (permalink)  
Old 07-03-2007, 03:36 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 79
Default

Hi Dimitris,

Thanks for your new dll which is usefull for some programs.
I don't understand the use of ni.IconText ?

Please

Best regards

JJ M
Reply With Quote
  #6 (permalink)  
Old 07-03-2007, 03:43 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi JJM,

IconText is useful only for desktop computer not for PPC.
Put your mouse pointer over any icon in System Tray and you will see some text to appear.

For your program you could set this text using the IconText property.

Run on your PC test3.sbp I've posted.

Regards
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #7 (permalink)  
Old 07-03-2007, 03:50 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

At least for me when icontext is set it get covered by the TaskBar so the text is not visible...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #8 (permalink)  
Old 07-04-2007, 08:03 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi GableGuy,

I don't know why this happens to your computer. I've tested it in several PCs with various operating systems (Windows 2000, XP, Vista) and works fine in every case.

But I've made the library for PPC. The desktop version made only to help to design the app in basic4ppc. And in that case (PPC) IconText is a dummy property.

Regards
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #9 (permalink)  
Old 07-04-2007, 11:41 AM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 79
Default

Hi,

For me on my PC and on my PPC (HP ipac 2490) all is fine.

Best regards

JJ M
Reply With Quote
  #10 (permalink)  
Old 07-08-2007, 09:57 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
At least for me when icontext is set it get covered by the TaskBar so the text is not visible...
Are you running XP and is popup text from other icons on the task bar also covered by the task bar? If so then it is a known bug and either this short program or the batch file in the text file should fix it.

This used to happen occasionally on my XP system and when it did I just ran FixToolTips.exe for an instant fix.
Attached Files
File Type: zip FixToolTips.zip (15.4 KB, 56 views)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
NotifyIcon.dll dosen´t run Bobbes Bug Reports 2 05-25-2008 07:55 PM
LinkLabel - Libary hoffi Additional Libraries 14 05-18-2007 07:40 PM


All times are GMT. The time now is 12:22 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0