Slider Region

Slider Region - Adds a slider control - Messages

#1 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

SMath Studio compatibility SMath Viewer compatibility mono compatibility

extension page Sources MIT license


2015-11-08 15_43_34-SMath Studio Desktop - [slider.exe].png


  • requirements: SMath Studio 0.96.5146 or later;
  • installation: download the plugin from the gallery;
  • documentation: see Slider Region.sm (31 KiB) downloaded 141 time(s).;
  • sources: all the updated sources are available in the SVN repository.


>>> PLEASE REPORT IN THIS THREAD ANY ISSUE, MORE DETAILED AS POSSIBLE <<<



Control Regions: CheckBoxList | ComboBoxList | ConditionallyFormattedLabelNumericUpDown | PathPicker | RadioButtonList | Slider
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
Andrey Ivashov 11 years ago, Вячеслав Мезенцев 11 years ago, ioan92 9 years ago, IVR 11 years ago
#2 Posted: 11 years ago
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Davide,

It seems that Controls menu item appeared twice under Insert with two of your plugins. On is Insert=>Controls=>Slider as well as Insert=>Controls=>Numeric up-down

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 11 years ago
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

It's great! Thank you!

I noticed one minor issue: "=" keyboard button handled as "+" by the control.

Regards.
#4 Posted: 11 years ago
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

Wrote

It seems that Controls menu item appeared twice under Insert with two of your plugins. On is Insert=>Controls=>Slider as well as Insert=>Controls=>Numeric up-down


Thank you! Good catch! This is SMath Studio issue which will be fixed later. It is described here: http://en.smath.info/forum/yaf_postst2316_-DEV--group-MenuButtons-having-childrens.aspx

Regards.
#5 Posted: 11 years ago
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

You are welcome,
Wrote

Wrote

It seems that Controls menu item appeared twice under Insert with two of your plugins. On is Insert=>Controls=>Slider as well as Insert=>Controls=>Numeric up-down


Thank you! Good catch! This is SMath Studio issue which will be fixed later. It is described here: http://en.smath.info/forum/yaf_postst2316_-DEV--group-MenuButtons-having-childrens.aspx


By the way, it can be quite confusing an to long menu item without some reordering and grouping things of the Insert menu.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

I noticed one minor issue: "=" keyboard button handled as "+" by the control.


Seems a little big problem... I noticed now that english and russian layouts have "+" and "=" on the same key, and the plus symbol needs the SHIFT modifier; in the italian layout the "=" key is activated with the "SHIFT"+"0" combination and the "+" sign is in the same key of the "*", but is activated without SHIFT modifier.

So the question is: how I can use the Keys.Oemplus without localization issues? (because I suppose that the Italian layout is not alone in the universe of the keyboard layouts)

