Bug SS-2390
1 vote

Slider Region within Viewer window

Created by smath on 9/6/2016 4:32 PM Last Updated by smath on 9/9/2016 6:32 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

Slider Region should be shown in Viewer as a standard slider control. It should also display description as a label (see MathRegion f.e.).

    smath (Friday, September 9, 2016 6:32 PM) #

Super! It works.

Thank you!

    Davide (Friday, September 9, 2016 6:17 PM) #

Fixed.

There is still an issue: OnEvaluation(Store) sometimes is not fired (in your example, click here and there on the first trackbar; soon or later some change doesn't update the worksheet; displaying the output result makes it more visible. not able to reproduce when the viewer contains only trackbars, might be some interaction issue)

    smath (Thursday, September 8, 2016 10:33 PM) #

Thank you, Davide!

But unfortunately new Control do not work as expected. Yes, it looks similar to standard WinForm Control, but is an issue.

Please open my example from http://en.smath.info/forum/yaf_postsm35370_Interpolation-of-closed-curves.aspx#post35370 and try to export it to EXE.

Tooltip of the first Slider Control shows incorrect values and causes calculation errors.

    Davide (Thursday, September 8, 2016 8:55 PM) #

Done, plugin updated.

A (close-to) standard winform control is now used instead of the region (always).

 

    Davide (Tuesday, September 6, 2016 8:35 PM) #

Yes I think it is possible. As general idea, I prefer to have a customized winfom control and use it always, instead of some option to show one or the other (to avoid complexity on both sides, user and dev). As you suggested in the meanwhile I'll try to restore the standard winform for some common cases.

About the print preview bug since it is just in one direction I guess is something about the size property not updated before calling the dialog, but I'm not able to reproduce it.

    smath (Tuesday, September 6, 2016 8:17 PM) #

Is it possible to show standard control if all the values are in supported ranges? Or at least to allow user to specify how this region should look in WinForms...

The thing is that it is very inconvenient to use SliderRegion as a region in Viewer applications - it looks pretty foreign there. For example, please see slider_issue_3.png

Plus, standard control allows to use all keyboard keystrokes and user is always familiar with them.

Maybe we need to create winforms slider control which will support everything you need? I believe it is possible - we can do it together.

 

Viewer was designed to hide SMath Studio regions from end uder and to provide familiar controls instead.

    Davide (Tuesday, September 6, 2016 8:03 PM) #

Standard controls were replaced mainly because 2 issues:

- decimal values not supported; initially I've used a scale factor, but it was limiting and there were some inconsistances with "settings from canvas" feature;

- big ranges issues; range of standard slider is limited by type of his max/min values (integer). Another issue comes when ticks are displayed. I don't remember if crashes or is not drawn at all (I remember the source of the issue is related to the fact that the control tries to draw all the tiicks)

 

    smath (Tuesday, September 6, 2016 4:48 PM) #

Another issue related to Slider in Viewer is printing. Please check sizes of the controls: http://smath.info/bts/Issues/UserControls/DownloadAttachment.axd?id=2228.