Slider Region

Slider Region - Adds a slider control - Mensajes

#1 Publicado: 11/2/2014 6:14:59
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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,09 KiB) descargado 1829 vez(es).;
  • 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 | ConditionallyFormattedLabel |  NumericUpDown | 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
A 4 usuarios les gustó este mensaje
Andrey Ivashov 11/2/2014 15:00:00, Вячеслав Мезенцев 11/2/2014 7:08:00, ioan92 8/11/2015 12:24:00, IVR 11/2/2014 12:14:00
#2 Publicado: 11/2/2014 15:55:20
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 11/2/2014 15:55:25
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: Super Administrator

It's great! Thank you!

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

Regards.
#4 Publicado: 11/2/2014 15:57:47
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: 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 Publicado: 11/2/2014 16:05:00
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 11/2/2014 19:35:04
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 8/3/2014 18:27:10
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

I'd propose to bind doubleclick to the settings menu, just like in the numeric-up-down region.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#8 Publicado: 10/3/2014 6:32:08
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 13/3/2014 11:37:35
Fridel Selitsky

Fridel Selitsky

520 me gusta en 451 mensajes.

Grupo: User

Wrote

It's great! Thank you!





Slider.rar (390,06 KiB) descargado 579 vez(es).
A 1 usuarios les gustó este mensaje
Davide Carpi 13/3/2014 19:20:00
#10 Publicado: 13/3/2014 19:37:06
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 13/3/2014 21:18:00
#11 Publicado: 17/3/2014 19:04:14
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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 Publicado: 22/3/2014 13:32:30
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 22/3/2014 13:35:00
#13 Publicado: 9/4/2015 13:03:06
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Andrey Ivashov 10/4/2015 5:31:00
#14 Publicado: 5/11/2015 16:04:12
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737

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

canvas settings.sm (22,29 KiB) descargado 1821 vez(es).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 4 usuarios les gustó este mensaje
sergio 6/11/2015 5:20:00, ioan92 5/11/2015 16:12:00, NDTM Amarasekera 5/11/2015 23:09:00, Andrey Ivashov 6/11/2015 6:13:00
#15 Publicado: 5/11/2015 20:06:25
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 6/11/2015 6:05:00
#16 Publicado: 8/11/2015 3:50:06
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 8/11/2015 8:46:42
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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.

Mostrar 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 Publicado: 28/2/2016 19:52:59
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 29/2/2016 4:35:00
#19 Publicado: 29/2/2016 12:55:30
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
ioan92 29/2/2016 13:03:00
#20 Publicado: 29/2/2016 13:43:51
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
  • Nuevos mensajes
  • Sin mensajes nuevos