RadioButtonList Region - adds RadioButtonList controls to SMath Studio and SMath Viewer - Messages






- Allowed inputs: mouse click, mouse wheel, + and - keys;
- Settings: double-click over the region.
- Input: any vector/matrix/system with two or more rows.
- Output: place a variable in the region placeholder.
- Size driven by the values (manual resize not allowed).
- Adds the same control in SMath Viewer (using the same layout).
Look in the attachment for more details and features.
PLEASE REPORT HERE ANY ISSUE
Password: test
Control Regions: CheckBoxList | ComboBoxList | ConditionallyFormattedLabel | NumericUpDown | PathPicker | RadioButtonList | Slider
features & examples.sm (18 KiB) downloaded 394 time(s).
I don't mind using the two-column matrix; In some situations is a nice shortcut for define the variable in output.
Perhaps it would be useful to differentiate the instrument through an option.
sergio
Franco
WroteThanks Davide for this exquisite gift,
It really fills a missing tool place !
You're welcome :d
WroteI noticed that when a matrix is taken as input source, the output is no more the selected line number,
but it corresponds to the value for the selected line in the second column of this matrix.
From my viewpoint, it would be preferable to have as output always the selected line number, in order to be able to recover the whole line of the matrix, especially when the matrix has more then 2 columns (!?).
Ok, I can easily suppress this feature, I've just reproduced the combobox behavior

No feedbacks about the new symbolic features shown in the first attachment?
Best regards,
Davide
now, more than before, I can confirm that two-column matrix is fantastic for me

sergio
WroteNo feedbacks about the new symbolic features shown in the first attachment?
Great to see that you have access to the math region formatting capabilities within custom regions.
Given the depth of your insight into the machinery, I see potential for great things to become true:
- plot regions with placeholders for axis limits and arbitrary expressions for annotation
- Text region with math insets and rtf formatting capabilities
- seamlessly integrated matrix editor
- Tabular input feature (like in Mathcad)
- Tabular display using math-region-consistent formatting
- advanced result formatting (numbers of significant digits, polar form of complex numbers)
- special markup for nonscalar variables (boldface)
- Fulltext search (in the open sheet and in directory trees)
But don't be too fast, even now it is hard to keep up documenting... ;-)
best regards,
Davide

From my point of view there are enough tools to make any solution usable, but there are "better" and "less better" ways.
Talking about general cases, with the first approach (emulation of combobox behavior) if you want the index from a matrix for post-processing purposes (get the whole row, get the n-th element of that row, or get something else not directly related), you need a pre-processing by assigning the first column to a new variable or some post-processing operation (like that made by you with findrows; here you assume that the second column contains only different values, but you may encounter some problems when the second column contains several equal values).
In the other hand making the option index as output always available there's no needs to make pre-processing operations and any post-processing operation could start from an unique identifier without issues; moreover, as I've written in my previous post, I think that it's possible to move the most common desired outputs directly inside the region dialog (if my explaination was not too much confused, it should emerge that these options are for a very specific context, namely that in which the region drives only the parameters of the input matrix; if the region drives also other things, like corresponding parameters in other matrices/tables, the index is again the most important thing). As "secondary" matter, this is a more linear approach: any allowed input returns as default output the row index of the selected item).
However the plugin is a beta and I'm opened to any suggestion

Best regards,
Davide
Now something different. The discussion on parametrization of smath sheets "from below" caused me to have a closer look on what Andrey calles "absolute definitions", see http://en.smath.info/forum/yaf_postst1348_Absolute-definitions.aspx
If an absolute variable is used as output, then the radio button region fails to trigger re-calculation, even if it looses mouse focus. In contrast to that, normal variables react imediately to button actions.
In order to get the sheet consistent, manual recalculation is required.
Parametrierung.sm (4 KiB) downloaded 128 time(s).
WroteNow something different. The discussion on parametrization of smath sheets "from below" caused me to have a closer look on what Andrey calles "absolute definitions", see http://en.smath.info/forum/yaf_postst1348_Absolute-definitions.aspx
If an absolute variable is used as output, then the radio button region fails to trigger re-calculation, even if it looses mouse focus. In contrast to that, normal variables react imediately to button actions.
In order to get the sheet consistent, manual recalculation is required.
I think that absolute definitions could be useful also in the modeller region

Seems a SMath bug or "unimplemented feature"... if you use a classic variable as output (a) and then you define the absolute variable using the output (∼a:a), the result is the same...
WroteI change, by the program, the Input Data source for the Button List and, for every input change, the setting "split every" is reset to the default "all the list"(!?).
The layout and the number of consecutive elements are unset when you change the input size (number of rows)
As for the layout, there are no problems... The "split every" value is a little bit more complicated to drive...
WroteDo you imagine a font control for the list. As it is, it seems using an embedded unique font, without any possibility of changing ?
Actually there are some small issues in Math regions when you change the fonts (you can see something exporting the example worksheet in SMath Viewer), but is it in my plans...
best regards,
Davide
(SMath Studio 0.97.5189)
- code updated to fit the new APIs features;
WroteI think plug-in should be recompiled. Sorry for this, but I have to do some critical changes in Custom Regions mechanizm in order to provide new features in future.
Don't worry Andrey, any improvement is highly welcome! (and the plugin version in the EM is very useful to avoid confusion)

Best regards,
Davide
(SMath Studio 0.97.5189)
- Layout & split settings propagated when data size changes;
- fixed clicks on "white cells";
- fixed clicks on empty regions.
(SMath Studio 0.97.5189)
- SMath Viewer: uses the region description (if exist and is shown).
(SMath Studio 0.97.5189)
- BTS SS-103 features (extended)
- select input column
- select output type (index, element from a column, whole row)
- select text Font
- select text Color (from SMath toolbar) - RBs now uses MathRegions for any element shown (except strings at the first nesting level)
- Added number's formatting (at the first nesting level)
NOTE: The plugin should be back-compatible with the previous version; this compatibility will be extended as long as possible but I suggest to update any document containing this plugin to avoid problems in the future.
WroteGrazzie mille !
![]()
de rien! :d
BTW this version of the plugin should be the backbone of the ComboBoxList plugin (SS-102) so any feedback about bugs or lacks is important.
Best regards,
Davide
(SMath Studio 0.97.5189)
- fixed number's settings when dialog exit condition is not "OK";
- minor changes;

With my files I can't reproduce this issue, can you attach here or send me a file with this issue?
Best regards,
Davide
---
edit: this is a back-compatibility issue. Anyone that experiment this problem can replace with a text editor the XML code:
<ul>
<li>a string</li>
<li>a string</li>
<li>a string</li>
<li>a string</li>
</ul>
with:
<ul>
<li>#</li>
</ul>
then the file can be opened and saved again, without losses.
- Plugin updated to respect changes in SS Core;
- Evaluation on end of multiple MouseWheel calls or +/- keys pressed restored;
- +/- fixed to work with any localization;
-
New Posts
-
No New Posts