Porque no me coge la fuente

Porque no me coge la fuente

Postby Xevi » Fri Dec 22, 2017 1:15 am

Code: Select all  Expand view

//...
   DEFINE FONT oFont1 NAME "Calibri" SIZE 0, -16
   DEFINE WINDOW oWnd FROM 1, 1 TO 800, 1450 PIXEL
//...

WITH OBJECT TExplorerBar():New( 0, 0, 250, 730, oWnd )
:SetFont( oFont1 )
:AddPanel( "Fitxers", "MenuFitxers" )
:AddPanel( "Assentaments", "MenuAssentaments" )
:Refresh()   //No hace nada
END WITH

   ACTIVATE WINDOW oWnd CENTERED

 


Me coge la imagen, el texto, pero el tipo de letra no se corresponde a oFont1

Que hago mal???


Gracias.
Un Saludo,
Xevi.

Aprendiz de la vida!!!
User avatar
Xevi
 
Posts: 169
Joined: Wed Nov 29, 2017 11:42 am
Location: Girona

Re: Porque no me coge la fuente

Postby Antonio Linares » Fri Dec 22, 2017 4:44 am

Prueba asi:

Code: Select all  Expand view

WITH OBJECT TExplorerBar():New( 0, 0, 250, 730, oWnd )
   :AddPanel( "Fitxers", "MenuFitxers" ):SetFont( oFont1 )
   :AddPanel( "Assentaments", "MenuAssentaments" ):SetFont( oFont1 )
END WITH
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41283
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 9 guests

cron