PC Review


Reply
Thread Tools Rate Thread

How to add icons to the Command Bar on the Today Screen?

 
 
=?Utf-8?B?VG9ueSBTZWxrZQ==?=
Guest
Posts: n/a
 
      2nd Jun 2006
I am looking for documentation on how I can use the Windows Mobile 5.0 PPC or
Compact Framework 2.0 APIs to add/register an application icon to the
"command bar" area at the bottom of the Today screen. I am just looking for
a way to add/modify/remove the icon and to trap/respond to the messages it
generates (i.e. click/tap events).

I have tried using P/Invoke with ShellNotifyIcon and its related
functions/structures, however it doesn't produce any visible change to the
emulator screen (though all functions execute appropriately and return
success-related values). Am I on the right track and just missing a bug or
am I totally down the wrong path?

Tony
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
Posts: n/a
 
      2nd Jun 2006
Have you tried this?

http://msdn.microsoft.com/library/?u...asp?frame=true

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Tony Selke" wrote:

> I am looking for documentation on how I can use the Windows Mobile 5.0 PPC or
> Compact Framework 2.0 APIs to add/register an application icon to the
> "command bar" area at the bottom of the Today screen. I am just looking for
> a way to add/modify/remove the icon and to trap/respond to the messages it
> generates (i.e. click/tap events).
>
> I have tried using P/Invoke with ShellNotifyIcon and its related
> functions/structures, however it doesn't produce any visible change to the
> emulator screen (though all functions execute appropriately and return
> success-related values). Am I on the right track and just missing a bug or
> am I totally down the wrong path?
>
> Tony

 
Reply With Quote
 
=?Utf-8?B?VG9ueSBTZWxrZQ==?=
Guest
Posts: n/a
 
      3rd Jun 2006
Yes, your article was one of only two decent articles I found on this
particular topic. I followed yours first, porting the code over to Visual
Studio 2005 and the Windows Mobile 5 PPC emulator. It exhibits the same
response (or lack thereof) as my second attempt; which is to say, there are
no errors and no invalid handles and nothing to indicate failure. However,
there is also no icon anywhere to be seen.

The other article I found was on Code Project:
http://www.codeproject.com/netcf/compframe2.asp

The current solution I am using is sort of a hybrid between your sample and
their solution. I liked your simplicity, however I needed it to live more
cleanly within a DLL assembly and be more easily used by mid-level developers
in addition to supporting text.

Regardless, none of my attempts render errors or success. Are you able to
port your article's sample to VS2005 and WM5PPC? I would be happy to supply
my attempt if you are interested.

Tony


"Alex Yakhnin [MVP]" wrote:

> Have you tried this?
>
> http://msdn.microsoft.com/library/?u...asp?frame=true
>
> --
> Alex Yakhnin, .NET CF MVP
> www.intelliprog.com | www.opennetcf.org
>
>
> "Tony Selke" wrote:
>
> > I am looking for documentation on how I can use the Windows Mobile 5.0 PPC or
> > Compact Framework 2.0 APIs to add/register an application icon to the
> > "command bar" area at the bottom of the Today screen. I am just looking for
> > a way to add/modify/remove the icon and to trap/respond to the messages it
> > generates (i.e. click/tap events).
> >
> > I have tried using P/Invoke with ShellNotifyIcon and its related
> > functions/structures, however it doesn't produce any visible change to the
> > emulator screen (though all functions execute appropriately and return
> > success-related values). Am I on the right track and just missing a bug or
> > am I totally down the wrong path?
> >
> > Tony

 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      3rd Jun 2006
