Color of function keys

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

Fre_Vdh
Posts: 30
Joined: 20 Oct 2022, 17:49

Re: Color of function keys

Post by Fre_Vdh »

I do have another style defined for x29, maybe that's an issue?
X29.png
X29.png (45.21 KiB) Viewed 56250 times
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Color of function keys

Post by Fairdinkum »

Hi,

Removing the existing "x29" definition might be worth a try.

Regards,
Hide
Fre_Vdh
Posts: 30
Joined: 20 Oct 2022, 17:49

Re: Color of function keys

Post by Fre_Vdh »

I removed the x29 definition, but still the same.
The background of div "text1b22" is not red either, so inherit will not work I guess.
Should there not be a rule for that div?
rood weg.png
rood weg.png (171.81 KiB) Viewed 47134 times
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Color of function keys

Post by Fairdinkum »

It seems "inheritance" setting is applied to the background-color. You might want to check if the container div has any background colors.

Regards,
Hide
Fre_Vdh
Posts: 30
Joined: 20 Oct 2022, 17:49

Re: Color of function keys

Post by Fre_Vdh »

I found something:
  • I removed all the customAutoGUIFkeyStyle stuff.
  • On the AutoGui ruile 'Function Keys' i went into the properties and in the eXtensions style I entered

    Code: Select all

    var f=FIELD.get5250Attribute("id");
    
    if (f === "X29"){
        var oStyle = {"background-color":"#d99694"}; 
    }
    else
    {
        oStyle = "";
    }
    ENV.returnValue = oStyle;
  • Now I have the buttons in color and if I add them to a Button Panel the colors are also there
Post Reply