Page 1 of 1

add button on ribonbar with font

Posted: Fri Apr 10, 2020 5:19 pm
by Silvio.Falconi
I create a button on ribbonbar type SAYBUTTON

@ 7,5 ADD BUTTON oSelected ;
PROMPT " N."+str(ncella) ;
SIZE 100,85 ;
BITMAP cImagebar ;
OF oApp():oGrSelected MOSTLEFT SAYBUTTON
oSelected:DISABLE()

How I can to change the font of text ?
on include ( ribbon.ch) I cannot insert Font
How it is possible ?

Re: add button on ribonbar with font

Posted: Fri Apr 10, 2020 6:07 pm
by ukoenig
Silvio,

a sample :

Code: Select all

@ 45, 100 ADD BUTTON oSay1 GROUP oGrS1 SIZE 200, 40 ;
       PROMPT "A Say" SAYBUTTON ;
       CENTER ROUND BORDER ACTION( MsgInfo( "Say Button" ) )
       oSay1:SetFont( oFontBigNum )
 
Image

regards
Uwe :D

Re: add button on ribonbar with font

Posted: Fri Apr 10, 2020 10:30 pm
by Silvio.Falconi
thanks