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
  #11 (permalink)  
Old 07-08-2007, 11:27 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

Thanks Agraham, That did the trick....Never happend before with any other app....that was the first time, and my system is about 6 months old...with a few hundred apps running...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #12 (permalink)  
Old 07-08-2007, 11:32 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Cableguy View Post
Never happend before with any other app
It's not app dependent and no-one seems to know quite why it happens and Microsoft never fixed it. Some systems suffer, on others it never happens. It doesn't happen on my laptop but it occurred every couple of months on my main system (now on Vista).

Keep that little app - you may need it again in a month or so!
Reply With Quote
  #13 (permalink)  
Old 10-12-2007, 02:29 AM
Junior Member
 
Join Date: Jun 2007
Posts: 16
Default

thanks a lot,just what I need
Reply With Quote
  #14 (permalink)  
Old 11-26-2007, 05:15 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 all,

The old NotifyIcon.DLL for PPC does not work for apps compiled by B4PPC version 5.80 and above. This is because the icon name inside the .EXE has changed from "#32512" (default resource name) to "B4PICON".

The new attached NotifyIcon.DLL targets by default to version 5.80 and above (at least until the icon name remains the same).

But setting it's newly added property Version580andAbove = False will work fine for previous versions also.

No problem and therefore no new version for NotifyIconDesktop.DLL

This issue pointed by alfcen here http://www.basic4ppc.com/forum/showt...=6437#post6437

Thank you Robert!
Attached Files
File Type: zip NotifyIcon.zip (2.8 KB, 40 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #15 (permalink)  
Old 12-27-2007, 11:50 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,

Attached in the zip is the new NotifyIcon compatible with Basic4PPC v6.0.

A new property added: Version6andAbove.
Set it to True (default) to work with v6.0
Attached Files
File Type: zip NotifyIcon_03.zip (5.1 KB, 82 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #16 (permalink)  
Old 03-14-2008, 12:50 AM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Has anyone else had an issue where no Icon appears on the Today Screen Toolbar?

I have written my own code using this Library, but no Icon appeared. So I downloaded the "Test3" sample, compiled it (non optimized), etc....still no Icon.

I have the Form Library, NotifyIcon Library and the ni.ico all in the same directory as the ".exe" file. I have the latest version of the NotifyIcon Library. I am running B4P 6.05 / WM5 on a Dell Axim X51v.

On the Desktop, the Icon appears in the SysTray and if clicked triggers the ni_click procedure fine. But nothing works on the Device.

Obviously, I'm missing something. Any Ideas?

Burd

Last edited by burd27 : 03-14-2008 at 12:56 AM.
Reply With Quote
  #17 (permalink)  
Old 03-15-2008, 01:59 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Burd,
It works well on an iPAQ hx210 WM6.0 with this code.
To rule out all odds, please make sure that you have
assigned a 256 color icon in File/Chose Icon:

For the device you won't even need the Formlib.dll

On a bad note, this does not show the icon in the tray
of an iPAQ h2100 running PPC 2003. If you tap on the
place in the tray where it is supposed to be then the
program comes up again, though.

Code:
Sub App_Start
  ni.New1
  ni.Version580andAbove = true 'del for optimized compiler
  ni.Add
End Sub

Sub ni_Click
  frmMain.Show
End Sub
Reply With Quote
  #18 (permalink)  
Old 03-15-2008, 02:51 PM
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default

Thanks Alfcen for your reply.

In essence your code is the same as mine. What I have discovered is that if I "Optimize Compile" it, it works fine and the Icon appears. If I compile it "standard" it doesn't appear, nor does the program fire up when you "click" the spot where the icon should have been.

I am running B4P 6.05 on the device, so I have tried the "ni.Version6andAbove = True", but it makes no difference to the above findings. (Which I would suspect as "True" is the default value.)

So now if I optimize compile it, then all is fine. But the little problem that I have at the moment, is that the application that I wanted to use the "ni" on, also uses the Calendar control, which for the time being is not compatible at all with Optimized Compile. (Although, I do believe that Erel may be working on that one for a future release. I wait in hope!) : )

Thanks again.
Reply With Quote
  #19 (permalink)  
Old 06-17-2008, 11:12 AM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 16
Default

Quote:
Originally Posted by dzt View Post
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...

I'm running sample Test3.Exe and error :

"error CS1501: aucune surcharge pour la méthode 'GetControlStringOrRef' ne prends pas d'argument '0'
line number 6
line ni.New1

???? my version 4PPC is 6.30
thanks
stef
Reply With Quote
  #20 (permalink)  
Old 06-17-2008, 11:21 AM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 16
Default

it's OK with NotifyIcon_03.zip !
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 08:55 PM
LinkLabel - Libary hoffi Additional Libraries 14 05-18-2007 08:40 PM


All times are GMT. The time now is 09:19 PM.


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