Conditionally Formatted Labels vs Insert Writer Region

Conditionally Formatted Labels vs Insert Writer Region - How to insert math symbols: Summation, Integral, Radical Sign, etc - Messages

#1 Posted: 11/11/2021 2:27:23 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

1 - Reference Book Correction:
Help > Reference Book > Plug-Ins > Conditionally Formatted Labels
Reads: Menu > Insert > Formatted Labels
Should Read: Menu > Insert > Controls > Formatted Labels... right?

2 - I have SMath Studio Handbook 0.99.6671, is that the latest?
Isn't there another "Handbook" often recommended? If so what is that?

3 - I can't enter the square brackets at the beginning and end of the CFL defining... like...
[" OK " "white" "red"]
The CFL widget only lets me enter parentheses, not square brackets.
Is there a trick?

4: How can you enter math symbols like the summation or integral symbols or radical symbols?
a. In CFL?
b. In Writer Region?

5 - How to add a clickable button to change the color of a Writer Region or a CFL?
(someone shared Background.sm with me that has this example)

6 - To include a picture in the post do I upload it to the forum post or link to it on a shared drive?

Sorry for all the questions but this will be helpful to me.

Thanks guys!
#2 Posted: 11/11/2021 2:53:13 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

1 - Reference Book Correction: ... right?

Right.

Wrote

2 - ...is that the latest?

It is latest.

Wrote

Is there a trick?

Use matrix, square brackets are matrix.

Wrote

4 - How can you enter math symbols?
a. In CFL?
b. In Writer Region?

Please detail your question.
Where do you want to enter symbols?

Wrote

5 - How to add a clickable button?

There is Radio Buttons which can be used.

Wrote

6 - To include a picture in the post?

Use attach symbol while entering posts.
Choose your picture file or suitable file.
Click to upload. It will be added to your post.

2021-11-11_20-50.png

Check the example file for your questions.

Regards

CFL with radiobuttons.sm (4 KiB) downloaded 49 time(s).

2021-11-11_20-53.png
#3 Posted: 11/11/2021 3:26:02 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

5 - How to add a clickable button to change the color of a Writer Region or a CFL?
(someone shared Background.sm with me that has this example)


1. Click Background to open the your pre-selected background(ssss...)
2. Click your selection
If your selection is active, it will background any Smath region.
Search "Bullets" in Samples from me, many memo code background.

#4 Posted: 11/11/2021 4:40:02 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

1. Click Background to open the your pre-selected background(ssss...)
2. Click your selection
If your selection is active, it will background any Smath region.
Search "Bullets" in Samples from me, many memo code background.


Not related with neither topic nor 5th question.

I don't know a way to change color of a Writer region with a button.
You can use CFL for this scenario. CFL's purpose is this actually.
Change its content, foreground and background colors with variables.
And you can use Radio Buttons to alter a variable.
And use that variable value in CFL's if() or cases().
#5 Posted: 11/11/2021 5:07:13 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

OK, Great! I understood most of the answers... I think :-)

I still can not find out how to create a square area to make it a clickable button.
Do I need the "Control Region" Plug-in to make a clickable button or what?

Jean, you said
Quote

Search "Bullets" in Samples from me, many memo code background.


....Where are "samples from me"?

Overlord,

From your answer I was able to create this... (and thanks to Jean for encouraging me to explore CFL)

CFL_Tutorial800px.jpg
CF_Label_Tutorial.sm (4 KiB) downloaded 46 time(s).

You guys let me know if I got it right.

Also, I'm going to read your answers once again to see if I missed anything.

Finally, how do I delete a file I uploaded? The first picture I uploaded was too big so no need for it to waste disk space.

Thanks !
#6 Posted: 11/11/2021 5:31:06 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

I still can not find out how to create a square area to make it a clickable button.
Do I need the "Control Region" Plug-in to make a clickable button or what?

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
There is no option/support/plugin/etc for a clickable button in SMath.
There are checkboxes, radio buttons for clickable situations.
What you want is a Button as in Excel visual basic macros.

UaaEo.jpg

We don't have that in SMath, yet.
And you can't use CFL to make it behave as a button.
Its job is to create textboxes/labels which change with conditions.

Wrote

You guys let me know if I got it right.

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
You got it right and made your first CFL.
But because it is not depended to an if() or cases(), now it is a static label.
Which is fine, but you can achieve that with a text region too.

2021-11-11_23-47.png

Wrote

Finally, how do I delete a file I uploaded?

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
Click on "My profile" at top-right of SMath forum.
There is Attachments section on the left list.
You can delete you desired attaches from there.
1 users liked this post
oscar mauricio 11/12/2021 9:17:00 AM
#7 Posted: 11/11/2021 6:18:10 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

Thanks Overlord.
Insert > Checkbox was what I was looking for.
The name "checkbox" threw me off.

Here is what I was trying to replicate as a learning experience.
Background.jpg
Background.sm (5 KiB) downloaded 42 time(s).

I'll take a shot at it now that I have discovered the Checkbox.

I also want to try and replicate the file you shared... just so I am sure how to do it.

Thanks for the help !

#8 Posted: 11/14/2021 9:52:07 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

In overlord's post near the beginning of this thread he provided a sample...
CFL_with_radio_buttons.sm

I was trying to replicate it from scratch to see if I could do it...

- I created the 3 radio buttons...
- I created an "expression" with 3 placeholders vertically
- Then made a 1x2 matrix for each of those 3 placeholders
- Then made a 1x3 matrix for the first element in the 1x3 matrix
But it doesn't look the same as his... mine looks like this...

CFL and Radio Buttons.png

Question 1: How were the 3 lines in the CFL Created?
Question 2: How was the "if" statement created without an "else" ?

Also, when I downloaded and launched his example it told me he was using a newer SMath version
My SMath version is 0.99 (build 7822) Date 6/1/21. on Windows 10 Pro

Question 3: If there is a newer version/build would I install it on top of my existing version or first uninstall the current version of SMath?

Thanks for the help folks !



#9 Posted: 11/15/2021 12:08:07 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Question 1: How were the 3 lines in the CFL Created?

with cases() function.
Wrote

Question 2: How was the "if" statement created without an "else" ?

With cases() function.
It is useful for multiple if situations.
Wrote

Question 3: If there is a newer version/build would I install it on top of my existing version or first uninstall the current version of SMath?

No need for uninstall.
It will install on top of your SMath.
You settings and plugins shall be preserved.
You will need to uncheck beta exclude.

2021-11-15_06-02_1.png
#10 Posted: 11/15/2021 6:45:04 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

a - Can I install the beta to run separately without installing of the latest stable version?
b - How stable is the beta version?
c - Is SMath a "stand alone" program or does it install using the Window registry, etc?
Thanks.

#11 Posted: 11/15/2021 7:16:49 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

a - Can I install the beta to run separately without installing of the latest stable version?
b - How stable is the beta version?
c - Is SMath a "stand alone" program or does it install using the Window registry, etc?
Thanks.


a - You don't need to install beta. You can set smath to act as portable.
All extensions, settings, etc will be kept in that directory.
Just download SMathStudioDesktop.0_99_7921.Mono.tar.gz or any other build.
Extract it to a directory. Create an empty file "portable.version"
That smath will be portable sitting along with your installation.

portable.png

b - Beta versions are quite stable.
In fact everybody uses them, excepts some oddballs.

c - It uses Roaming directory under %APPDATA%.
As far as I know keeps settings, plugins visa versa under Roaming/Smath directory.
Sure it shall use registry for file extensions, uninstall information, etc.
If you make it portable as described above, it will keep all its data under that directory.

Regards

#12 Posted: 11/15/2021 9:29:14 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

OK, I downloaded MathStudioDesktop.0_99_7921.Mono.tar.gz and used 7zip to get it all out into a folder a advised.
- I then created a empty file portable.version in the same directory
- I then double clicked SmathStudio_Desktop.exe to launch the program but... suprise...
... SMath Solver opened up. I'm unsure what Solver is unless it is the engine SMath uses to solve equations...

Question 1: Is "Solver" the beta MathStudioDesktop.0_99_7921 ? Is it the latest SMath version?

Question 2: I was advised..."You will need to uncheck beta exclude" ...
... where is that checkbox located? Did I miss along the way or what?

Question 3: Re cases function... used in overloards cfl_with_radiobuttons.sm early in this thread...
- I created a CFL and for the placeholder...
- I created a cases function but it only created one "if" case followed by "otherwise on the next line...

How to create more if cases? (I banged on it and made numerous attempts and scanned the custom functions thread... but no joy.)

Thanks
#13 Posted: 11/15/2021 11:08:04 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

How to create more if cases? (I banged on it and made numerous attempts and scanned the custom functions thread... but no joy.)


1. Get the basic if/otherwise [Cases]
2. Click on the the RHS place holder
3. Enter twice

#14 Posted: 11/16/2021 1:14:48 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Question 1: Is it the latest SMath version?

It is latest.
Now we have Solver and Writer.
Solver is traditional smath interface.
Writer has more like Ms Word style.

Wrote

Question 2: where is that checkbox located?

Click local storage in plugin window, there you will see it.

Wrote

Question 3: How to create more if cases?

Use arguments separator. "," or ";" which of you had set.
#15 Posted: 11/16/2021 12:12:11 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

Sorry, not working

cases60.jpg

Question 1: I must be misinterpreting your instructions... can you advise?

Question 2: I wonder if my Custom Functions plugin is an old version?
To update a plugin must I delete the plugin and re-download/install it?

Thanks for sticking it out with me.


#16 Posted: 11/16/2021 1:56:39 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Question 1: I must be misinterpreting your instructions... can you advise?


On that place holder top right ... double click coma keyboard
Try it ... Cheers ... Jean.
#17 Posted: 11/16/2021 2:46:09 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Question 1: I must be misinterpreting your instructions... can you advise?

Hit comma again, a new ifline shall be added to cases.
My argument separator is semicolon, so don't be confused.
According to your screenshot, yours is comma.

cases()

Wrote

Question 2: must I delete the plugin and re-download/install it?

Not need to delete.
Plugins shall be automatic updated.

#18 Posted: 11/16/2021 7:03:43 PM
Fran Lee

Fran Lee

1 likes in 44 posts.

Group: User

Da Da!
(Credit to overlord and Jean Giraud for guiding me along the way.)

CFL_with_RadioButtons_Tutorial.jpg

CFL_RadioButtons_Step_by_Step.sm (13 KiB) downloaded 42 time(s).

Hopefully this step-by-step will help other newbies.

PS Let me know if I made an error... but it looks to me like it's working.
#19 Posted: 11/16/2021 9:15:17 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

The code Samples Formatted Label Symbol(s) is more productive.
Unfortunately, a recent bug does not access Settings for sizing.
#20 Posted: 11/16/2021 9:45:13 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

PS Let me know if I made an error...


This is not an error but it needs a clarification.
Setting column in radiobutton shall tell region which column shall be used for source.
In screenshot below you can see there are two columns of data.
If you set nothing or a nonexisting column, it will take first column.
If you set an existing column, it will use that particular column of the matrix.

Regards

2021-11-17_03-42.png
  • New Posts New Posts
  • No New Posts No New Posts