IMAGE FOOTER XBROWSE

IMAGE FOOTER XBROWSE

Postby Silvio » Fri Apr 22, 2011 8:28 am

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

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

Re: IMAGE FOOTER XBROWSE

Postby ukoenig » Fri Apr 22, 2011 11:00 am

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: IMAGE FOOTER XBROWSE

Postby Silvio » Fri Apr 22, 2011 12:46 pm

DANKE
Best Regards, Saludos

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

Re: IMAGE FOOTER XBROWSE

Postby ukoenig » Fri Apr 22, 2011 1:23 pm

Silvio,

another possible Solution

Image

Code: Select all  Expand view

...
...
@ 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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: IMAGE FOOTER XBROWSE

Postby Silvio » Fri Apr 22, 2011 5:14 pm

THANKS THIS IS VERY USEFULL

GOOD EASTER TO YOU !!!
Best Regards, Saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 72 guests