Help with Check Box and If statement

Help with Check Box and If statement - My attempt to replicate mkrasa's Background.sm Example - 消息

#1 已发布: 2021/11/14 15:19:05
Fran Lee

Fran Lee

1个赞,共44个帖子。

组: User

I've attempted to create mkrata's Background.sm example - shown here...

In my attempt below... clicking the Check Box (aka Button) does change the color of the Plot region...
But not the CFL region as it does in mkrasa's example.

I thought it may be an alignment issue but I can't get it to work.


Background Example.png

Background Example.sm (5.58 KiB)已下载 1277 次。

Thanks for any help.

#2 已发布: 2021/11/14 15:53:25
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

I thought it may be an alignment issue but I can't get it to work.


I see in your example c is colored as blue.
That means you mistakenly input c as unit.
Reassign it to c variable.

Regards

2021-11-14_21-52.png

2021-11-14_21-51.png
#3 已发布: 2021/11/14 19:12:47
Fran Lee

Fran Lee

1个赞,共44个帖子。

组: User

OK, that did it...

I had to look very closely at the choices when I typed in the letter "c" in order to see that the first choice was different from the others which had a blue thing next to them... which, I guess, makes them a "unit" and not a variable.

Also, I've been unable to find documentation defining the 5 fields in the plot...

I've guessed...
[x_value y_value period_meaning_circle variable_name]

Alsu deducted the 3 fields for the CFL as...
["text_to_appear" "text_color" variable_name]

Where is the documentation defining the fields?

Thanks.
#4 已发布: 2021/11/15 06:36:59
Davide Carpi

Davide Carpi

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

组: Moderator

Wrote

Where is the documentation defining the fields?



In the "Extensions" section of the forum there is a thread for almost any plugin. Usually the documentation is attached to the first post.

For CFLabel it is here (CFLabelRegion_docs.7z)

P.S. for plugins of "Controls" group recently I've added a ribbon of links to each one at the end of the first post, so you can easily jump from one to another.



Control Regions: CheckBoxList | ComboBoxList | ConditionallyFormattedLabel | NumericUpDown | PathPicker | RadioButtonList | Slider
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
sergio 2021/11/15 07:18:00
  • 有新帖
  • 无新帖