With the premise that it is not critical ("=" should not be used in this region), looking the web seems to me that the OnKeyDown is the wrong event to check this, the OnKeyPress probably should be better (but I'm not sure).

Wrote

By the way, it can be quite confusing an to long menu item without some reordering and grouping things of the Insert menu.


I think also that something is in the wrong place (like the Martin's Maxima items or my Development tools, these should be moved in the "Tools" menu - but this is a secondary thing)
German.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 11 years ago
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I'd propose to bind doubleclick to the settings menu, just like in the numeric-up-down region.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

I will think about this; in one hand I don't like that the first click may change the thumb location, in the other hand this has not much importance accessing to the settings dialog...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#9 Posted: 11 years ago
Fridel Selitsky

Fridel Selitsky

520 likes in 451 posts.

Group: User

Wrote

It's great! Thank you!





Slider.rar (390 KiB) downloaded 125 time(s).
1 users liked this post
Davide Carpi 11 years ago
#10 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Nice work ber

Wrote

In order to improve the practical usability of the slider, I propose, of course if it is possible, to include inside the object draw, labels for the current selected value and also for the minimum and the maximum values at least.


Hi Ioan,

it's not impossible, just a little bit annoying

I think that I can add both the solutions (current value and start/end values).

BTW in the preliminary "documentation stage" of this plugin, I've seen some sliders using primary ticks (with optional numbering) and secondary ticks (without numbering). This was discarded because the approach is completely different from that used in the standard .NET controls, so the SMath Viewer would have been a big tricky (with total rewriting of the default Control code)


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 11 years ago
#11 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

UPDATED

(SMath Studio 0.97.5189)

- code updated to fit the new APIs features;
- settings with double-click over the region (as for the other control regions);
- hidden the outer frame (still remains as transparent to avoid interferences with resize markers).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Posted: 11 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

UPDATED

(SMath Studio 0.97.5189)

- SMath Viewer: uses the region description (if exist and is shown).

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 11 years ago
#13 Posted: 10 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5576 (08 April 2015)

- Fixed unintentional change of value on resize;
- Yesterday: Plugin updated to respect changes in SS Core;
- Yesterday: fixed MouseWheel vs recalculation;
- Yesterday: fixed +/- keys vs keyboard layout;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Andrey Ivashov 10 years ago
#14 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737

- Introduced settings from canvas (see attachment);
- History Undo/Redo now is supported;

canvas settings.sm (22 KiB) downloaded 132 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
sergio 9 years ago, ioan92 9 years ago, NDTM Amarasekera 9 years ago, Andrey Ivashov 9 years ago
#15 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Hi Ioan


Wrote

For practical use, I have two question:
1. "settings_numUpDown" is a dedicated unique name for parameters settings ?


You can define a different set of settings for each control in the worksheet, and you can use the name you want; I've changed the variable name in the attachment, to avoid misunderstandings.


Wrote

2. for each of a set of controls, the "CustomVarName" used is the last one declared ?


The last definition before each single control is the only one parsed and loaded (if valid). If you override the variable between two controls which are linked to the same variable, the 2nd control will contains different settings than the first.


BTW I've updated both Slider and NumericUpDown regions, now the list of available settings is alphabetically sorted and subscripts in variable names are localization-proof.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 9 years ago
#16 Posted: 9 years ago
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

"As for now, do not use this plugin for productivity."
____________________________________

Amazing: my Smath came with the slider, I played a bit and found useless
as not having the fractional range from script. Whether useless for me
is not my point. My point is that now it is gone from the insert menu.
How come it died by itself ? On the other hand, the Mathcad slider was
not recognised by PDF.
#17 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Hello Jean

Wrote

"As for now, do not use this plugin for productivity."


I can remove this warning, the plugin is stable and I've not noticed requests of deep changes in the core features.

Wrote

Amazing: my Smath came with the slider


This is not possible. A clean installation (no SS available before or deep cleaning after an unistall) comes out with the plugins shown in the spoiler. If you have any other plugin it is because they were installed in a previous version of SMath Studio, manually downloaded from the Extensions Manager or downloaded by opening worksheets in which these plugins are used.

Show Spoiler



Wrote

I played a bit and found useless
as not having the fractional range from script.


To provide compatibility with the Windows trackbar in SMath Viewer any value (max value, min value, increment, output value) must be an integer; to mitigate this limitation I've introduced a scale factor.

Wrote

My point is that now it is gone from the insert menu.
How come it died by itself?


You can see a document that contains this plugin without the "Slider" item in the insert menu?
2015-11-08 12_46_24-SMath Studio Desktop - [Page1].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#18 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Hello Ioan,

As for now there aren't labels in this region, neither for the ticks nor for the current value.

The only way to display the value is to place a math region near the control.

2016-02-28 23_48_42-SMath Studio Desktop - [slider.sm].png


BTW, fixed missing settings on save. PLUGIN UPDATED.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 9 years ago
#19 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Possible it is possible, the effort is to made something consistant with the already implemented features (f.e. the vertical style)

I've updated the plugin adding a label for the current value (SMath Studio/SMath Viewer)

2016-02-29 16_53_00-SMath Studio Desktop - [slider.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
ioan92 9 years ago
#20 Posted: 9 years ago
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Hello Ioan,

the label should be visible by default on cursor changes.

slider.gif
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts