FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour IMAGE FOOTER XBROWSE
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
IMAGE FOOTER XBROWSE
Posted: Fri Apr 22, 2011 08:28 AM

It is possibile insert a small bmp into footer of Xbrowse ?

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: IMAGE FOOTER XBROWSE
Posted: Fri Apr 22, 2011 11:00 AM
Silvio,

Sample : xbalpha.prg



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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: IMAGE FOOTER XBROWSE
Posted: Fri Apr 22, 2011 12:46 PM

DANKE

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: IMAGE FOOTER XBROWSE
Posted: Fri Apr 22, 2011 01:23 PM
Silvio,

another possible Solution



Code (fw): Select all Collapse
...
...
@ 230, 35 XBROWSE oBrw2 SIZE 845, 460 PIXEL OF oDlg1 ;
AUTOCOLS ARRAY aImg CELL LINES NOBORDER
oBrw2:lHeader := .T.
oBrw2:lFooter := .T.

FOR nCol := 1 to Len( oBrw2:aCols )
    WITH OBJECT oBrw2:aCols[ nCol ]
        :nWidth := nCellSize
        IF nOption1 <= 4
            :oDataFont := oImgfont1
        ELSE
            :oDataFont := oImgfont2
        ENDIF
        :lBmpTransparent := .T.
        :nDataBmpAlign := AL_CENTER
        :cHeader := ALLTRIM(STR(nCol))
        :oHeaderFont := oImgfont2
        IF nCol > 1 // Select Column for Image-display
            :AddBmpFile( c_path + "\Bitmaps\View.bmp" )
        ELSE
            :AddBmpFile( c_path + "\Bitmaps\Eye.bmp" )
        ENDIF
        :nHeadBmpNo := 1 // Header BMP
        :nFootBmpNo := 1 // Footer BMP
        :bPaintText := { | oCol, hDC, cData, aRect, aColors, lHighLite | ;
                    DrawCell( oCol, hDC, cData, aRect, aColors, lHighLite ) }
    END
NEXT

WITH OBJECT oBrw2
    :lHscroll := .F.
    :nRowHeight := nCellSize + 20
    // Selected Row on Focus ( Text / Background )
    // ------------------------------------------------------------
    :bClrSelFocus = { || { , 14803425 } }  

    // Selected Row on LostFocus ( Text / Background )
    // -----------------------------------------------------------------
    :bClrSel = { || { 0, 14803425 } }  
    :bClrStd  := {|| { 0, 14803425 } }
    :bClrSelFocus = { || { 0, 14803425 } }  
    :SetBackGround( oBrush2 )
    :CreateFromCode()
END
...
...


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: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: IMAGE FOOTER XBROWSE
Posted: Fri Apr 22, 2011 05:14 PM

THANKS THIS IS VERY USEFULL

GOOD EASTER TO YOU !!!

Best Regards, Saludos



Falconi Silvio

Continue the discussion