Search found 88 matches: drawbitmap

Return to advanced search

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Yes, it is right, as MoveTo() does not exist on Windows 32 and 64 :-)
by Antonio Linares
Wed Nov 09, 2011 5:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Adding that lines i still get: ../TSBFUNCS.o:TSBFUNCS.C:(.text+0x94): undefined reference to `MoveTo(HDC__*, int, int)@12 I managed to add a source code for MoveTo I found in other place and it linked, but I don't know if it works yet. //----------------------------------------------...
by concentra
Wed Nov 09, 2011 3:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Add these lines to the top of your code, below #include <Windows.h>

Code: Select all  Expand view

#ifdef __GNUC__
   WINBASEAPI BOOL WINAPI MoveTo( HDC, int, int );
   ... others used
#endif
 
by Antonio Linares
Wed Nov 09, 2011 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

I am trying to compile/link Manuel Mercado's TsBrowse 9 with FW + Harbour + MinGW. Part of this is compiling a C program that calls MoveTo. The part of the code that does it is static void GoToPoint( HDC hDC, int ix, int iy ){   #ifdef __FLAT__      POINT pt;      MoveToEx( hDC, ix,...
by concentra
Wed Nov 09, 2011 12:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Re: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Concentra,

Are you calling FWH MoveTo() or directly calling Windows API MoveTo() from C code ?
by Antonio Linares
Wed Nov 09, 2011 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?

Antonio, when I try to link a program with FW, Harbour and MinGW, it states that the folowing functions are missing :
MoveTo, GetTextExtent, DrawMasked, DrawBitmap and MaskRegion.
Where can I find them ?
by concentra
Wed Nov 09, 2011 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap ?
Replies: 11
Views: 2273

TsBrowse and MinGW.

... changes in order to compile TSBFUNCS.C but now I have errors linking. A lot of undefined references. Where are MoveTo, GetTextExtent, DrawMasked, DrawBitmap, MaskRegion ? Or what am I doing wrong ? Link errors: ../TSBFUNCS.o:TSBFUNCS.C:(.text+0x94): undefined reference to `MoveTo(HDC__*, ...
by concentra
Tue Nov 08, 2011 5:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TsBrowse and MinGW.
Replies: 0
Views: 1019

Re: Code Bar PDF417 ó QR Code

... igual uso el DIBWRITE, que otro comando se puede usar oCode:SetType( nCode ) oCode:SetCode( cCode ) oCode:SetFlags( nFlags ) oCode:Build() // DrawBitmap( hDC, oCode:hCodeBar, 0, 0 ) hDib:=( oCode:hCodeBar ) DibWrite( "file.bmp" , hDib ) GloBalFree( hDib )
by elmoiquique
Wed Aug 24, 2011 2:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Code Bar PDF417 ó QR Code
Replies: 50
Views: 13452

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... static void FW_DrawText( HDC hDC, RECT * rct, LPCSTR pText, WORD wAlign, int iLen, HFONT hFont, BOOL bHeadFoot ) ; // CeSoTech static void FW_DrawBitmapCenter( HDC hDC, HBITMAP hBmp, RECT * rct, WORD nStyle, BOOL bFocused ) ; void MaskRegion( HDC hDC, RECT * rct, COLORREF cTrColor, COLORREF ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2631

Re: Comments and requests about TWBrowse

... Paint() METHOD Destroy() ENDCLASS METHOD Paint() CLASS TXBR3 local aInfo if ::hSaveScr != nil .and. GetFocus() != ::hWnd aInfo := ::DispBegin() DrawBitmap( ::hDC, ::hSaveScr, 0, 0 ) ::DispEnd( aInfo ) else Super:Paint() DelObj ::hSaveScr ::hSaveScr := WndBitMap( ::hWnd ) endif return nil METHOD ...
by MarcoBoschi
Wed Jul 28, 2010 12:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Comments and requests about TWBrowse
Replies: 58
Views: 13764

Re: New FTDN June/Junio 2010 (FWH 10.6)

... para el manejo de ficheros ZIP. * Nuevo: Nueva función DrawTransparent( hDC, hBmp, nRow, nCol ), usa los mismos parámetros que la función DrawBitmap( hDC, hBmp, nRow, nCol ) y simplifica mucho el proceso de pintado transparente de los archivos de mapa de bits que usamos para hacerlo anteriormente ...
by Antonio Linares
Tue Jul 13, 2010 8:48 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN June/Junio 2010 (FWH 10.6)
Replies: 3
Views: 3521

Re: Help for ExplorerBar to Daniel or Antonio

... := nLeft + nWidth nAlphaLevel := 20 FWWaterMark (::hWaterImage) if SetAlpha() ABPaint( ::hDC, nLeft, nTop, ::hWaterImage, nAlphaLevel ) else DrawBitmap( ::hDC, ::hWaterImage, nLeft, nTop ) endif DeleteObject( ::hWaterImage ) ENDIF ENDIF return nil
by MdaSolution
Fri Jul 02, 2010 10:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for ExplorerBar to Daniel or Antonio
Replies: 18
Views: 4270

New FTDN June/Junio 2010 (FWH 10.6)

... link the required libraries for ZIP files management. * New: function DrawTransparent( hDC, hBmp, nRow, nCol ) uses the same simple parameters as DrawBitmap( hDC, hBmp, nRow, nCol ) and greatly simplify the process of painting transparent bitmaps that we use to do previously using TransBmp(). ...
by Antonio Linares
Wed Jun 23, 2010 6:04 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN June/Junio 2010 (FWH 10.6)
Replies: 3
Views: 3521

Re: Finding out image size.

... TITLE "SButton-Tools" DEFINE IMAGE oBMP1 FILENAME c_path + "\System\Fantasy6.JPG" ... ... ACTIVATE WINDOW oWnd ; ON PAINT ( DRAWBITMAP( hdc, oBMP1:hbitmap, 0, 0 ) ,; oWnd:Move( 50, 50, oBMP1:nWidth, oBMP1:nHeight, .T. ) ) // moves the Window to a given Position adjusted to ...
by ukoenig
Wed Jun 02, 2010 7:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Finding out image size.
Replies: 3
Views: 478

Re: Finding out image size.

... oBMP1:nWidth() ) Msgalert( oBMP1:nHeight() ) // Use and adjust Image to Window-Size ( Background ) ... ACTIVATE WINDOW oWnd MAXIMIZED ; ON PAINT ( DRAWBITMAP( hdc, oBMP1:hbitmap, 0, 0, nWidth, nHeight ) ) RETURN NIL Best Regards Uwe :lol:
by ukoenig
Wed Jun 02, 2010 10:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Finding out image size.
Replies: 3
Views: 478
PreviousNext

Return to advanced search