It be so much easier to add the FontColor to the PushButton as it has the FontSize and more allready.

Jonathon
----- Original Message ----- From: "Terry Ford" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Thursday, October 26, 2006 12:29 PM
Subject: Re: pushbutton text color



On Oct 26, 2006, at 7:44 AM, [EMAIL PROTECTED] wrote:

Is it possible to change the textcolor of the text in a pushbutton or do I have to create my own button?

No, but you can overlay the Pushbutton with a Canvas and place your text there. For example:

Using Mac OSX, place a canvas control the same size directly over a default "Untitled" Pushbutton. Since I'm using System size 13 as my default font and size, I deleted the "Untitled" text from the pushbutton and put the following code in the Canvas's Paint event.

  g.ForeColor=&cFF0000
  g.TextFont="System"
  g.TextSize=13
  g.DrawString "Untitled", 15,15

This will draw the text "Untitled" in Red over the pushbutton.

Adjustments would have to be made for platform, button size, etc.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.13/500 - Release Date: 10/26/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.13/500 - Release Date: 10/26/2006

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to