I was wondering if it is possible to introduce MouseOver events in B&R Automation Studio mappView, and how I might go about doing that? All I am looking to do is to create a simple button that will change colour when you hover over it, but I can’t work out how I would go about creating it.
@ruairidh
Hello and welcome to the B&R Community.
I think what you are looking for are Hover Buttons, you can read more about the concept of them here. mappView HoverButton
I am looking for something similar to this but not exactly. I am looking for a button that changes colour without any mouse click at all. Just simply when the cursor is not over it, it is one colour, and then when you hover your cursor over it it changes to another colour until you move your cursor away again, at which point it goes back to it’s original colour (exactly like what happens when you hover your cursor over the Reply button on this forum).
OK thanks for clarifying and yes I agree that would be a nice feature.
Since there is no event we can trigger within mappView I don’t believe that functionality is possible at the moment. Maybe other community members have ideas they can share. We will certainly take the request and share it with the team handling mappView.
I’m currently working on a implementation of new styling properties for some widgets:
hoverBorderColorExt
hoverBorderWidthExt
hoverBackColorExt
hoverTextColorExt
hoverBackGroundGradientExt
hoverImageColorExt
hoverShadowExt
And a classic property to enable usage of those styling properties.
At the moment I’ve done it only for widget “Button”, but in future I will extend it to some other.
If your interested I can give you more informations.
So far I have only been wanting to use it with a regular Button, but I suppose it would also be good if it could be used with a Navigation Button as well (or just any other type of button).
I will take a look about other buttons widget integration.
I will try to make some updates here but I think check sometimes the B&R github repository to have the available widgets.
I just add again a warning, this isn’t official and B&R will not make support about thoses custom widgets!