MGET can t change font

MGET can t change font

Postby AHF » Fri Nov 28, 2008 12:00 pm

I'm trying to change the font in megt control but I can't.

I've tried it with defining the font and include it on the redefine and with megt:setfont(ofont)

None works. Any ideas?

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: MGET can t change font

Postby Enrico Maria Giordano » Fri Nov 28, 2008 12:26 pm

Try with

Code: Select all  Expand view
oGet:oFont = oFont


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby AHF » Fri Nov 28, 2008 12:38 pm

didn't work !

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Postby Enrico Maria Giordano » Fri Nov 28, 2008 12:43 pm

This is a working sample:

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg, oFnt

    LOCAL oGet, cVar := ""

    DEFINE FONT oFnt NAME "Arial" SIZE 0, -20

    DEFINE DIALOG oDlg

    @ 1, 1 GET oGet VAR cVar MEMO;
           SIZE 100, 30;
           FONT oFnt

    @ 3, 1 BUTTON "&Close" ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RELEASE FONT oFnt

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby AHF » Fri Nov 28, 2008 5:08 pm

Problem solved .
Thanks for your help

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 99 guests