Search found 164 matches: hfont

Return to advanced search

Transformar/Convertir Código em C para [x]Harbour

... params, 3, 0 ); #endif #ifndef __FLAT__ WORD wBmps = _VARRAYLEN( _param( 11, -1 ) ); #else WORD wBmps = __paralen( params, 11, 0 ); #endif HFONT hFont1 = ( HFONT ) _parni( 4 ); HFONT hFont2 = ( HFONT ) _parni( 5 ); LONG rgbPane = _parnl( 6 ); WORD wOption = _parni( 7 ); WORD wSize = _parni( ...
by karinha
Tue May 02, 2006 1:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Transformar/Convertir Código em C para [x]Harbour
Replies: 3
Views: 1037

... if nClrPane<>nil nOldClrPane:=SetBkColor(hDC,nClrPane) else nOldBkMode:=SetBkMode(hDC,1) endif hOldFont:=SelectObject(hDC,oFont:hFont) TextOut(hDC,Y,X,cPrompt,Len(cPrompt)) SelectObject(hDC,hOldFont) if nClrPane<>nil SetBkColor(hDC,nOldClrPane) else SetBkMode(hDC,nOldBkMode) ...
by Raymundo Islas M.
Sun Apr 23, 2006 10:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Texto vertical
Replies: 4
Views: 985

... : FONT oFntBrw y le agregue lo que indicas : lbCapDcs:SetFont( oFntBrw ) lbCapDcs:bFont := { |nRow,nCol,nStyleLine| IF( nStyleLine == 2,; oFntBrw:hFont, 0 ) } Pero, desafortunadamente sigue mostrando una font mas pequeña al editar. :cry: Gracias y Saludos
by Raymundo Islas M.
Mon Apr 10, 2006 4:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar font en edicion con TWBROWSE de Hernan
Replies: 16
Views: 4951

raymundo,
si le defino la font lo hago asi:
oLbx:SetFont(oFont)
oLbx:bFont:={|nRow,nCol,nStyleLine| ;
IF(nStyleLine==3,oFont:hFont,0) }
y asi me respeta el tipo de letra en la edicion
salu2
paco
by Francisco Horta
Sun Apr 09, 2006 12:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar font en edicion con TWBROWSE de Hernan
Replies: 16
Views: 4951

... to len( ::aCaption ) WSay( ::hWnd, ::hDC, ::nDTop + ( n - 1 ) * ::nTxtHeight, ::nDLeft, ::aCaption[ n ], ::nClrText,,; If( ::oFont != nil, ::oFont:hFont, 0 ), .T., .T., ::nAlign ) next if ::lScroll .and. ::lWrap if ::lHorizontal for n := 1 to len( ::aCaption ) WSay( ::hWnd, ::hDC, ::nDTop + ( n ...
by karinha
Tue Feb 21, 2006 2:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CLASSE DSAY.PRG CON COMANDO TRANSPARENT
Replies: 5
Views: 1880

Font error in Dialog box

... dialog box in a multi dialog wizard. It activates the dialog box and immediately comes up with "Error BASE/1004 Class: NIL has no exported method:hFONT from errorsys, line: 0" This has appeared with FWH27 Jan using harbour. STATIC FUNCTION DoMatMed2() LOCAL lChoice := .F.,nSelect:=1,nLength LOCAL ...
by richard
Thu Jan 19, 2006 10:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Font error in Dialog box
Replies: 2
Views: 859

... ::hWnd, WM_PAINT, ::hDC, 0 ) else SetTextColor( ::hDC, ::nClrText ) SetBkColor( ::hDC, ::nClrPane ) hOldFont = SelectObject( ::hDC, ::oFont:hFont ) do case case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_CENTER ) SetTextAlign( ::hDC, TA_CENTER ) ExtTextOut( ::hDC, 0, ::nWidth() / 2, ; ...
by karinha
Thu Dec 22, 2005 11:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN( .F. ) EN GET USANDO FIVEWIN FOR XHARBOUR
Replies: 12
Views: 4392

... ::hWnd, WM_PAINT, ::hDC, 0 ) else SetTextColor( ::hDC, ::nClrText ) SetBkColor( ::hDC, ::nClrPane ) hOldFont = SelectObject( ::hDC, ::oFont:hFont ) do case case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_CENTER ) SetTextAlign( ::hDC, TA_CENTER ) case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ...
by Alfredo Arteaga
Wed Dec 21, 2005 7:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN( .F. ) EN GET USANDO FIVEWIN FOR XHARBOUR
Replies: 12
Views: 4392