The SDF (www.opennetcf.org/sdf/) contains the
OpenNETCF.Windows.Forms.NotifyIcon which wraps the ShellNotifyIcon API in a
component which I wrote so that it closely matches the desktop equivalent.
It also has designer support.

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"Tony Selke" <(E-Mail Removed)> wrote in message
news97D4C35-7149-4545-A967-(E-Mail Removed)...
> Yes, your article was one of only two decent articles I found on this
> particular topic. I followed yours first, porting the code over to Visual
> Studio 2005 and the Windows Mobile 5 PPC emulator. It exhibits the same
> response (or lack thereof) as my second attempt; which is to say, there
> are
> no errors and no invalid handles and nothing to indicate failure.
> However,
> there is also no icon anywhere to be seen.
>
> The other article I found was on Code Project:
> http://www.codeproject.com/netcf/compframe2.asp
>
> The current solution I am using is sort of a hybrid between your sample
> and
> their solution. I liked your simplicity, however I needed it to live more
> cleanly within a DLL assembly and be more easily used by mid-level
> developers
> in addition to supporting text.
>
> Regardless, none of my attempts render errors or success. Are you able to
> port your article's sample to VS2005 and WM5PPC? I would be happy to
> supply
> my attempt if you are interested.
>
> Tony
>
>
> "Alex Yakhnin [MVP]" wrote:
>
>> Have you tried this?
>>
>> http://msdn.microsoft.com/library/?u...asp?frame=true
>>
>> --
>> Alex Yakhnin, .NET CF MVP
>> www.intelliprog.com | www.opennetcf.org
>>
>>
>> "Tony Selke" wrote:
>>
>> > I am looking for documentation on how I can use the Windows Mobile 5.0
>> > PPC or
>> > Compact Framework 2.0 APIs to add/register an application icon to the
>> > "command bar" area at the bottom of the Today screen. I am just
>> > looking for
>> > a way to add/modify/remove the icon and to trap/respond to the messages
>> > it
>> > generates (i.e. click/tap events).
>> >
>> > I have tried using P/Invoke with ShellNotifyIcon and its related
>> > functions/structures, however it doesn't produce any visible change to
>> > the
>> > emulator screen (though all functions execute appropriately and return
>> > success-related values). Am I on the right track and just missing a
>> > bug or
>> > am I totally down the wrong path?
>> >
>> > Tony



 
Reply With Quote
 
=?Utf-8?B?VG9ueSBTZWxrZQ==?=
Guest
Posts: n/a
 
      5th Jun 2006
