Page 1 of 1

2 questions: @ x, y bitmap and draw rectangle

Posted: Tue Nov 22, 2005 3:36 pm
by Maurilio Viana
1 - When I paint a bitmap in a dialog with @ x, y bitmap command it appears into a rectangle. How can I hide this border were the bitmap is painted?

2 - How can I draw a rectangle in a dialog or window? How can I fill it with a color?

I did this:
define pen oPen width 1.5 color CLR_BLUE
Rectangle(oDlg:hDC, 35, 68, 200, 318, oPen:hPen)

This way I can change the border color according with color of pen but I couldn't fill the rectangle with any color else white.

Regards,
Maurilio

Re: 2 questions: @ x, y bitmap and draw rectangle

Posted: Tue Nov 22, 2005 10:23 pm
by Enrico Maria Giordano
1) Use NOBORDER clause.

2) Try FloodFill( nRow, nCol, nRGBColor ) method.

EMG

Re: 2 questions: @ x, y bitmap and draw rectangle

Posted: Wed Nov 23, 2005 11:40 am
by Maurilio Viana
Thanks a lot, Enrico!
I'll try it!

Regards,
Maurilio