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):
I have tried defining a Byte array titled Colours myself based on the following:
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:
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
Problem with the 'menu-system_02_10_24’ example from the Wiki
-
Arix
- Posts: 21
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 9:53 pm
- Has thanked: 5 times
- Been thanked: 11 times
-
medelec35
- Valued Contributor
- Posts: 2288
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 713 times
- Been thanked: 775 times
Re: Problem with the 'menu-system_02_10_24’ example from the Wiki
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 When you compare with FC11 you will see all the changes.
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 When you compare with FC11 you will see all the changes.
Martin
-
BenR
- Matrix Staff
- Posts: 2208
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 606 times
- Been thanked: 803 times
Re: Problem with the 'menu-system_02_10_24’ example from the Wiki
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Problem with the 'menu-system_02_10_24’ example from the Wiki
Thank you Martin and Ben,
I had not thought about the menu system example being written in FC10, but of course that would make sense as to why the example does not work with FC11.
I will make a comparison between the two versions. I am travelling at present and do not have FC10 installed on my laptop so it will have to wait until return later this month - (On my main PC I have both FC10 and FC11 installed).
In the meantime I have followed Ben's video examples - Thanks for taking the time to make these videos Ben, they really helpful.
Just as a suggestion, it would be nice if matrix could create some prepackaged wigets. I am thinking like those offerred by 4D Systems for their displays/IDE, such as switches, gauges etc.
Kind regards
Martin
I had not thought about the menu system example being written in FC10, but of course that would make sense as to why the example does not work with FC11.
I will make a comparison between the two versions. I am travelling at present and do not have FC10 installed on my laptop so it will have to wait until return later this month - (On my main PC I have both FC10 and FC11 installed).
In the meantime I have followed Ben's video examples - Thanks for taking the time to make these videos Ben, they really helpful.
Just as a suggestion, it would be nice if matrix could create some prepackaged wigets. I am thinking like those offerred by 4D Systems for their displays/IDE, such as switches, gauges etc.
Kind regards
Martin