- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
is optically too large for my purpose. I was not able to find a way to control its size.
Thanks for any hint.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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"
Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "" ) );
ex << Set Icon( "Formula" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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"
Names Default To Here( 1 );
New Window( "Example", ex = Button Box( "" ) );
ex << Set Icon( "Formula" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Width of a button box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Width of a button box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Width of a button box
See Help > JMP Documentation Library > JSL Syntax Reference and look up "button box."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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 results in quite exactly the small "add" buttons I need in my list: