Changing properties

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
Joerg Hamacher
Posts: 23
Joined: 09 Mar 2016, 00:29

Changing properties

Post by Joerg Hamacher » 09 Aug 2019, 23:45

can anybody help me and tell me how the java script should look like for this request - I do not get it :-(

If the mouse hovers over a push the background color shall be changed like this (I suppose property "onFocus" is the correct one?):
if application theme is "Orange" the "onFocus" property of a push button shall be set to background-color = "Grey".
Otherwise background-color should be "Blue".

And it would be nice if the cursor changes to "Hand" if the button gets in focus - can this be done in any way?

Many thaks in advance - have a nice time,

User avatar
Posts: 100
Joined: 23 May 2014, 11:37
Location: Sydney

Re: Changing properties

Post by jeanmichel » 16 Aug 2019, 12:24

Hi Joerg,

The events you are looking for are "mouseenter" and "mouseleave" respectively.
Unfortunately they are not implemented for the push button extension.

In order to request an enhancement to the product please contact LANSA Support.

Jean-Michel Rapin

Address: 122 Arthur Street, North Sydney, NSW 2060, Australia
Tel: +61 289 070 262 | |

Joerg Hamacher
Posts: 23
Joined: 09 Mar 2016, 00:29

Re: Changing properties

Post by Joerg Hamacher » 20 Aug 2019, 18:32

Thank you, Jean-Michel

I will do so :-)

Cheers, Joerg

tim mcentee
Posts: 17
Joined: 26 Jul 2017, 13:20

Re: Changing properties

Post by tim mcentee » 27 Aug 2019, 10:37

Hi Joerg

Here is a hack you could use in the meantime. In your button extension find the enabled option, set it to dynamic mode and edit the script. As long as the last line of the script is returnValue=true; then your script should keep the button active.

Change the colors to suit your needs. You can use a # color code or an rgb function.

function() {
$( this ).css({backgroundColor: "red"} );
}, function() {
$( this ).css({backgroundColor: "blue"} );



Post Reply