Search found 164 matches: hfont

Return to advanced search

Re: Bug in font management?

Enrico,

Please look for hOldFont in Class TBtnBmp where it is assigned and change it this way:

hOldFont = SelectObject( ::hDC, ::oFont:hFont )

That solves it :-)
by Antonio Linares
Thu Jul 10, 2014 4:19 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in font management? [Solved]
Replies: 7
Views: 1366

A question about using TEXTOUT on different images.

... on oDrawImg ??? ---------------------------- STATIC FUNCTION CL_DT( hMemDC, nStyle, oDrawImg ) LOCAL hOldFont := SelectObject( hMemDC, oFont3:hFont ) , oTitle1 @ aPoints[1][1], aPoints[1][2] TITLE oTitle1 SIZE 300, 50 OF oDrawImg NOBORDER oTitle1:nShadow := 0 oTitle1:aGrdBack := {} oTitle1:lTransparent ...
by ukoenig
Wed Jun 25, 2014 6:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A question about using TEXTOUT on different images.
Replies: 0
Views: 309

Warning W8065

... #ifndef __HARBOUR__ CLIPPER TSDrawCell( PARAMS ) // ( hWnd, hDC, nRow, nColumn , nWidth , // uData, nAlign , nClrFore, nClrBack , // hFont, nBitmap, nHeightCell, // b3DLook, nLineStyle, nClrLine, nHeadFoot, // nHeightHead, nHeightFoot, hHeightSuper, // lAdjBmpl, lMultiLine, nVAlign, ...
by mauri.menabue
Sun Jun 22, 2014 4:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Warning W8065
Replies: 7
Views: 946

Re: Help for extextout

Silvio,
after this line :

hOldFnt := SelectObject( hDc, oFont:hFont )

SetBkMode( hDC, 1 )
SetTextColor( hDC, nPenColor ) // Textcolor
...
...
...
DeleteObject( hOldFnt )


Best regards
Uwe :?:
by ukoenig
Fri Jun 06, 2014 7:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for extextout
Replies: 8
Views: 2119

Re: Help for extextout

Sorry, I use this command : hOldFnt := SelectObject( hDc, oFont:hFont ) ExtTextOut( hDc, nLinea, 22, {nLinea,22,nLinea+16,22+nwidth}, aText[nCont,1] ) I not remeber but exit a selectobject command to make trasparent ... I'm trying to create a class to simulate ...
by Silvio.Falconi
Fri Jun 06, 2014 7:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for extextout
Replies: 8
Views: 2119

Re: "Snap" for Clipper

...        (function  in ?)    WINDOW.PRG     3716 HELPTOPIC()            (function  in ?)    WINDOW.PRG      646   649   649   651  3713  3718  3722 HFONT                  WINDOW.PRG      602   623  2387  3300  3304  3311  3312G 3314  3314  3359                   3359  3368 HICON                 ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6706

Re: TEXTOUT() function cannot use some predefined fonts?

... Also, it is a very good practice to save and restore the GDI objects that we select, i.e.: hOldFOnt := SelectObject( oDlgMain:hDC, oMainFont:hFont ) ... SelectObject( oDlgMain:hDC, hOldFont )
by Antonio Linares
Mon Oct 07, 2013 5:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TEXTOUT() function cannot use some predefined fonts?
Replies: 21
Views: 4544

Re: bugs FWH64

... the changes progressively in case that some code could bring a problem. In fact, I think that everytime we supply a HWND, HDC, HBITMAP, HBRUSH, HFONT, etc (any handle) we could simply call hb_parnll() even for 32 bits apps, but I am not sure yet 100% if this could have any side effect. Same ...
by Antonio Linares
Mon Jul 22, 2013 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bugs FWH64
Replies: 41
Views: 8044

PROBLEMAS CON EL TWBROWSE

... !!! ::Skip( ::nRowPos - wBrwPane( ::hWnd, ::hDC, Self, ::bLine,; ::aColSizes, ::nColPos, ::nClrText, ::nClrPane,; If( ::oFont != nil, ::oFont:hFont, 0 ), ::aJustify, ; ::nLineStyle, 0 , .f., ::bTextColor, ::bBkColor, ::nClrLine,; ::oBrush:nRGBColor, ::bFont ) ) #endif if ::nLen < ::nRowPos ...
by ROBER68
Fri Jun 21, 2013 5:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: PROBLEMAS CON EL TWBROWSE
Replies: 1
Views: 930

Re: Nuevo Grupo en Ribbonbar

... 1 to Len( ::aDialogs ) AAdd( ::aSizes, If( ::aVisible[ n ], GetTextWidth( 0, StrTran( ::aPrompts[ n ], "&", "" ), ::oFont:hFont ) + TXTLPAD + TXTRPAD, 0) ) next if Len( ::aLeft ) > 0 ::aLeft[ ::nOffSet ] = ::nLeftMargin endif for n = ::nOffSet + 1 to Len( ::ASizes ) ...
by cnavarro
Thu May 09, 2013 6:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nuevo Grupo en Ribbonbar (Solucionado)
Replies: 7
Views: 1200

Re: Como crear una libreria?

... que incluirlos y la lina 33 es la segunda del siguiente bloque. #ifndef __HARBOUR__ CLIPPER SBtnPaint( PARAMS ) // ( hWnd, hBitmaP, lPressed, // hFont, cText, nPos, nClrText, ClrBack, // lMouseOver, lOpaque, hBrush, nRows, lW97, // lAdjust, lMenu, lMenuPress, lFocused, // nShape, lBorder, lBox, ...
by Jorge Jaurena
Sat Mar 02, 2013 11:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como crear una libreria?
Replies: 6
Views: 957

Problemas al crear la libreria TWBROWSE

... static far WORD wFooterHeight; // CeSoTech static far WORD wLineHeight ; // CeSoTech static far BOOL bWorking; WORD WBrwRowsC( HWND hWnd, HDC hDC, HFONT hFont ); // CeSoTech static void FW_DrawText( HDC hDC, RECT * rct, LPCSTR pText, WORD wAlign, int iLen, HFONT hFont, BOOL bHeadFoot ) ; // CeSoTech ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2862

Re: calcular ancho de fuentes

GetTextWidth( <hDC>, <cString>, [<hFont>] ) --> <nPixelWidth>

Copiado del Manual

Saludos
by antolin
Wed Feb 08, 2012 9:48 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: calcular ancho de fuentes
Replies: 6
Views: 969

Re: Un tercer color en efecto pijama de Listbox

... nStyle=3 .AND. !oBArt:lCellStyle, ; GETSYSCOLOR(COLOR_BTNFACE),))} oBCmp:bFont := {|nRow,nCol,nStyleLine| ; IF(nStyleLine==1 .AND. nCol==2,oFnt:hFont,) } Espero sea de tu utilidad Saludos Paco Hola Francisco, buenas tardes como estas mi buen,antes que nada le envio cordiales saludos. 1.- ando ...
by ACC69
Fri Nov 18, 2011 10:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un tercer color en efecto pijama de Listbox
Replies: 18
Views: 5351

Re: rc/res to source

... = LoadIcon(0, (LPCTSTR)IDI_APPLICATION); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.lpszClassName = WndClass00; RegisterClassEx(&wcex); HFONT hfont0 = CreateFont(-11, 0, 0, 0, 0, FALSE, FALSE, FALSE, 1, 0, 0, 0, 0, ("MS Sans Serif")); HWND hwnd = CreateWindowEx(0, ("WndClass0"), ...
by MdaSolution
Tue Aug 02, 2011 8:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: rc/res to source
Replies: 4
Views: 1002
PreviousNext

Return to advanced search