cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
JWi
JWi
Level II

Width of a button box

How can I reduce the width of a button box via JSL? I would like to create a very small button containing only a "+" sign.The default width of 

Button Box("+")

resulting in

JWi_0-1585742895575.png

is optically too large for my purpose. I was not able to find a way to control its size.

 

Thanks for any hint.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Width of a button box

With a button box() I believe the best you can do, is to use the Icon functionality that it has, and to use the icon named "Formula"

formula.PNG

Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "" ) );
ex << Set Icon( "Formula" );
Jim

View solution in original post

6 REPLIES 6
txnelson
Super User

Re: Width of a button box

With a button box() I believe the best you can do, is to use the Icon functionality that it has, and to use the icon named "Formula"

formula.PNG

Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "" ) );
ex << Set Icon( "Formula" );
Jim
JWi
JWi
Level II

Re: Width of a button box

Thanks. I might use a custom icon with plainer style instead. That's a good solution to achieve a smaller button size.
txnelson
Super User

Re: Width of a button box

FormulaPlus, WinToolsCrosshair, DebuggerAddWatch
Jim

Re: Width of a button box

See Help > JMP Documentation Library > JSL Syntax Reference and look up "button box."

pmroz
Super User

Re: Width of a button box

Try the WinToolsCrosshair icon - it's thinner.  Only works on Windows though.

Names Default To Here( 1 );
New Window( "Example", 
	ex = Button Box("", << Set Icon("WinToolsCrosshair"))
);

Also, check out the very nice Built-in icons addin https://community.jmp.com/t5/JMP-Add-Ins/Built-In-JMP-Icons/ta-p/42251

There are many different plus signs.

JWi
JWi
Level II

Re: Width of a button box

Thanks for all comments and hints.

 

The built-in icons are all too large for my purpose. I use a custom icon with plainer style instead:

bb = Button Box ("");
bb << Set Icon( "plus.png" );

with this small plus.png icon  plus.png  results in quite exactly the small "add" buttons I need in my list:

 

JWi_0-1585812519652.png

 

Recommended Articles