Problem with the 'menu-system_02_10_24’ example from the Wiki

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Arix
Posts: 20
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 9:53 pm
Has thanked: 5 times
Been thanked: 10 times

Flowcode v11 Problem with the 'menu-system_02_10_24’ example from the Wiki

Post by Arix »

Hi All,

Has anyone tried the ‘menu-system_02_10_24’ example from the Wiki?
I thought I would study it to learn how to use to GLCD display manager. However, there is an error in the initialise macro within the calculation box titled ‘Set up all the colours’. As shown in the image below (i.e. it does not contain colour information):
setupColours.JPG
setupColours.JPG (51.09 KiB) Viewed 122 times
I have tried defining a Byte array titled Colours myself based on the following:

Array.jpg
Array.jpg (19.01 KiB) Viewed 122 times
But I am missing something. When simulated there are multiple errors at icons that require the colours to be defined. The first example is shown below:
Errormessage.JPG
Errormessage.JPG (144.55 KiB) Viewed 122 times

When I attempt to define the Colours to use, I get error message ‘Parameter 7 is invalid Cannot convert to Type Byte[9]’.

I have no doubt the error is because I have not set up the Byte Array correctly, but having tried several unsuccessful ideas I am now stuck. If anyone has got this example to work, can they please give me some pointers?

Many thanks
Martin

medelec35
Valued Contributor
Posts: 2279
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 709 times
Been thanked: 773 times

Re: Problem with the 'menu-system_02_10_24’ example from the Wiki

Post by medelec35 »

hello.
What can happen is demos work as intended when created.
Then in the future the function macro could be modified which breaks the original demo.
I will see if I can spot what's going on.
Edit:
After investigating, it looks like the demo was originally created and still runs with FC10.
In FC11 the display manager has been greatly improved which means some projects created in FC10 using display manager will no longer work in FC11 without modifying.
This is the CreateWidget for Flowcode10
FC10 CreateWidget.png
FC10 CreateWidget.png (46.82 KiB) Viewed 83 times
When you compare with FC11 you will see all the changes.
Martin

BenR
Matrix Staff
Posts: 2192
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 599 times
Been thanked: 794 times

Re: Problem with the 'menu-system_02_10_24’ example from the Wiki

Post by BenR »

Hello

I'll see if I can make a v11 version of the example for you.

For now this forum post has a couple of videos which should help show how to use the v11 system.

viewtopic.php?t=3656

Post Reply