... ::hWnd, WM_PAINT, ::hDC, 0 ) else SetTextColor( ::hDC, ::nClrText ) SetBkColor( ::hDC, ::nClrPane ) hOldFont = SelectObject( ::hDC, ::oFont:hFont ) do case case lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), ES_CENTER ) // 1 SetTextAlign( ::hDC, TA_CENTER ) // 6 case lAnd( GetWindowLong( ::hWnd, ...
by karinha
Wed Dec 21, 2005 12:43 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN( .F. ) EN GET USANDO FIVEWIN FOR XHARBOUR
Replies: 12
Views: 4392

... ::hWnd, WM_PAINT, ::hDC, 0 ) else SetTextColor( ::hDC, ::nClrText ) SetBkColor( ::hDC, ::nClrPane ) hOldFont = SelectObject( ::hDC, ::oFont:hFont ) ExtTextOut( ::hDC, 0, 0,; { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) ) SelectObject( ::hDC, hOldFont ) endif if ValType( ::bPainted ...
by Antonio Linares
Tue Dec 20, 2005 10:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN( .F. ) EN GET USANDO FIVEWIN FOR XHARBOUR
Replies: 12
Views: 4392

... ::hWnd, WM_PAINT, ::hDC, 0 ) else SetTextColor( ::hDC, ::nClrText ) SetBkColor( ::hDC, ::nClrPane ) hOldFont = SelectObject( ::hDC, ::oFont:hFont ) ExtTextOut( ::hDC, 0, 0,; { 0, 0, ::nHeight(), ::nWidth() }, GetWindowText( ::hWnd ) ) SelectObject( ::hDC, hOldFont ) endif // Fim da Mudanca ...
by karinha
Tue Dec 20, 2005 9:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN( .F. ) EN GET USANDO FIVEWIN FOR XHARBOUR
Replies: 12
Views: 4392

gracias, ya lo encontré

GetTextWidth( <hDC>, <cString>, [<hFont>] ) --> <nPixelWidth>
by MarioG
Mon Nov 28, 2005 12:45 pm
 
Forum: FiveWin para CA-Clipper
Topic: Ancho en Pixel
Replies: 1
Views: 774

... font for a specific column: oBrwMov:bFont:={|nRow,nCol,nStyleLine| IF((nStyleLine==1.or.nStyleLine==0).and.(nCol==5.or.ncol==6.or.ncol==7),oFont5:hFont,; IF(nStyleLine==2,oFont5:hFont,)) } -Use diferent height of headers, rows or footers: oBrwMov:nHeaderHeight:= 32 oBrwMov:nFooterHeight:= 25 oBrwMov:nLineHeight:= ...
by DanielPuente
Fri Oct 28, 2005 8:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How can I increase RowHeight of TWBrowse ?
Replies: 4
Views: 1625

... -1 ) == -1 ::lHitBottom := .f. if ::nRowPos > 1 ::nRowPos-- else ::lScrolling := .T. //fgam WBrwScrl( ::hWnd, -1, If( ::oFont != nil, ::oFont:hFont, 0 ), ::nLineStyle ) endif else ::lHitTop := .t. endif ::DrawSelect() if ::oVScroll != nil If ::bLogicPos != Nil // By CeSoTech ::oVScroll:SetPos( ...
by Rimantas
Wed Oct 12, 2005 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Colouring TwBrowse ( Hernan's )
Replies: 12
Views: 6582
Previous

Return to advanced search