Search found 56 matches: nbmpwidth

Return to advanced search

Enrico, Fixed: TransBmp( ::hBitmap1, nBmpWidth( ::hBitmap1 ), nBmpHeight( ::hBitmap1 ), nZeroZeroClr, ::hDC,; ( ::nWidth / 2 ) - ( nBmpWidth( ::hBitmap1 ) / 2 ) + If( ::lPressed, 2, 1 ),; Max( 0, ( ::nHeight / 3 ) - ( nBmpHeight( ::hBitmap1 ...
by Antonio Linares
Tue Oct 09, 2007 6:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in the new 2007 clause
Replies: 19
Views: 2787

Re: Amigos AYUDA URGENTE

... endif Return nil function BmpTiled( hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, oBmp:hBitmap ...
by Miguel Rivera
Tue Feb 20, 2007 6:08 pm
 
Forum: FiveWin para CA-Clipper
Topic: Amigos AYUDA URGENTE
Replies: 3
Views: 1450

Re: Amigos AYUDA URGENTE

... endif Return nil function BmpTiled( hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, oBmp:hBitmap ...
by wmormar
Tue Feb 20, 2007 5:39 pm
 
Forum: FiveWin para CA-Clipper
Topic: Amigos AYUDA URGENTE
Replies: 3
Views: 1450

Amigos AYUDA URGENTE

... endif Return nil function BmpTiled( hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() while nRow < nHeight nCol = 0 while nCol < nWidth PalBmpDraw( hDC, nRow, nCol, oBmp:hBitmap ...
by Miguel Rivera
Tue Feb 20, 2007 4:49 pm
 
Forum: FiveWin para CA-Clipper
Topic: Amigos AYUDA URGENTE
Replies: 3
Views: 1450

DbCombo para ado y mysql

... METHOD DrawItem( nIdCtl, nPStruct ) CLASS TDBCombo return LbxDrawItem( nPStruct, ::aBitmaps, ::aList, ::nBmpWidth, ::bDrawItem ) //----------------------------------------------------------------------------// METHOD Initiate( hDlg ) CLASS TDbCombo ::TControl():Initiate( ...
by fsandoval
Sat Aug 19, 2006 6:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: DbCombo para ado y mysql
Replies: 0
Views: 1318

... oWnd:bPainted = { | hDC | PalBmpDraw( hDC,; (oWnd:nTop()-50)+((oWnd:nHeight()-nBmpHeight( oBmp:hBitmap ))/2),; oWnd:nLeft()+((oWnd:nWidth()-nBmpWidth( oBmp:hBitmap ))/2),; oBmp:hBitmap ) } ACTIVATE WINDOW oWnd ; ON INIT ( If( controlar, control( oWnd, intervalo ), NIL ),; oWndPrincipal := ...
by dbzap
Mon Apr 10, 2006 5:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage:Hbmppal error
Replies: 5
Views: 1267

Allora modifica il metodo Paint(), ad esempio:

nLeft = ::nWidth() - nBmpWidth( ::hBitmap ) * 1.2

E poi metti degli spazi in coda al testo.

Altro non mi viene in mente.

EMG
by Enrico Maria Giordano
Tue Mar 21, 2006 8:43 am
 
Forum: All products support
Topic: Problema allineamento testo in buttonbmp
Replies: 7
Views: 1749

... //-> Modificado Por Antonio Linares, em 20/02/2006 Para TRANSPARENT if ::lTransparent .and. ! Empty( ::oBrush:hBitmap ) SetBrushOrgEx( ::hDC, nBmpWidth( ::oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oBrush:hBitmap ) - ::nTop ) FillRect( ::hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush ) endif ...
by karinha
Tue Feb 21, 2006 2:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CLASSE DSAY.PRG CON COMANDO TRANSPARENT
Replies: 5
Views: 1904

... TButtonBmp hay este código: if ! Empty( ::hBitmap ) nTop = ( ::nHeight() / 2 ) - ( nBmpHeight( ::hBitmap ) / 2 ) nLeft = ( ::nWidth() / 2 ) - ( nBmpWidth( ::hBitmap ) / 2 ) if ::lActive DrawMasked( ::hDC, ::hBitmap, nTop + If( lPressed, 1, 0 ),; nLeft + If( lPressed, 1, 0 ) ) else DrawGray( ...
by Antonio Linares
Mon Nov 28, 2005 6:37 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: BUTTONBMP el bmp sale encima del texto
Replies: 2
Views: 824

Resuelto!!

... oBmp ) STATIC FUNCTION BmpTiled( hDC, oWnd, oBmp ) local nWidth := oWnd:nWidth(), nHeight := oWnd:nHeight() local nRow := 0, nCol := 0, n local nBmpWidth := oBmp:nWidth(), nBmpHeight := oBmp:nHeight() if oBmp:hBitmap == 0 return nil endif while nRow < nHeight nCol = 0 while nCol < nWidth ...
by Patricio Avalos Aguirre
Wed Oct 19, 2005 7:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: imagen al inicio del sistema
Replies: 3
Views: 1893

Re: Help to antonio

Silvio,

Silvio wrote:I trying to convert old program ( 16 bit) to xharbour and now my xmate make me errors :

::nWidth := pBmpWidth ( ::hBmp )
::nHeight := pBmpHeight( ::hBmp )

these func exist or not ?


Use:

::nWidth := nBmpWidth ( ::hBmp )
::nHeight := nBmpHeight( ::hBmp )
by Antonio Linares
Tue Oct 11, 2005 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help to antonio
Replies: 8
Views: 3265
Previous

Return to advanced search