is there anyway to fold the long line of code inside Calculation icon

For general Flowcode discussion that does not belong in the other sections.
Post Reply
S_VE
Posts: 22
http://meble-kuchenne.info.pl
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 28 times
Been thanked: 1 time

Flowcode v9 is there anyway to fold the long line of code inside Calculation icon

Post by S_VE »

Hello everyone

is there anyway to fold a long line of code inside a Calculation icon?
(this is to reduce the width of the code on the screen)


Flowcode9 Help Needed 02.jpg
Flowcode9 Help Needed 02.jpg (61.97 KiB) Viewed 1396 times

Maybe Something like this!

Flowcode9 can we fold the line.jpg
Flowcode9 can we fold the line.jpg (100.3 KiB) Viewed 1396 times
S_V

Steve-Matrix
Matrix Staff
Posts: 1355
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 182 times
Been thanked: 317 times

Re: is there anyway to fold the long line of code inside Calculation icon

Post by Steve-Matrix »

There is a setting in the Global Options that can control this to some extent. This is "limit annotation size for new icons" under the "Flowchart" tab.

However, this only works for newly created flowchart icons.

This setting controls a hidden property of each icon called "textarea". You could change this manually for any icons by directly editing the project fcfx file in a text editor. Of course, if you do this then be careful - make a backup of the file and change only the specific entry.

The attached project shows what I mean. It has 3 icons. The first was added when the annotation size limit is off and the second was added when the limit is on. The third is one where I have manually added the "textarea" for the icon within the project file.
Attachments
long var name limits.fcfx
(7.92 KiB) Downloaded 75 times

S_VE
Posts: 22
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 28 times
Been thanked: 1 time

Re: is there anyway to fold the long line of code inside Calculation icon

Post by S_VE »

Thank you Steve.

great!

I will try this today.
S_V

stefan.erni
Valued Contributor
Posts: 849
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 169 times
Been thanked: 197 times

Re: is there anyway to fold the long line of code inside Calculation icon

Post by stefan.erni »

Hi S_VE

I also had to use a long formula. I then made an array P[] with float and added it up like this:
2024-08-27_13-15-36.PNG
2024-08-27_13-15-36.PNG (35.69 KiB) Viewed 1355 times

S_VE
Posts: 22
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 28 times
Been thanked: 1 time

Re: is there anyway to fold the long line of code inside Calculation icon

Post by S_VE »

Hi Stefan

Thank You
S_V

Post Reply