locked
Changing Font Colour RRS feed

  • Question

  • Does anyone know how do I change the font colour of buttons or text on the graphics window. Thanks for the help in advance.

    Sincerely,


    Anthony :)
    Tuesday, January 17, 2012 7:59 AM

Answers

  • Hi Anthony,

    Does this code answer your question?

    GraphicsWindow.PenColor = "Red"
    GraphicsWindow.BrushColor = "Blue"
    GraphicsWindow.DrawBoundText(10,10,300,"Some Text")
    GraphicsWindow.DrawEllipse(10,50,50,50)
    GraphicsWindow.BrushColor = "Green"
    B = Controls.AddButton("Click Here",130,30)
    Controls.SetSize(B,100,40)

    Regards

    Bert

    • Proposed as answer by Waffle Ninja Wednesday, January 18, 2012 9:02 PM
    • Marked as answer by Tony93 Thursday, January 19, 2012 7:49 AM
    Tuesday, January 17, 2012 8:19 AM

All replies

  • Hi Anthony,

    Does this code answer your question?

    GraphicsWindow.PenColor = "Red"
    GraphicsWindow.BrushColor = "Blue"
    GraphicsWindow.DrawBoundText(10,10,300,"Some Text")
    GraphicsWindow.DrawEllipse(10,50,50,50)
    GraphicsWindow.BrushColor = "Green"
    B = Controls.AddButton("Click Here",130,30)
    Controls.SetSize(B,100,40)

    Regards

    Bert

    • Proposed as answer by Waffle Ninja Wednesday, January 18, 2012 9:02 PM
    • Marked as answer by Tony93 Thursday, January 19, 2012 7:49 AM
    Tuesday, January 17, 2012 8:19 AM
  • Yes it does. Thanks for that :)

    Sincerely,


    Anthony :)
    Thursday, January 19, 2012 7:50 AM