Search found 56 matches: nbmpwidth

Return to advanced search

Re: GET ACTION com SPINNER ?? (resolvido)

method CreateButton()

de:
::oBtn := TBtnBmp():New(0,::nWidth - nBmpWidth - 4,nBmpWidth,::nHeight - 4,;

por:
::oBtn := TBtnBmp():New(0,::nWidth - nBmpWidth - if(::lSpinner,20,4),nBmpWidth,::nHeight - 4,;
by MGA
Wed Jan 06, 2010 7:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET ACTION com SPINNER ?? (RESOLVIDO)
Replies: 4
Views: 852

Re: Browser for FW sample folder

... reserved on the screen to show it. How could I check for the size and only adjust it necessary? The functions to get the sizes of bitmaps are: nBmpWidth( oBmp:hBitmap ) // bitmap's width nBmpHeight( oBmp:hBitmap ) // bitmap's height I was trying with a function that may do the job (not fully ...
by mmercado
Mon Nov 02, 2009 5:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Browser for FW sample folder
Replies: 15
Views: 3801

Re: Main Window background

Hello Tim, have a look at the Alpa-Function above : DEFINE BITMAP oBmp1 FILENAME "Logo.bmp" nBMPWidth := oBmp1:nWidth nBMPHeight := oBmp1:nHeight // Centered Logo // ---------------- ABPaint( hDC, ( oWnd:nWidth() / 2 ) - ( nBMPWidth / 2 ), ; ( oWnd:nHeight() / 2 ...
by ukoenig
Mon Oct 12, 2009 9:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Main Window background
Replies: 13
Views: 3365

Re: Poner imagen en MDI

... FUNCTION PongaBmp( hDC, oBmp, oWnd ) //BmpTiled( 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 jaba
Mon Nov 24, 2008 9:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner imagen en MDI
Replies: 5
Views: 1039

Re: Poner imagen en MDI

... FUNCTION PongaBmp( hDC, oBmp, oWnd ) //BmpTiled( 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 FranciscoA
Mon Nov 24, 2008 8:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner imagen en MDI
Replies: 5
Views: 1039

... .T. ) /* hDCMem = CreateCompatibleDC( ::hDC ) hOldBmp = SelectObject( hDCMem, hBmp ) StretchBlt( ::hDC, 0, 0, ::nWidth, ::nHeight, hDCMem, 0, 0, nBmpWidth( hBmp ), nBmpHeight( hBmp ), SRCCOPY ) SelectObject( hDCMem, hOldBmp ) DeleteDC( hDCMem ) */ ::Say( ::nHeight / 4 - 2,; If( ::lCentered, ( ...
by FranciscoA
Wed Oct 15, 2008 12:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: No encuentro las mejoras hechas a xbrowse por franciscoA ??
Replies: 17
Views: 4458

... ) METHOD SetAlign( nColumn, nLevel, nAlign ) METHOD SetAppendMode( lMode ) METHOD SetArray( aArray ) METHOD SetBtnGet( nCol, cResName, bAction, nBmpWidth ) METHOD SetColMsg( cMsg, cEditMsg, nCol ) METHOD SetColor( xColor1, xColor2, nColumn ) METHOD SetColSize( nCol, nWidth ) METHOD SetColumns( ...
by Natter
Mon Sep 08, 2008 11:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bChange
Replies: 9
Views: 5470

dbarrio,

hBmp:=ReadBitmap(0, "C:\bitmap.bmp")
nHig=nBmpHeight(hBmp)
nWid=nBmpWidth(hBmp)
oWord:AddImagen( 1, 1, 1+nCol, 1+nHig, nWid, "C:\bitmap.bmp", {1,1,1,1,1,1})

Saludos, Euclides
by Euclides
Wed Aug 27, 2008 1:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imagen con tword
Replies: 6
Views: 1026

Fivewin Classes

... for hBitmap and it will be ok. Also notice that pBmpHeight() and pBmpWidth() no longer exist, and must replaced by nBmpHeight( hBitmap ) and nBmpWidth( hBitmap ) calls. -------------------------------------------------------------------------------- Everyone, At long last I have published ...
by Antonio Linares
Wed Aug 27, 2008 7:44 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 68116

... ::cMsg ), If( ::lActive, ::nClrText, ::nClrDisabled ),; ::nClrPane, ::oFont, .T., .T. ) Ahora: ::oMsgBar:Say( ::oMsgBar:nHeight / 4 - 2,; nLeft + nBmpWidth - iif(nBmpWidth>0,7,1) + ( ::nWidth - GetTextWidth( hDC, AllTrim( ::cMsg ), ::oFont:hFont ) ) / 2,; AllTrim( ::cMsg ), If( ::lActive, ::nClrText, ...
by Cgallegoa
Thu Aug 14, 2008 8:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: No pinta bien los mensajes centrados con 2007
Replies: 3
Views: 910

Re: Bitmap sizes

Euclides wrote:Hi to all!
It there a way to get the bitmap sizes (width & height) read by ReadBitmap() function ?
TIA & Regards, Euclides


nBmpWidth( hBmp )
nBmpHeight( hBmp )

Source: \fwh\source\function\fwbmp.c
by nageswaragunupudi
Wed Aug 13, 2008 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap sizes
Replies: 3
Views: 735

BMP Widht and height

Hello, I think, that works. I used it in my old ONPAINT-function : nBMPWIDTH := oBmp:Super:nWidth() nBMPHIGHT := oBmp:Super:nHeight() Before FWH 8.07, i used it for painting text on gradient-bmp's. With FWH 8.07 it is easy to handle. If you don't work with ...
by ukoenig
Wed Aug 13, 2008 2:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bitmap sizes
Replies: 3
Views: 735

Possible fix with BitMap: if ::oMsgBar:l2007 ::oMsgBar:Say( ::oMsgBar:nHeight / 4 - 2,; nLeft + nBmpWidth - iif(nBmpWidth>0,7,1) + ( ::nWidth - GetTextWidth( hDC, AllTrim( ::cMsg ), ::oFont:hFont ) ) / 2,; AllTrim( ::cMsg ), If( ::lActive, ::nClrText, ::nClrDisabled ...
by Cgallegoa
Thu May 22, 2008 10:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Bug in message bar
Replies: 4
Views: 1152

... := GetPixel( hDC, 0, 0 ) local nOldClr SelectObject( hDC, hBmpOld ) nOldClr = SetBkColor( hDC, nRGB( 255, 255, 255 ) ) TransBmp( hBitmap, nBmpWidth( hBitmap ), nBmpHeight( hBitmap ),; nZeroZeroClr, hDC, 10, 20, nBmpWidth( hBitmap ), nBmpHeight( hBitmap ) ) SetBkColor( hDC, nOldClr ) return ...
by Otto
Fri Mar 07, 2008 5:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: a TBitmap behind of a TBitmap?
Replies: 18
Views: 3304

... vedere ppc ...solo oggi hoprovato ma non succede niente METHOD Paint() CLASS TMsgItem local nCount, nClrBack local nLeft := ::nLeft() local hBmp, nBmpWidth := 0 local hDC := ::oMsgBar:GetDC() if ::hBitmap1 != nil hBmp = If( ::lActive, ::hBitmap1, ; If( ::hBitmap2 != nil, ::hBitmap2, ::hBitmap1 ...
by Silvio
Wed Nov 07, 2007 8:01 pm
 
Forum: All products support
Topic: MSGItem 2007
Replies: 8
Views: 3184
PreviousNext

Return to advanced search