FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour draw a group on window
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
draw a group on window
Posted: Sat Mar 16, 2013 10:34 PM

I wish draw an image over the wallImage of a window main , a roundbox , an other text

Now I use this command to draw an image inton a window and write a test into a window :

::oWndMain:bPainted := {|hDC| (PalBmpDraw( hDC, 0, 0, ::oImagen:hBitmap,, ::oWndMain:nWidth, ::oWndMain:nHeight,, .T.),;
Scrivitesto(hDC)) }

FUNCTION Scrivitesto (hDC)
Local aRect2:= {oApp:oWndMain:nHeight-120,;
oApp:oWndmain:nWidth-420,;
oApp:oWndMain:nHeight-10,;
oApp:oWndMain:nWidth-10}
SetBkMode(hDC,1)
SetTextColor(hDC,CLR_RED)

DrawTextEx( hDC, oApp:cBuild+" - "+oApp:cUrl, aRect2, 1 )
return nil

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: draw a group on window
Posted: Sun Mar 17, 2013 12:30 PM
Silvio,

This is the most extrem situation :
painting a text on top of a painted alphablended imgage
of the main-window image.

Text can be 3D or with shadow



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: draw a group on window
Posted: Sun Mar 17, 2013 01:56 PM

Uwe,
I saw a Prg of Minigui
and I wish remake it on fwh ...and so I saw it can be too hard on fwh

I have a Main Window maximized Nosize

I have a image wall paper into this window

I have a frame ( on minigui is called group ) at the right of this window
it is transparent and on this group there some says

on bottom on right I have some text with a bmp

If I rem nosize all run ok and everything remains the same coordinates if I need to resize the window

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion