2 questions: @ x, y bitmap and draw rectangle

2 questions: @ x, y bitmap and draw rectangle

Postby Maurilio Viana » Tue Nov 22, 2005 3:36 pm

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
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

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

Postby Enrico Maria Giordano » Tue Nov 22, 2005 10:23 pm

1) Use NOBORDER clause.

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Maurilio Viana » Wed Nov 23, 2005 11:40 am

Thanks a lot, Enrico!
I'll try it!

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests