English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how do i draw a shape:
Canvas->Rectangle(300,180, 500, 400 );

then fill it with a color:
Canvas->Brush->Color = clLime;

in one action rather than 2 lines?
i have to draw a few shapes with one execution ..how do i give each shape a diff color?

2006-10-07 08:31:13 · 2 answers · asked by jcol 2 in Computers & Internet Programming & Design

2 answers

Ummm. Why do you want to do it in one action???

I don't know which library you are calling. But without that information, one way to do it is to write a function, passes the correct parameters for the shape and color into the function and actually create the shape and color it in the function.

Sorry if this is a little confusing, and hope you understand how to use peek() from my previous answer! You can always email me through my profile, but please include your own email so I can write back. =)

Anyway, hope this helps!

2006-10-07 17:54:22 · answer #1 · answered by silverwhiskers 2 · 0 0

Why don't you do it in C# ? It's a lot easier...

2006-10-07 20:17:02 · answer #2 · answered by more_evil_then_santa 6 · 0 2

fedest.com, questions and answers