How To Change Color Of A Drawing

jothis

Active Member
Licensed User
Hi Friends

Here i have a problem i Draw a rectangle in a form and filled a color

Form1.Show
b1.New1 (cGray) Here I want To Change color to Custom Color code like->220,220,220
p1.New1 (cBlack)
d1.New1("Form1",False)
r1.New1(10,20,100, 100)
d1.FillRectangle(b1.Value, r1.Value)
d1.DrawRectangle(p1.Value, r1.Value)
I tested this option with label
eg:
label1.color=220,220,220
it works successfully. But This option is not working with a brush

Any One Can Help me?
My Program Is Attached Here
Jothis
:sign0085:
 

Attachments

  • 1.zip
    472 bytes · Views: 185
Top