Groups > IBM > WebSphere Studio Device Developer > Re: Display an ampersand in a Label




Re: Display an ampersand in a Label

Re: Display an ampersand in a Label
Fri, 02 Nov 2007 18:04:24 -070
JRancier@penntraffic.com wrote:
> On 11/02/2007 04:04:01 PM JRancierwrote:
> 
>> When I attempt to display the ampersand (&) in a Label the
character
>> doesn't display, but underlines the following character.  Is there
>> something special I need to do here?  E.g., attempting to display 
> (without
>> the quotes) "Stop&Shop" , what gets displayed is
"StopShop.  Any ideas?
> 
> That's with the seconds 'S' underlined.

Microsoft underlines the first thing following an ampersand. According 
to this link:
http://support.microsoft.com/kb/q113490/
... you can get around this by using "Stop&&Shop" rather than

"Stop&Shop" as your menu item. (I haven't tried this, but since MS
is 
the one doing the underlining, I'm assuming they'll also correctly 
interpret the && :-)

Hope this helps!

	Andrew Jr.

======================================================================
IBM Phoenix Labs (OTI)
2929 North Central Avenue
Post Reply
Display and ampersand in a Label
Fri, 2 Nov 2007 20:04:01 +0000
When I attempt to display the ampersand (&) in a Label the character 
doesn't display, but underlines the following character.  Is there 
something special I need to do here?  E.g., attempting to display (without 
the quotes) "Stop&Shop" , what gets displayed is "StopShop. 
Any ideas? 
Post Reply
Re: Display an ampersand in a Label
Fri, 2 Nov 2007 20:05:40 +0000
On 11/02/2007 04:04:01 PM JRancierwrote:

>When I attempt to display the ampersand (&) in a Label the character
>doesn't display, but underlines the following character.  Is there
>something special I need to do here?  E.g., attempting to display 
(without
>the quotes) "Stop&Shop" , what gets displayed is
"StopShop.  Any ideas?

Post Reply
Re: Display an ampersand in a Label
Mon, 5 Nov 2007 14:12:58 +0000
On 11/02/2007 09:04:24 PM Andrew Cornwallwrote:

>JRancier@penntraffic.com wrote:
>> On 11/02/2007 04:04:01 PM JRancierwrote:
>>
>>> When I attempt to display the ampersand (&) in a Label the
character
>>> doesn't display, but underlines the following character.  Is there
>>> something special I need to do here?  E.g., attempting to display
>> (without
>>> the quotes) "Stop&Shop" , what gets displayed is
"StopShop.  Any 
ideas?
>>
>> That's with the seconds 'S' underlined.
>
>Microsoft underlines the first thing following an ampersand. According
>to this link:
>http://support.microsoft.com/kb/q113490/
>.... you can get around this by using "Stop&&Shop" rather
than
>"Stop&Shop" as your menu item. (I haven't tried this, but
since MS is
>the one doing the underlining, I'm assuming they'll also correctly
>interpret the && :-)
>

Thanks Andrew, that did the job, is it just a Windows Mobile issue?  It 
works fine on XP.  I hate to have to process every character I display 
before assigning it.  Not only that, but now I need to keep track of the 
OS I'm running on as well... Not to mention the fact that String 
Post Reply
Re: Display an ampersand in a Label
Mon, 05 Nov 2007 17:16:38 -070
JRancier@penntraffic.com wrote:
> Thanks Andrew, that did the job, is it just a Windows Mobile issue?  It 
> works fine on XP.  I hate to have to process every character I display 
> before assigning it.  Not only that, but now I need to keep track of the 
> OS I'm running on as well... Not to mention the fact that String 
> manipulation is only partially supported with CDC 1.0/PP 1.0

I would have expected this to happen on all Windows platforms - and I'm 
a little surprised that you don't see it on XP as well. Are you using 
the same version of VM / class libraries on both? I know the 5.7 stream 
talks to native widgets in a different way than the 6.1 stream. So a fix 
might simply be to move to the stream that you find more appropriate, if 
you have that option.

     Andrew Jr.

======================================================================
IBM Phoenix Labs (OTI)
2929 North Central Avenue
Post Reply
<< Previous 1 2 3 Next >>
( Page 1 of 3 )
about | contact