Numeric up-down Region

Numeric up-down Region - Adds a numeric up-down control - Сообщения

#1 Опубликовано: 06.02.2014 14:29:04
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

SMath Studio compatibility SMath Viewer compatibility mono compatibility

extension page Sources MIT license


Numeric Up-Down Control.

  • requirements: SS 0.96.5146 or later;
  • installation: SMath Studio: Tools > Plugins... > Online Gallery;
  • documentation: Numeric up-down Region.sm (28 КиБ) скачан 100 раз(а).;
  • languages: English;
  • main features:
    - Allowed inputs: region up/down buttons, + and - keys, mouse wheel; hold the input to have more increments.
    - Settings: double-click over the region.
    - Output: place a variable in the region placeholder.
    - Size driven by the value (manual resize not allowed).
    - Adds the same control in SMath Viewer.


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


Показать спойлер




Control Regions: CheckBoxList | ComboBoxList | ConditionallyFormattedLabelNumericUpDown | PathPicker | RadioButtonList | Slider
2014-02-06 19_29_22-SMath Studio Desktop - [NumericUpDown.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
5 пользователям понравился этот пост
Вячеслав Мезенцев 07.02.2014 03:57:00, sergio 07.02.2014 05:06:00, IVR 07.02.2014 16:00:00, Radovan Omorjan 07.02.2014 02:19:00, ioan92 09.03.2014 13:22:00
#2 Опубликовано: 17.03.2014 19:02:55
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

UPDATED

(SMath Studio 0.97.5189)

- code updated to fit the new APIs features;
- 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
#3 Опубликовано: 18.03.2014 19:18:44
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Davide, it seems that description strings of the region are ignored in the viewer. Can that be changed or do I need to use sort of "nice" variable names?
Notenschlüssel.sm (11 КиБ) скачан 109 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Опубликовано: 18.03.2014 19:48:19
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

I'll do it Martin... previously I've noticed a bug, now seems that the description text it works
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Опубликовано: 22.03.2014 13:44:41
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
ioan92 22.03.2014 13:59:00
#6 Опубликовано: 22.07.2014 04:56:30
sergio

sergio

115 сообщений из 329 понравились пользователям.

Группа: User

Hello Davide,
It seems that the numeric up-down region remains active even when control is not checked
[albumimg]356[/albumimg]
After using the mouse wheel
[albumimg]357[/albumimg]

sergio
win7
smath 0.97 build 5301
1 пользователям понравился этот пост
Davide Carpi 22.07.2014 06:37:00
#7 Опубликовано: 22.07.2014 05:48:40
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Grazie Sergio

Fixed, 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 пользователям понравился этот пост
sergio 22.07.2014 09:48:00
#8 Опубликовано: 08.10.2015 10:36:19
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

I think it is possible...

Something like in the attachment? The entry point for the variable would be the form (like in table region) or in the context menu (like in the modeller region); this should grant customizable settings for every region, when you have multiple regions.
2015-10-08 15_39_15-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
1 пользователям понравился этот пост
ioan92 08.10.2015 10:58:00
#9 Опубликовано: 28.10.2015 11:55:55
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.97.5737

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

canvas settings.sm (17 КиБ) скачан 169 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 пользователям понравился этот пост
Andrey Ivashov 28.10.2015 16:35:00, ioan92 28.10.2015 12:15:00, NDTM Amarasekera 28.10.2015 12:40:00, sergio 28.10.2015 13:49:00
#10 Опубликовано: 22.09.2021 10:44:14
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Not a bug but a cosmetic issue.
In Linux, plugin shows two square on each side of the value.
They are not written to variable, fortunately.

Regards

2021-09-22_16-41.png
1 пользователям понравился этот пост
Davide Carpi 22.09.2021 14:43:00
#11 Опубликовано: 22.09.2021 14:47:54
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Thank you, it appears because the thin space character is not available in that font (the irony... was added for cosmetic reasons too... )

I'll get rid of it for a more robust alternative.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Опубликовано: 04.10.2021 07:48:47
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.99.7822 and later

  • buttons are now made by vector drawing;
  • removed thin spaces because issues in mono fonts;



If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
sergio 04.10.2021 10:00:00
#13 Опубликовано: 25.10.2021 14:12:35
Renzo Choque

Renzo Choque

6 сообщений из 18 понравились пользователям.

Группа: User

Hi, it seems that the "canvas setting" field does not recognize the "whatever" variable. I'm using smath in windows 10.Slider.png
#14 Опубликовано: 25.10.2021 21:18:43
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Wrote

Hi, it seems that the "canvas setting" field does not recognize the "whatever" variable. I'm using smath in windows 10.


I think this can be a bug.
When a setting has a string value, it can not be read by canvas settings.
Delete the "TickPosition" = "both" and whatever will be readable again.

I have tried this with "orientation" = "vertical", whatever can't be read by canvas settings.
Deleted the "orientation" = "vertical" element, and it can be available again.
This behavior made me to think there is something wrong while reading strings.

Regards
#15 Опубликовано: 26.10.2021 05:58:20
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Thank you, confirmed. I'll fix it ASAP.

Wrote

This behavior made me to think there is something wrong while reading strings.


You are right, it is related to strings encoding. If you remove the space character from "maximum value" it works as expected.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Опубликовано: 01.11.2021 06:44:42
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Issue fixed in both NumericUpDown and Slider regions for latest SS stable and later.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#17 Опубликовано: 01.11.2021 13:56:08
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

String issue not fixed, at least for linux.

Regards

slider_options.sm (4 КиБ) скачан 66 раз(а).

2021-11-01_19-55.png
#18 Опубликовано: 02.11.2021 05:58:47
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

String issue not fixed, at least for linux.



Thank you, I can reproduce with your file even in windows... this issue it's something more subtle, though

2021-11-02 09_54_02-SMath Solver - [slider_options-1.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#19 Опубликовано: 02.11.2021 11:56:10
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

String issue not fixed, at least for linux.



Found it. You forgot to set the optimization to "none" on definitions, as indicated in the documentation. If you hover over the definition you can see that in both numeric and symbolic optimization the boolean equal between strings is preprocessed and stored as 0.

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#20 Опубликовано: 02.11.2021 14:28:13
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Wrote

Found it. You forgot to set the optimization to "none" on definitions, as indicated in the documentation.
If you hover over the definition you can see that in both numeric and symbolic optimization the boolean equal between strings is preprocessed and stored as 0.


Thanks, now it works.
To be honest I didn't read the documentation in first post.
I only looked in Reference Book and couldn't see that information in it.

Regards
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений