Help with Check Box and If statement

Help with Check Box and If statement - My attempt to replicate mkrasa's Background.sm Example - Сообщения

#1 Опубликовано: 14.11.2021 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 КиБ) скачан 27 раз(а).

Thanks for any help.

#2 Опубликовано: 14.11.2021 15:53:25
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 Опубликовано: 14.11.2021 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 Опубликовано: 15.11.2021 06:36:59
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 15.11.2021 07:18:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений