Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hi all, Here there is a plugin to add labels customizable by canvas inputs. Plugin languages: - requirements: SMath Studio 0.96.5146 Nigthly build or later, .Net Framework 2.0;
- installation: SMath Studio: Tools > Plugins... > Online Gallery;
- documentation: download and unzip the attached archive;
- languages: if you want to have a new UI language look into the documentation's Language folder
>>> PLEASE REPORT IN THIS THREAD ANY ISSUE, MORE DETAILED AS POSSIBLE <<< Control Regions: CheckBoxList | ComboBoxList | ConditionallyFormattedLabel | NumericUpDown | PathPicker | RadioButtonList | SliderEdited by user 01 November 2021 13:34:12(UTC)
| Reason: Links File Attachment(s): Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
7 users thanked Davide Carpi for this useful post.
|
on 30/09/2013(UTC), on 30/09/2013(UTC), on 30/09/2013(UTC), on 30/09/2013(UTC), on 01/10/2013(UTC), on 26/10/2013(UTC), on 16/12/2015(UTC)
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
This is nice Davide, thank you By the way, we can suppress viewing the if statement (only the formated label) by right click and unchecking "Display input data" Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
You're right Radovan, and you can also nest many if/else to have multiple outputs Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/12/2011(UTC) Posts: 321 Location: italy Was thanked: 110 time(s) in 94 post(s)
|
thanks Davide, but I can't resize the label despite the presence of grip sergio
Win64 Portable Version Smath 0.96 (build 4909)
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,035 Was thanked: 1167 time(s) in 746 post(s)
|
Originally Posted by: PompelmoTell thanks Davide, but I can't resize the label despite the presence of grip sergio
Win64 Portable Version Smath 0.96 (build 4909) The size is exclusively driven by the contents (string length). Might be a good idea to hide the grips. Please find attached a brick for bar charts. Please note that I was forced to fill the right of the bar by visible symbols as spaces obviously are disregarded for computing the region size. File Attachment(s): mkraska attached the following image(s): |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: mkraska The size is exclusively driven by the contents (string length). Correct, this is by design - like for hyperlink regions Originally Posted by: mkraska Might be a good idea to hide the grips. I know, but is not yet possible; Andrey know this issue, the behavior will change in future Originally Posted by: mkraska Please note that I was forced to fill the right of the bar by visible symbols as spaces obviously are disregarded for computing the region size. I can force the plugin to measure also the trailing spaces, if could be useful, just let me know it best regards, Davide Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: w3b5urf3r_reloaded I can force the plugin to measure also the trailing spaces, if could be useful, just let me know it Done, updated |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,035 Was thanked: 1167 time(s) in 746 post(s)
|
Now the complete bar chart. File Attachment(s): mkraska attached the following image(s): |
|
2 users thanked mkraska for this useful post.
|
on 01/10/2013(UTC), on 01/10/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
UPDATED- works in Smath Viewer; - default background color (empty string): white; - default foreground color (empty string): black. Edited by user 01 October 2013 18:03:35(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,035 Was thanked: 1167 time(s) in 746 post(s)
|
Thanks for the update. As you see, the region can display multiline text, thus it would be possible to do stuff like the bar chart in a single region, if there was access to the newline character from the GUI. I'd propose to accept a single string as argument, now as there are defaults for the colors. I also propose to left align the text (or to provide optional control) mkraska attached the following image(s): |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hi Martin, I see, I'll think about to add more controls... as general idea this region is thinked to be used as a label (a short text) with variable appearance depending on the script events; the table region will be the better solution to have a more customizable (fixed) appearance. BTW your last example puts me in mind that would be more handy and useful to use the built-in Output window to easily access these infos without calling dedicated functions or looking for log files. Edited by user 02 October 2013 11:48:56(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,035 Was thanked: 1167 time(s) in 746 post(s)
|
Originally Posted by: w3b5urf3r_reloaded as general idea this region is thinked to be used as a label (a short text) with variable appearance depending on the script events; the table region will be the better solution to have a more customizable (fixed) appearance. Off-spec use of features is part of the fun, isn't it? Originally Posted by: w3b5urf3r_reloaded BTW your last example puts me in mind that would be more handy and useful to use the built-in Output window to easily access these infos without calling dedicated functions or looking for log files.
I suppose your proposal impies that the output window can be fed directly from inside plugins. How would I trigger this from outside? How do I identify the output of a particular math region in the midst of a SMath sheet? I can't stop the re-calculation of a sheet at a particular expression, can I? The maxima plugin has a two-level log inspection feature: - MaximaLog("all" ) displays the entire Maxima session from the Maxima perspective without translation detail)
- MaximaLog(#) displays the detail of the previous Maxima call including maxima command, maxima response and back-translation.
By positioning the MaximaLog(#) at the right place you can clearly tell what Maxima did in the last interaction, regardless if the call was made by a hijacked function like int(), diff(), sum() or lim(), a dedicated function like Solve() or LinSolve() or directly by a Maxima() command. I found MaximaLog(#) handy to use for documenting bugs in the todo list and it is always close at hand (from the dynamic assistant) in the sheet without the need to open and close the output window. I must admit that I don't know how to even reach this level of comfort and clearness using the output window. How would you control the output if not by dedicated commands? How would you identify where the output came from? When using trace(), I find myself adding label texts to output commands in order to match the output with the SMath context. But I may just oversee options, thus any ideas are welcome. |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: mkraska Off-spec use of features is part of the fun, isn't it? Not always (for the developpers) The multiline feature is not easily accessible from the canvas, so the alignment feature would produce confusion (in some way like the resize's grips); BTW if you want a "display region" to send out a well formatted output from the Maxima plugin, you can also make something like the "Maple" region of Viacheslav Originally Posted by: mkraska I suppose your proposal impies that the output window can be fed directly from inside plugins. How would I trigger this from outside? How do I identify the output of a particular math region in the midst of a SMath sheet? I can't stop the re-calculation of a sheet at a particular expression, can I? The maxima plugin has a two-level log inspection feature: - MaximaLog("all" ) displays the entire Maxima session from the Maxima perspective without translation detail)
- MaximaLog(#) displays the detail of the previous Maxima call including maxima command, maxima response and back-translation.
By positioning the MaximaLog(#) at the right place you can clearly tell what Maxima did in the last interaction, regardless if the call was made by a hijacked function like int(), diff(), sum() or lim(), a dedicated function like Solve() or LinSolve() or directly by a Maxima() command. I found MaximaLog(#) handy to use for documenting bugs in the todo list and it is always close at hand (from the dynamic assistant) in the sheet without the need to open and close the output window. I must admit that I don't know how to even reach this level of comfort and clearness using the output window. How would you control the output if not by dedicated commands? How would you identify where the output came from? When using trace(), I find myself adding label texts to output commands in order to match the output with the SMath context. But I may just oversee options, thus any ideas are welcome. Sincerely I don't know, I've threw a stone into the pond Maybe a special context menu item could be added or a log function with canvas free result that enable the output window output, or something else BTW looking back my previous post Log files are useful for crashes (deep debugging -> plugin's developpers) Edited by user 02 October 2013 15:26:55(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
UPDATED
- Fixed regional settings issues with Font sizes (comma decimal separator related*)
* Martin's activebook svn file updated |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,035 Was thanked: 1167 time(s) in 746 post(s)
|
Originally Posted by: w3b5urf3r_reloaded Martin's activebook svn file updated Great, thanks. I also updated the barchart example. |
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
UPDATED- small fixes - added styles (optional 4th argument) Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
UPDATED
- SMath Studio 0.96.5146 required
best regards,
Davide |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 03/02/2014(UTC), on 03/02/2014(UTC)
|
|
Rank: Member Groups: Registered
Joined: 21/11/2012(UTC) Posts: 13
|
Hello ! Where can I download the Formatting Label for 4909 versión? with new version I can´t open old snippets
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,710 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: kaaden Hello !
Where can I download the Formatting Label for 4909 versión You can use the portable version provided by mkraska ( here) directly or copying the plugin from that distribution to your %APPDATA% folder Edited by user 05 February 2014 11:55:11(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Member Groups: Registered
Joined: 21/11/2012(UTC) Posts: 13
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.