Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
Just as the title says, it'd be nice if the Scroll Box() supported the << Scroll Window() command. Key advantage is being able to put in a DisplayBox and have the Scroll Box go straight to it.
This can be accomplished with a combination of <<Get Offset and <<Set Scroll Position. If the box being scrolled to is nested in the display tree, multiple calls to <<Get Offset (adding up the sum of offsets) will be needed on each parent up to the scroll box container. Below is an example where the box is just one level deep in the scroll box.
New Window("scroll to offset example",
sb = V Scroll Box(size(100), vlb = v list box()),
button box("Scroll to Important stuff",
<<set function(function({this},
offset = tb << get offset();
show(offset);
sb << set scroll position(offset[1], offset[2])
))
)
);
append = Function({vlb, n, text},
{i},
for( i = 1, i <= n, i++,
vlb << Append(text box(text))
);
);
// append some boxes
append(vlb, 10, "placeholder");
vlb << append(tb = text box("important stuff"));
append(vlb, 10, "placeholder");
However, a new message for scrolling to a box might be useful, so we have sent this suggestion to our development team for review.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.