Conditionally Formatted Labels

Conditionally Formatted Labels - Add Conditionally Formatted Labels in SMath Studio worksheets - 消息

#41 已发布: 2014/9/29 13:40:32
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Thank you both, I've made a patch that seems to work. (SS-1224 opened)

PLUGIN UPDATED

Important: please report here if anyone notice a "PrePainter" error message on this region.


Best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#42 已发布: 2015/3/30 05:28:26
brotjob

brotjob

7个赞,共71个帖子。

组: User

I would like to use cases because if you nest i.e. 10 if loops the code looks ugly. But cases seems not to work with conditionally formatted labels. Is there a nice looking workaround?
cond-formatted-label-cases.png
#43 已发布: 2015/3/30 10:42:47
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

I'm from smartphone so I can't guarantee, but an eval(cases(...)) should works
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#44 已发布: 2015/3/30 11:13:59
brotjob

brotjob

7个赞,共71个帖子。

组: User

works like a charm!
cond-formatted-label-cases-solved.png
#45 已发布: 2015/6/2 14:38:23
bAiLeY

bAiLeY

0个赞,共3个帖子。

组: User

I am trying to create a label that displays " full psi " for a ratio greater than 2, but if the value drops below 2, it needs to display the actual value needed to maintain the ratio. I have it working except that it is stuck in symbolic format and displays an obscenely large fraction instead of the decimal value I need.

I have checked all of my formats and everything is in decimal and optimized to numeric. I have tried converting to a string with num2str and rounding the fraction to a decimal value.

Please help!


Capture3.PNG
#46 已发布: 2015/6/2 15:43:01
bAiLeY

bAiLeY

0个赞,共3个帖子。

组: User

Thank you! This worked exactly like I needed to. And I agree, quite buggy.
#47 已发布: 2015/6/2 19:14:01
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

I'll check it. BTW it is possible to use an eval() on the first argument.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
ioan92 2015/6/3 03:33:00
#48 已发布: 2018/5/17 16:53:41
Engr

Engr

8个赞,共24个帖子。

组: User

Would it be possible to add a button style to the Conditionally Formatted Label that had no black line border. The button style could be called "NoBorder" or something similar. I use the conditionally formatted label for displaying design checks as shown below
DesignCheck.PNG
and I think it would be nice to not have the border around the equality sign (>).

Another possible use would be for repeating text in a header on multiple pages and not have borders around the text or quotes around the text if it is a string variable as shown below.
HeaderBlock.PNG
And if the background color could be set to transparent that would be crowning achievement.

Thanks for your consideration.
#49 已发布: 2018/5/17 18:23:50
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

And if the background color could be set to transparent that would be crowning achievement.


For the remaining of the question, work sheet would help.

Transparent.PNG

Image Formated LABEL [Oxyhemoglobin].sm (17.32 KiB)已下载 1509 次。
1位用户喜欢此帖子
Davide Carpi 2018/5/18 04:54:00
#50 已发布: 2018/5/18 02:56:53
Denis Nikitin

Denis Nikitin

2个赞,共12个帖子。

组: User

Engr, try using Table Region.
Use setings like on the screenshots.
未找到文件。 未找到文件。
未找到文件。 未找到文件。
1位用户喜欢此帖子
Davide Carpi 2018/5/18 04:54:00
#51 已发布: 2018/5/18 04:58:14
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

Would it be possible to add a button style to the Conditionally Formatted Label that had no black line border [...] And if the background color could be set to transparent


I think they are both feasible options

Wrote

Another possible use would be for repeating text in a header on multiple pages and not have borders


If the content is not related with calculation an option is even to use metadata content in fields objects of writer regions
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#52 已发布: 2018/6/7 07:40:38
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

PLUGIN UPDATED

  • context menu: added border on/off option;
  • "transparent" is now a valid color name;
  • alpha channel of colors now blends with underlying objects;
  • text wrap issue on printing mitigated;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
6位用户喜欢此帖子
Engr 2018/6/8 12:00:00, Denis Nikitin 2018/6/8 09:03:00, frapuano 2018/6/7 09:25:00, Arie 2018/6/7 10:29:00, sergio 2018/6/7 10:44:00, Oscar Campo 2018/6/7 11:56:00
#53 已发布: 2018/6/8 12:05:21
Engr

Engr

8个赞,共24个帖子。

组: User

Davide - thank you for revising the plugin per my suggestions. The revised plugin works for me very well. Per your postscript note I made a donation to Smath Studio for your efforts.
#54 已发布: 2019/5/6 04:21:34
scudelari

scudelari

0个赞,共6个帖子。

组: User

Hello,

is this plugin working with version 0.99 of SMath? I can't find it to download from the application's plugin manager.

Thanks,
#55 已发布: 2019/5/6 05:32:50
sergio

sergio

127个赞,共342个帖子。

组: User

in my installation (win7 PRO) it works correctly
Cond01.png

sergio
#56 已发布: 2019/5/6 09:39:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

From SS 6179

ON_OFF.PNG
#57 已发布: 2019/5/6 11:34:54
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Here is the creator, adapted/augmented from Martin.

2D Util Bar Fourier_Martin.sm (75.63 KiB)已下载 1784 次。
#58 已发布: 2019/5/7 10:37:34
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... finally: does it work one way or another ?

Pluto.PNG
1位用户喜欢此帖子
sergio 2019/5/7 14:37:00
#59 已发布: 2019/11/26 03:41:57
veb

veb

1个赞,共38个帖子。

组: User

Hello!
Sometimes you want the calculation to show by which formula the calculations were performed. Use for this combo boxlist is not beautiful. Formatted label would be more accurate. But Formatted Label does not display a formalized formula. Is it possible to add such a possibility to the formatted label? And in addition, the ability to remove the frame around the edges of the formatted label?
Thanks in advance!
2019-11-26_09-41-56.png

#60 已发布: 2019/11/26 04:30:29
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

I think is not a problem 😉
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • 有新帖
  • 无新帖