Slider Region - Adds a slider control - Messages
WroteI 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...
WroteI'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.
WroteI 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.
edit: found an error in the coordinates, working to another update...
- 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)
WrotePS: 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

- fixed restoring of custom size on loading saved worksheet;
WroteWhat 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
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
File not found.File not found.
WroteHi 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).
WroteAlex, 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...

WroteAlex,
![]()
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
WroteAlex,
![]()
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)
WroteThank 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



Wrotewould 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.
.
WroteAlso, 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)

- 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;
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!
has the fractional capability, more useful in many instances of using.
Jean
in the documentation you can find how to use the "scale" parameter for non-integer values
sergio
WroteAdd 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.
WroteThe 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.
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
-
New Posts
-
No New Posts