by Natter » Sat Dec 24, 2022 7:22 am
Hi,
I need to change the color of a rectangular window fragment. How can this be done ?
-
Natter
-
- Posts: 1221
- Joined: Mon May 14, 2007 9:49 am
by Antonio Linares » Sat Dec 24, 2022 7:54 am
Please post a screenshot of what you need
-
Antonio Linares
- Site Admin
-
- Posts: 42099
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
by Antonio Linares » Sat Dec 24, 2022 11:17 am
- Code: Select all Expand view
#include "FiveWin.ch"
function Main()
local oWnd, oBrush
DEFINE BRUSH oBrush COLOR 0x00A5FF
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd ;
ON PAINT FillRect( hDC, { 80, 80, 200, 200 }, oBrush:hBrush )
RELEASE BRUSH oBrush
return nil
-
Antonio Linares
- Site Admin
-
- Posts: 42099
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
-
by Natter » Sat Dec 24, 2022 1:09 pm
Thank you, this is what you need
-
Natter
-
- Posts: 1221
- Joined: Mon May 14, 2007 9:49 am
Return to FiveWin for Harbour/xHarbour
Who is online
Users browsing this forum: No registered users and 85 guests