Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P 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: Ioannina, Greece
Posts: 356
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 http://www.basic4ppc.com/forum/share-your-creations/452-dzspy-spy-task-manager-app-open-source.html
Attached Files
File Type: zip NotifyIcon.zip (5.1 KB, 523 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: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
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 - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See attached pictures
Attached Images
File Type: jpg pic1.jpg (17.5 KB, 412 views)
File Type: jpg pic2.jpg (15.8 KB, 336 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: Ioannina, Greece
Posts: 356
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, 258 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 online now
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 150
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: Ioannina, Greece
Posts: 356
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: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
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 - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
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: Ioannina, Greece
Posts: 356
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 online now
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 150
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: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
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, 97 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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
LinkLabel - Libary hoffi Additional Libraries 35 10-17-2009 05:46 PM
NotifyIcon.dll dosen´t run Bobbes Bug Reports 2 05-25-2008 07:55 PM


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0