I wish insert a symbol on a urlink object near to caption and I wuish insert a Arrow down
How I can make ?
oBarOpenWithlist:= TUrlLink():New( 200, 20, oAllegati, .T., .F., oFontOpenlist, "Apri con...", "Apri con..." )
METHOD AddLink( cPrompt, bAction, cBitmap, oFnt, nClrT, nClrP, nClrO ) CLASS TTaskPanel
.../...
if File( cBitmap )
oUrlLink:hBmp = ReadBitmap( 0, cBitmap )
else
oUrlLink:hBmp = LoadBitmap( GetResources(), cBitmap )
endif
.../...
METHOD AddLink( cPrompt, bAction, cBitmap, oFnt, nClrT, nClrP, nClrO ) CLASS TTaskPanel
//----------------------------------------------------------------------------//
Function Test()
Local oDlg
Local nBottom := 33
Local nRight := 115
Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )
Local nHeight := nBottom * DLG_CHARPIX_H
local oItem
local oFontOpen := TFont():New( "Tahoma", 0, -18,,.F. )
DEFINE DIALOG oDlg TITLE "test" SIZE nWidth, nHeight PIXEL //TRANSPARENT
oItem := TUrlLink():New( 60, 100, oDlg, .T., .F., oFontOpen, "Prueba de UrlLink con Bitmap...", "Prueba de UrlLink con Bitmap..." )
ACTIVATE DIALOG oDlg CENTERED ; // ON INIT ( oItem := HazLink( oDlg ) ) ;
ON PAINT ( PaintMyBmp( oDlg, oItem ) ) ;
VALID ( DeleteObject( oItem:hBmp ), .T. )
return nil
//----------------------------------------------------------------------------//
Function HazLink( oDlg )
local oFontOpen := TFont():New( "Tahoma", 0, -18,,.F. )
local oItem
oItem := TUrlLink():New( 60, 100, oDlg, .T., .F., oFontOpen, "Prueba de UrlLin con Bitmap...", "Prueba de UrlLin con Bitmap..." )
Return oItem
//----------------------------------------------------------------------------//
Function PaintMyBmp( oDlg, oItem )
local cBitmap
cBitmap:= "d:\fwh\fwhteam\bitmaps\16x16\about.bmp"
if File( cBitmap )
oItem:hBmp := ReadBitmap( 0, cBitmap )
else
oItem:hBmp := LoadBitmap( GetResources(), cBitmap )
endif
if !Empty( oItem:hBmp )
DrawTransparent( oDlg:hDC, oItem:hBmp, oItem:nTop + 2, ;
oItem:nLeft - nBmpWidth( oItem:hBmp ) - 6 )
endif
Return nil
//----------------------------------------------------------------------------//
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 94 guests