What I'm trying to do is use bitmaps as buttons in a visualization for navigation. When the user presses a button the bitmap should change to a different image that makes it look like the button is being pressed. Then after the button is selected and the application has navigated to a different screen, the bitmap should be a different image to show the current page we're on.
I'm used to creating UI's where there is some sort of event driven feature to use in order to do what I'm trying. CoDeSys seems to have this to configure, but I cannot seem to figure it out despite the documentation.
I've read the help on the subject, where it suggests using the CASE statement, but do not know what the variable is referring to. I noticed the Programmability tab and tried a few different things in there, but no luck.
Are there any tutorials showing how to setup a bitmap to use different bitmaps? Has anyone done something similar?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I figured out a way to do it (whether or not it is the best, I doubt).
. I create a for each bitmap.
. I create a for each button.
. I configure the to be the var in step 2.
. I configure the to ""
This implementation does not handle the button press (equivalent of mouse down).
I created this topic, because I had been receiving an error:
As it turns out, it appears to be a target specific error. I tested this method out on a Target none and had no problems, as well as an ifm CR0032. When I switched to a ccPilot target, that is when the error pops up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
easier is to have two buttons on top of each other and make them invisible.
it just changes the color and there is no need to load the bitmap each time.
you also can change the color etc.
this will work in java so also on html visualisations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What I'm trying to do is use bitmaps as buttons in a visualization for navigation. When the user presses a button the bitmap should change to a different image that makes it look like the button is being pressed. Then after the button is selected and the application has navigated to a different screen, the bitmap should be a different image to show the current page we're on.
I'm used to creating UI's where there is some sort of event driven feature to use in order to do what I'm trying. CoDeSys seems to have this to configure, but I cannot seem to figure it out despite the documentation.
I've read the help on the subject, where it suggests using the CASE statement, but do not know what the variable is referring to. I noticed the Programmability tab and tried a few different things in there, but no luck.
Are there any tutorials showing how to setup a bitmap to use different bitmaps? Has anyone done something similar?
I figured out a way to do it (whether or not it is the best, I doubt).
. I create a for each bitmap.
. I create a for each button.
. I configure the to be the var in step 2.
. I configure the to ""
This implementation does not handle the button press (equivalent of mouse down).
I created this topic, because I had been receiving an error:
As it turns out, it appears to be a target specific error. I tested this method out on a Target none and had no problems, as well as an ifm CR0032. When I switched to a ccPilot target, that is when the error pops up.
easier is to have two buttons on top of each other and make them invisible.
it just changes the color and there is no need to load the bitmap each time.
you also can change the color etc.
this will work in java so also on html visualisations.