IMAGE FOOTER XBROWSE

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

IMAGE FOOTER XBROWSE

Post by Silvio »

It is possibile insert a small bmp into footer of Xbrowse ?
Best Regards, Saludos

Falconi Silvio
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: IMAGE FOOTER XBROWSE

Post by ukoenig »

Silvio,

Sample : xbalpha.prg

Image

Best Regards
Uwe :lol:
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.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: IMAGE FOOTER XBROWSE

Post by Silvio »

DANKE
Best Regards, Saludos

Falconi Silvio
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: IMAGE FOOTER XBROWSE

Post by ukoenig »

Silvio,

another possible Solution

Image

Code: Select all

...
...
@ 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 :lol:
Last edited by ukoenig on Fri Apr 22, 2011 6:27 pm, edited 1 time in total.
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.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: IMAGE FOOTER XBROWSE

Post by Silvio »

THANKS THIS IS VERY USEFULL

GOOD EASTER TO YOU !!!
Best Regards, Saludos

Falconi Silvio
Post Reply