Subscribe Bookmark RSS Feed

<<Set Font size() of a button

vince_faller

Super User

Joined:

Mar 17, 2015

Hello, 

I'm feeling dumb this morning because I swear this is a thing but can't get it to work.  

Names Default to here(1);
New Window("Test", 
	Buttonbox("Back", 
		<<Set Icon("StepBackward"),
		<<Set Icon Location("Left"),
		<<Set Font Size(20)
	)
)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mpl34

Community Trekker

Joined:

Feb 16, 2016

Solution

I couldn't find a way to change button sizes in jmp 12 before and gave up. Have you been able to do this? My log is saying buttonbox doesn't take the setfontsize message:

 

The display box 'ButtonBox' does not recognize the message 'Set Font Size'; perhaps you mean one of these: <<Set Content Size <<Get Content Size <<Set Window Size <<Set Function <<Set Icon <<Set Button Name <<Get Button Name <<Get Icon <<Set Icon Location <<Get Icon Location <<Set Menu Items <<Get Menu Items <<Set Menu Item State <<Get Menu Item State <<Set Menu Choice <<Get Menu Choice <<Open Next Outline <<Set Script <<Encrypt Script <<Get Function <<Set Tip <<Inval Size <<Set Report Title <<Set Window Title <<Get Annotation <<Restore Window Size <<Get Text <<Save Text <<Save RTF <<Get Window Size <<Get Window Title <<Set Window Title <<Set Window Icon <<On Close <<Set Main Window <<Set Print Headers <<Set Print Footers <<Set Page Setup <<Get Size <<SetNotStretchable <<Get Min Size <<Set Min Size <<Get Max Size <<Set Max Size <<Set Auto Stretching <<Get Auto Centering <<Set Auto Centering <<Get Row States <<Set Width <<Set Property <<Get Properties.

2 REPLIES
mpl34

Community Trekker

Joined:

Feb 16, 2016

Solution

I couldn't find a way to change button sizes in jmp 12 before and gave up. Have you been able to do this? My log is saying buttonbox doesn't take the setfontsize message:

 

The display box 'ButtonBox' does not recognize the message 'Set Font Size'; perhaps you mean one of these: <<Set Content Size <<Get Content Size <<Set Window Size <<Set Function <<Set Icon <<Set Button Name <<Get Button Name <<Get Icon <<Set Icon Location <<Get Icon Location <<Set Menu Items <<Get Menu Items <<Set Menu Item State <<Get Menu Item State <<Set Menu Choice <<Get Menu Choice <<Open Next Outline <<Set Script <<Encrypt Script <<Get Function <<Set Tip <<Inval Size <<Set Report Title <<Set Window Title <<Get Annotation <<Restore Window Size <<Get Text <<Save Text <<Save RTF <<Get Window Size <<Get Window Title <<Set Window Title <<Set Window Icon <<On Close <<Set Main Window <<Set Print Headers <<Set Print Footers <<Set Page Setup <<Get Size <<SetNotStretchable <<Get Min Size <<Set Min Size <<Get Max Size <<Set Max Size <<Set Auto Stretching <<Get Auto Centering <<Set Auto Centering <<Get Row States <<Set Width <<Set Property <<Get Properties.

txnelson

Super User

Joined:

Jun 22, 2012

The definative source is

    Help=>>Scripting Index==>Button Box

for the options and messages that can be applied to the Button Box display box.  It provides no capability to change the button box font. However, you can set an Icon that will be used, and that icon can have any graphical object in it that you want.

Jim