add button on ribonbar with font

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

add button on ribonbar with font

Post 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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: add button on ribonbar with font

Post 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
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: add button on ribonbar with font

Post by Silvio.Falconi »

thanks
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply