Slider Region

Slider Region - Adds a slider control - Сообщения

#21 Опубликовано: 29.02.2016 15:56:11
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

I beg you pardon, but I tried on two machines; I updated your last issue, but no result like in you image.
The cursor moves, but no label.
Maybe it is a problem of MS libraries.



Odd behavior...

Not sure if is something in the .NET libraries or about the video card libraries...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 29.02.2016 15:57:00
#22 Опубликовано: 01.03.2016 13:53:41
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hello Ioan,

Wrote

I've seen that the "Slider" label is "blinking" with a certain frequency.
I wonder if it would not be better to keep the label permanently visible ?, of course if possible.


I can keep it visible only when the region is focused, indeed seems better for the usage.

Wrote

I observed that in an old file, the slider label is not visible, even when I introduce a new slider.
I recognize, they are very complicated the "informatics" ("God" ) paths...


Buggy, I'll fix it.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 01.03.2016 14:08:00
#23 Опубликовано: 01.03.2016 14:26:08
Davide Carpi

Davide Carpi

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

Группа: Moderator

Try now, I've changed the repaint logic of the label.

edit: found an error in the coordinates, working to another update...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
frapuano 01.03.2016 14:57:00
#24 Опубликовано: 01.03.2016 15:15:46
Davide Carpi

Davide Carpi

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

Группа: Moderator

UPDATED

- Fixed coordinate system used to paint the label;
- Updated value after form closing; (<--- I see there was at least a download in a "nightly build", please update again)


Wrote

PS: From my viewpoint, the problem is closed now.


Thank you for pointing out the bugs
When I have enough time I'll try to add the permanent labels to the ticks
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 01.03.2016 15:22:00
#25 Опубликовано: 01.03.2016 16:16:04
Davide Carpi

Davide Carpi

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

Группа: Moderator

PLUGIN UPDATED

- fixed restoring of custom size on loading saved worksheet;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 01.03.2016 16:30:00
#26 Опубликовано: 01.03.2016 17:09:36
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

What else the people can dream ?



A smart cat giving the step by step to install in 5346.
I mean from:
1. psuh the button to start PC,
2. start the coffe pot,
3. then,
4. then

... and so on.

Thanks, it will be useful in many instances
particularly when seeking to initialise "Genfit" parameters.

Jean
1 пользователям понравился этот пост
Davide Carpi 02.03.2016 05:43:00
#27 Опубликовано: 03.03.2016 14:22:36
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

Hi Davide,

Thank you very much for the plugin, looks like I will be using it quite a bit more now :d

Any chance you could incorporate setting the range of the slider? Right click -> menu button "Slider Range" will do.

I am working on creating graphically live strut & tie model and it would be of much help to see the actual values when you move the sliders.

Thanks again,

AM

P.S.: You need to download both files attached to see my example

Файл не найден.Файл не найден.
#28 Опубликовано: 03.03.2016 14:50:36
Davide Carpi

Davide Carpi

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

Группа: Moderator

Alex, doubleclick on the region and you can set maximum/minimum/increment values (integers); you can setup these value by variables on the canvas (see attchment on post #1)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Alexander O. Melnik 03.03.2016 16:12:00
#29 Опубликовано: 03.03.2016 15:28:18
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

Wrote

Hi Alex,



I tried your files.
It works fine.

I profit to learn a little bit more.
I'm not sure to penetrate alone, your logic.
Please, if you may, make me a little bit of pedagogy.

Who is doing what and why?
Maybe, if I understand well your strategy, I could adopt it "for my government".

I understood you want to analyze a concrete beam by the method of struts ans ties.

Why do you need both - SMath and Excel ? IMHO, such calculations can be done as well in Excel as in SMath. Also the drawings (?).

Thank you and please apologize if this bothers you.



Best Regards,
Ioan



Hi Ioan,

I take your question is why to use excel for plotting, when SMath can do it just fine.

I am a very "visual" type of a designer. I would like to plot my struts and ties on top of a to-scale CAD drawing. In excel I can select background for the plot region. If the dimension of the imported background matches the X & Y ranges of the plot, the struts and ties overlay onto the CAD drawing to-scale; this will let me see any geometrical errors, inconsistencies etc.

Also I prefer prototyping my calcs in EXCEL, since if error is found they can be mass edited (Find/Replace).
1 пользователям понравился этот пост
ioan92 03.03.2016 15:33:00
#30 Опубликовано: 03.03.2016 16:11:44
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

Wrote

Alex, doubleclick on the region and you can set maximum/minimum/increment values (integers); you can setup these value by variables on the canvas (see attchment on post #1)



Thank you Davide :-) Should have figured that out myself, but hey...

Wrote

Alex,

Thanks a lot for you answer.
Please believe me, no offense intention in my questions; if you received it, please apologize.
Honestly, I appreciated very much your engagement in doing plugins, courageously, starting as beginner.

In a trade work like ours, no models, everyone with his way. The shortest path between two points is the known one...
Of course we can learn from each other, and only this was my purpose, but finally we have or not to integrate things in our style.

Best Regards,
Ioan



Ioan,

I am more than happy to share my insight and would not take offence to a fair question

We all have our own ways; luckily SMath is flexible enough to acommodate us all

I was going to use a modeller instead of a plot for strut&tie, but:
- plugin does not seem to work (not on my 0.97 version at home)
- Cannot set a scale / grid there
- cannot insert a background

2 пользователям понравился этот пост
Davide Carpi 03.03.2016 16:17:00, ioan92 03.03.2016 16:13:00
#31 Опубликовано: 03.03.2016 16:15:06
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

Wrote

Alex,
The shortest path between two points is the known one...



And as we say it here: there is as many correct solutions as the number of engineers you have asked. All of them are "best" in that person's opinion b)
1 пользователям понравился этот пост
ioan92 03.03.2016 16:22:00
#32 Опубликовано: 03.03.2016 16:19:22
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Thank you Davide :-) Should have figured that out myself, but hey...