This worked great, thank you! I ended up getting the 1.4 source code because
the 2.0 release appears to be binaries-only at this time (though I recompiled
the NotifyIcon class and it's dependancies onder CF 2.0).

Do you know when the 2.0 source code is expected to be made available?

Thanks again!

Tony

"Peter Foot [MVP]" wrote:

> The SDF (www.opennetcf.org/sdf/) contains the
> OpenNETCF.Windows.Forms.NotifyIcon which wraps the ShellNotifyIcon API in a
> component which I wrote so that it closely matches the desktop equivalent.
> It also has designer support.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.peterfoot.net | www.inthehand.com
>
> "Tony Selke" <(E-Mail Removed)> wrote in message
> news97D4C35-7149-4545-A967-(E-Mail Removed)...
> > Yes, your article was one of only two decent articles I found on this
> > particular topic. I followed yours first, porting the code over to Visual
> > Studio 2005 and the Windows Mobile 5 PPC emulator. It exhibits the same
> > response (or lack thereof) as my second attempt; which is to say, there
> > are
> > no errors and no invalid handles and nothing to indicate failure.
> > However,
> > there is also no icon anywhere to be seen.
> >
> > The other article I found was on Code Project:
> > http://www.codeproject.com/netcf/compframe2.asp
> >
> > The current solution I am using is sort of a hybrid between your sample
> > and
> > their solution. I liked your simplicity, however I needed it to live more
> > cleanly within a DLL assembly and be more easily used by mid-level
> > developers
> > in addition to supporting text.
> >
> > Regardless, none of my attempts render errors or success. Are you able to
> > port your article's sample to VS2005 and WM5PPC? I would be happy to
> > supply
> > my attempt if you are interested.
> >
> > Tony
> >
> >
> > "Alex Yakhnin [MVP]" wrote:
> >
> >> Have you tried this?
> >>
> >> http://msdn.microsoft.com/library/?u...asp?frame=true
> >>
> >> --
> >> Alex Yakhnin, .NET CF MVP
> >> www.intelliprog.com | www.opennetcf.org
> >>
> >>
> >> "Tony Selke" wrote:
> >>
> >> > I am looking for documentation on how I can use the Windows Mobile 5.0
> >> > PPC or
> >> > Compact Framework 2.0 APIs to add/register an application icon to the
> >> > "command bar" area at the bottom of the Today screen. I am just
> >> > looking for
> >> > a way to add/modify/remove the icon and to trap/respond to the messages
> >> > it
> >> > generates (i.e. click/tap events).
> >> >
> >> > I have tried using P/Invoke with ShellNotifyIcon and its related
> >> > functions/structures, however it doesn't produce any visible change to
> >> > the
> >> > emulator screen (though all functions execute appropriately and return
> >> > success-related values). Am I on the right track and just missing a
> >> > bug or
> >> > am I totally down the wrong path?
> >> >
> >> > Tony

>
>
>

 
Reply With Quote
 
Chandra
Guest
Posts: n/a
 
      30th Jun 2006
Hi Tony,

I am planning to do the same thing.

Can u please pass me on what to do and how to do.If you have example
projects that would be awesome.

Thanks very much.

Cheers

Chandra

Tony Selke wrote:
> This worked great, thank you! I ended up getting the 1.4 source code because
> the 2.0 release appears to be binaries-only at this time (though I recompiled
> the NotifyIcon class and it's dependancies onder CF 2.0).
>
> Do you know when the 2.0 source code is expected to be made available?
>
> Thanks again!
>
> Tony
>
> "Peter Foot [MVP]" wrote:
>
> > The SDF (www.opennetcf.org/sdf/) contains the
> > OpenNETCF.Windows.Forms.NotifyIcon which wraps the ShellNotifyIcon API in a
> > component which I wrote so that it closely matches the desktop equivalent.
> > It also has designer support.
> >
> > Peter
> >
> > --
> > Peter Foot
> > Windows Embedded MVP
> > www.peterfoot.net | www.inthehand.com
> >
> > "Tony Selke" <(E-Mail Removed)> wrote in message
> > news97D4C35-7149-4545-A967-(E-Mail Removed)...
> > > Yes, your article was one of only two decent articles I found on this
> > > particular topic. I followed yours first, porting the code over to Visual
> > > Studio 2005 and the Windows Mobile 5 PPC emulator. It exhibits the same
> > > response (or lack thereof) as my second attempt; which is to say, there
> > > are
> > > no errors and no invalid handles and nothing to indicate failure.
> > > However,
> > > there is also no icon anywhere to be seen.
> > >
> > > The other article I found was on Code Project:
> > > http://www.codeproject.com/netcf/compframe2.asp
> > >
> > > The current solution I am using is sort of a hybrid between your sample
> > > and
> > > their solution. I liked your simplicity, however I needed it to live more
> > > cleanly within a DLL assembly and be more easily used by mid-level
> > > developers
> > > in addition to supporting text.
> > >
> > > Regardless, none of my attempts render errors or success. Are you able to
> > > port your article's sample to VS2005 and WM5PPC? I would be happy to
> > > supply
> > > my attempt if you are interested.
> > >
> > > Tony
> > >
> > >
> > > "Alex Yakhnin [MVP]" wrote:
> > >
> > >> Have you tried this?
> > >>
> > >> http://msdn.microsoft.com/library/?u...asp?frame=true
> > >>
> > >> --
> > >> Alex Yakhnin, .NET CF MVP
> > >> www.intelliprog.com | www.opennetcf.org
> > >>
> > >>
> > >> "Tony Selke" wrote:
> > >>
> > >> > I am looking for documentation on how I can use the Windows Mobile 5.0
> > >> > PPC or
> > >> > Compact Framework 2.0 APIs to add/register an application icon to the
> > >> > "command bar" area at the bottom of the Today screen. I am just
> > >> > looking for
> > >> > a way to add/modify/remove the icon and to trap/respond to the messages
> > >> > it
> > >> > generates (i.e. click/tap events).
> > >> >
> > >> > I have tried using P/Invoke with ShellNotifyIcon and its related
> > >> > functions/structures, however it doesn't produce any visible change to
> > >> > the
> > >> > emulator screen (though all functions execute appropriately and return
> > >> > success-related values). Am I on the right track and just missing a
> > >> > bug or
> > >> > am I totally down the wrong path?
> > >> >
> > >> > Tony

> >
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop icons and command bar gone blue screen only =?Utf-8?B?UENOT1ZJQ0U=?= Windows XP Performance 1 6th Sep 2007 08:15 PM
Removing all Command Bar icons (Home, Feeds, Tools, Help,...) from IE7 Command Bar Sterling Windows XP Internet Explorer 2 10th Nov 2006 03:24 AM
Outlook Today Screen - Customize Outlook Today Limit? Lloyd Lindsay Microsoft Outlook Discussion 0 31st May 2006 05:27 PM
Today screen in Outlook will not come up from Today button. =?Utf-8?B?QURX?= Microsoft Outlook Installation 1 14th Mar 2005 06:51 AM
Outlook Today Icons Seth Washeck Microsoft Outlook VBA Programming 1 21st Jul 2003 08:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.