Page 1 of 1

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

Posted: Mon May 04, 2026 1:00 pm
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 119 times
I have tried defining a Byte array titled Colours myself based on the following:

Array.jpg
Array.jpg (19.01 KiB) Viewed 119 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 119 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

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

Posted: Mon May 04, 2026 5:00 pm
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 80 times
When you compare with FC11 you will see all the changes.

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

Posted: Tue May 05, 2026 9:14 am
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