command key symbol on bottons (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: nilobjectexception
Next thread: Why does this crash rb?


[OT] How to compile Carbon Shared Library w/ProjectBuilder?   -   Hadley, Joshua
  command key symbol on bottons   -   Pedro fp
   Re: command key symbol on bottons   -   Joseph J. Strout
    Re: command key symbol on bottons   -   Ricardo Rojas
    Re: command key symbol on bottons   -   Ricardo Rojas

command key symbol on bottons
Date: 12.12.02 03:28 (Thu, 12 Dec 2002 12:28:08 +1000)
From: Pedro fp
G'day Folks

In some places in my app I'd like to make command key indicators appear
on buttons when the command key is held down, a-la BBEdit's find
dialog. Making the button labels change is simple enough with a timer
but how do I get the command symbol?

Cheers, Pedro :-)

Web: <http://www.pedro.net.au> PGP Key ID: 387CD96F
Instant messaging... AIM: bandidoOfOz ICQ: 27671678 Jabber: pedrofp
MSN: <email address removed> Yahoo: pedro_fp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Without slavery, no cotton; without cotton, no modern industry. Slavery
has given their value to the colonies; the colonies have created world
trade; world trade is the necessary condition of large-scale industry."
Karl Marx to Annenkov, 28 December 1846



---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: command key symbol on bottons
Date: 12.12.02 06:14 (Wed, 11 Dec 2002 21:14:59 -0800)
From: Joseph J. Strout
At 12:28 PM +1000 12/12/02, Pedro fp wrote:

>In some places in my app I'd like to make command key indicators
>appear on buttons when the command key is held down, a-la BBEdit's
>find dialog. Making the button labels change is simple enough with a
>timer but how do I get the command symbol?

See the "Convert Apple Glyphs" demo project on the CD or included (I
believe) with the 4.5 download, next to the "Text Utilities" project.

Best,
- Joe

Re: command key symbol on bottons
Date: 12.12.02 05:15 (Thu, 12 Dec 2002 00:15:03 -0400)
From: Ricardo Rojas
Pedro fp, <email address removed>, wrote:

>In some places in my app I'd like to make command key indicators appear
>on buttons when the command key is held down, a-la BBEdit's find
>dialog. Making the button labels change is simple enough with a timer
>but how do I get the command symbol?

In the timer put

if keyboard.asyncCommandKey then
pushButton.caption= chr(17) + "yourLabel"
end

Of course, the font of the pushButton has to be able to display it;
Geneva doesn't, Chicago does, etc.

HTH
>>>®<<

BTW, thanks for the timer tip; kinda cool

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: command key symbol on bottons
Date: 13.12.02 00:24 (Thu, 12 Dec 2002 19:24:26 -0400)
From: Ricardo Rojas
Pedro fp, <email address removed>, wrote:

>In some places in my app I'd like to make command key indicators appear
>on buttons when the command key is held down, a-la BBEdit's find
>dialog. Making the button labels change is simple enough with a timer
>but how do I get the command symbol?

chr(17). Make sure the font is able to display it, like Chicago.

HTH
>>>®<<

BTW, thanks for the timer tip.

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>