Click here to get back home

highlight icon

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
highlight icon Lisa Pearlson 05-18-2007
Posted by Lisa Pearlson on May 18, 2007, 6:03 pm
Please log in for more thread options
When I highlight the icons of built-in apps in programs, they animate into a
different icon.
How can I add such an 'highlighted' icon to my app?

Lisa



Posted by Riki on May 18, 2007, 7:12 pm
Please log in for more thread options
Lisa Pearlson wrote:
> When I highlight the icons of built-in apps in programs, they animate into a
> different icon.
> How can I add such an 'highlighted' icon to my app?

http://forums.microsoft.com/msdn/showpost.aspx?postid=83584&siteid=1

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/

Don't think of elephants

Posted by Lisa Pearlson on May 20, 2007, 4:53 pm
Please log in for more thread options
Thanks Riki,

But the answer, I do not understand:

"And starting with WM 5.0 you can also override the icon associated with a
link (which is what ends up in the start menu folder) with a class (before
you could only override it with a single icon), using the following syntax
in the icon file:"

I am not talking about file extensions, but start menu links..
It says you can associate shortcut links with a class, like so:

<ignored>#<target app>?:classname

What is this supposed to me? Do they mean I have to register my application
window with particular (unique) classname, and then register the 2 icons
under HKCR registry key? When my application isn't running, how does it know
the classname of my application?

Lisa



> Lisa Pearlson wrote:
>> When I highlight the icons of built-in apps in programs, they animate
>> into a different icon.
>> How can I add such an 'highlighted' icon to my app?
>
> http://forums.microsoft.com/msdn/showpost.aspx?postid=83584&siteid=1
>
> Riki
>
> --
> ThemeChanger and AbstractStart for Smartphone :
> http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebsite.com/
>
> Don't think of elephants



Posted by riki on May 21, 2007, 12:43 am
Please log in for more thread options
Lisa Pearlson wrote:
> Thanks Riki,
>
> But the answer, I do not understand:
>
> "And starting with WM 5.0 you can also override the icon associated with a
> link (which is what ends up in the start menu folder) with a class (before
> you could only override it with a single icon), using the following syntax
> in the icon file:"
>
> I am not talking about file extensions, but start menu links..
> It says you can associate shortcut links with a class, like so:
>
> <ignored>#<target app>?:classname
>
> What is this supposed to me? Do they mean I have to register my application
> window with particular (unique) classname, and then register the 2 icons
> under HKCR registry key? When my application isn't running, how does it know
> the classname of my application?

So what happens is your installer creates in the registry:

[HKCU\MyAppClass\DefaultIcon\]
@="\Somewhere\Myapp.exe,-<ResourceID>"
[HKCU\MyAppClass\SelectIcon\]
@="\Somewhere\Myapp.exe,-<ResourceID>"

Then you install your app you will have a shortcut (.lnk) which will say:
0#\Somewhere\Myapp.exe?:MyAppClass

'MyAppClass' is anything you want it to be, there is no special
registration you need to do, and your app does not need to be running.

Does that answer your question?

Riki

--
ThemeChanger and AbstractStart for Smartphone :
http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebiste.com/

If life's a stage, I want better lighting.

Posted by Lisa Pearlson on May 22, 2007, 10:42 pm
Please log in for more thread options
Sure does!
Haven't tried it yet though.

Thanks!

> Lisa Pearlson wrote:
>> Thanks Riki,
>>
>> But the answer, I do not understand:
>>
>> "And starting with WM 5.0 you can also override the icon associated with
>> a link (which is what ends up in the start menu folder) with a class
>> (before you could only override it with a single icon), using the
>> following syntax in the icon file:"
>>
>> I am not talking about file extensions, but start menu links..
>> It says you can associate shortcut links with a class, like so:
>>
>> <ignored>#<target app>?:classname
>>
>> What is this supposed to me? Do they mean I have to register my
>> application window with particular (unique) classname, and then register
>> the 2 icons under HKCR registry key? When my application isn't running,
>> how does it know the classname of my application?
>
> So what happens is your installer creates in the registry:
>
> [HKCU\MyAppClass\DefaultIcon\]
> @="\Somewhere\Myapp.exe,-<ResourceID>"
> [HKCU\MyAppClass\SelectIcon\]
> @="\Somewhere\Myapp.exe,-<ResourceID>"
>
> Then you install your app you will have a shortcut (.lnk) which will say:
> 0#\Somewhere\Myapp.exe?:MyAppClass
>
> 'MyAppClass' is anything you want it to be, there is no special
> registration you need to do, and your app does not need to be running.
>
> Does that answer your question?
>
> Riki
>
> --
> ThemeChanger and AbstractStart for Smartphone :
> http://www.IfIHadADollarForEveryTimeSomeoneSaidThatIWouldHaveMyOwnWebiste.com/
>
> If life's a stage, I want better lighting.



Similar ThreadsPosted
was not able to highlight the links in sms June 23, 2006, 3:52 pm
Start Icon - change icon image when they have focus? April 4, 2006, 12:01 pm
Icon on the homescreen May 31, 2005, 3:57 pm
App icon specification June 7, 2006, 5:17 pm
How do you use the small icon? August 9, 2006, 10:01 am
Specify Application Icon with C++? November 4, 2006, 4:26 am
Icon in title bar September 11, 2007, 4:46 am
Application Icon Transparency June 14, 2005, 11:45 am
QVGA Icon Sizes September 11, 2005, 9:26 am
Icon for Running Application August 26, 2006, 4:30 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap