FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour 2 questions: @ x, y bitmap and draw rectangle
Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
2 questions: @ x, y bitmap and draw rectangle
Posted: Tue Nov 22, 2005 03: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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: 2 questions: @ x, y bitmap and draw rectangle
Posted: Tue Nov 22, 2005 10:23 PM

1) Use NOBORDER clause.

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

EMG

Posts: 252
Joined: Tue Oct 25, 2005 02:48 PM
Re: 2 questions: @ x, y bitmap and draw rectangle
Posted: Wed Nov 23, 2005 11:40 AM

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

Regards,
Maurilio

Continue the discussion