Radio

Moderator: Enrico Maria Giordano

Radio

Postby ik1mtt » Thu May 04, 2006 9:15 am

Ciao a tutti.

Avrei bisogno di cambiare Font e dimensione delle scritte
"Uno" e "Due".

Sembra che RADIO non accetti Font, mi da subito errore...

@ 6.5, 28 RADIO oRbx VAR nRbx OF oDlg;
PROMPT "Uno", "Due";
SIZE 46,13.5

Grazie.
ik1mtt
 
Posts: 27
Joined: Fri Apr 14, 2006 5:41 pm

Re: Radio

Postby Enrico Maria Giordano » Thu May 04, 2006 9:22 am

Eccoti un esempio funzionante:

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


FUNCTION MAIN()

    LOCAL oDlg, oFnt, oRad, nRad

    LOCAL i

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

    DEFINE DIALOG oDlg

    @ 1, 1 RADIO oRad VAR nRad;
           PROMPT "One   ", "Two   "

    FOR i = 1 TO LEN( oRad:aItems )
        oRad:aItems[ i ]:oFont = oFnt
    NEXT

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

    ACTIVATE DIALOG oDlg;
             CENTER

    RELEASE FONT oFnt

    RETURN NIL


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


Return to All products support

Who is online

Users browsing this forum: No registered users and 8 guests