Help with Check Box and If statement

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

#1 Posted: 11/14/2021 3:19:05 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: 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 KiB) downloaded 25 time(s).

Thanks for any help.

#2 Posted: 11/14/2021 3:53:25 PM
overlord

overlord

552 likes in 1332 posts.

Group: 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 Posted: 11/14/2021 7:12:47 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: 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 Posted: 11/15/2021 6:36:59 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: 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 users liked this post
sergio 11/15/2021 7:18:00 AM
  • New Posts New Posts
  • No New Posts No New Posts