Don't worry (even if was a good occasion to use the RTFM smile :rtfm
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#33 Опубликовано: 03.03.2016 18:11:22
Fridel Selitsky

Fridel Selitsky

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

Группа: User

It works fine.

PrUgol adash.sm (66 КиБ) скачан 97 раз(а).
1 пользователям понравился этот пост
Davide Carpi 03.03.2016 20:26:00
#34 Опубликовано: 04.03.2016 15:23:09
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hello Ioan

Wrote

would be better to be conserved as visible after the lost focus event.


Unfortunately is not possible without drawbacks. I'll add a permanent internal label (alternative to this) when I'll add the label thicks. As for now the only way is to use a math object on the worksheet.
.
Wrote

Also, I think it would be better to place the label on the free left side of the control.
Please excuse me if I abuse a little on your generosity.


You're excused. Top/Left sides can go on the edges of the worksheet, Top/Left/Right edges are available for the description region... this impacts both in the code as well as in the UI (the label would be placed not always in the same position - not necessirly bad, though is something to consider)

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
ioan92 04.03.2016 15:25:00
#35 Опубликовано: 21.04.2016 11:11:15
Davide Carpi

Davide Carpi

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

Группа: Moderator

PLUGIN UPDATED SMath Studio 0.98.5952 Nightly Build only

  • Added optional labels for ticks (maximum e minimum values);
  • Added optional label for current value;
  • "Settings..." item added to the context menu;
  • Several bug fixes related to wide ranges;


2016-04-21 16_01_37-SMath Studio Desktop - [Page1.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#36 Опубликовано: 21.04.2016 13:45:19
Alexander O. Melnik

Alexander O. Melnik

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

Группа: Moderator

David,

Since it looks like you are working on this plugin, may I suggest the following:

Add an ability to set a starting value of the slider from a worksheet.

It is useful when you use one slider to fine tune several independent values (by switching between them). It is also useful if the slider range, and starting point depend on the previous calculations, since it will change if the existing input changes.

Hope I am clear enough here. Thank you very much!
#37 Опубликовано: 21.04.2016 14:11:39
Jean Giraud

Jean Giraud

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

Группа: User

Integer values have limited use. The Microsoft "Scripted Component"
has the fractional capability, more useful in many instances of using.

Jean
#38 Опубликовано: 21.04.2016 14:19:10
sergio

sergio

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

Группа: User

Jean,

in the documentation you can find how to use the "scale" parameter for non-integer values

sergio
1 пользователям понравился этот пост
Davide Carpi 21.04.2016 14:43:00
#39 Опубликовано: 21.04.2016 14:54:17
Davide Carpi

Davide Carpi

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

Группа: Moderator

Wrote

Add an ability to set a starting value of the slider from a worksheet.

It is useful when you use one slider to fine tune several independent values (by switching between them). It is also useful if the slider range, and starting point depend on the previous calculations, since it will change if the existing input changes.


I can do it, but this means that the slider will be used just as visual feedback, since any user change triggers the evaluation that restore the input value.

Wrote

The Microsoft "Scripted Component"
has the fractional capability


Unfortunately, nope; Microsoft's trackbar is based on integers (TrackBar.Value). Since I based the Viewer support on the Framework Trackbar, integers was the choice.

As mentioned by Sergio, I've implemented a scale factor to provide something better.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 пользователям понравился этот пост
sergio 21.04.2016 15:14:00, frapuano 21.04.2016 15:18:00
#40 Опубликовано: 21.04.2016 21:29:10
Jean Giraud

Jean Giraud

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

Группа: User

Hello: Sergio, Davide,

Thanks for your explanation. My comment was about something like the scripted components
supplied with Mathcad 11 [per say]. However, slider was for a guy like me developping 100's
model functions, vey useful to me but not in Engineering/Scientific works. In reference to
Mathcad 11 [per say again], Mathcad Scripted Components were almost unanimously rejected as
beeing "exe" [executable] thus, prone to virus/malware infection. Interesting for classroom
and for local animation and permanent animation to save, but unfortunately of very poor
quality no matter the codecs.

Cheers, Jean


1 пользователям понравился этот пост
Davide Carpi 22.04.2016 03:32:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений