add button on ribonbar with font

add button on ribonbar with font

Postby Silvio.Falconi » Fri Apr 10, 2020 5:19 pm

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: add button on ribonbar with font

Postby ukoenig » Fri Apr 10, 2020 6:07 pm

Silvio,

a sample :

Code: Select all  Expand view  RUN

@ 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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: add button on ribonbar with font

Postby Silvio.Falconi » Fri Apr 10, 2020 10:30 pm

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 69 guests