how to change Menus text color ?

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
Franck.A
Posts: 19
Joined: 06 Nov 2020, 19:33

how to change Menus text color ?

Post by Franck.A »

Hello all,

I am Franck, developper on IBMi for a french transport company, and new to Lansa Axes.
This is my first post so : "bonjour tout le monde!"

I am currently learning how to use the "AutoGui Menu Item" and it works like a charm, except for the color of the menu texts.

Using the "Property Edit" of the "AutoGUI Menu item" I can change the background color with the "background color" property(this works)
But, when I try to change the "color" property , it has no effect on the text color of the menu text.

At this time I would like to change the Menus text color from "blue" to "orange" and I do not see where I can do this.

Any help welcome, many thanks

Franck
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: how to change Menus text color ?

Post by Fairdinkum »

Hi Franck,

I would highly recommend you to use Application's style instead. Try add the following.
name...... Anything you want. e.g. menuStyle
styleFor... HTML Element
htmlTag... #terminalContent .ax-terminal-5250menuitem span
style....... {color:red;}

Then you will see...
img_20201117_144923_001.png
img_20201117_144923_001.png (24.7 KiB) Viewed 5831 times
If you want to add some for a "hover" effect, try this.
name...... Anything you want. e.g. menuStyleHover
styleFor... HTML Element
htmlTag... #terminalContent .ax-terminal-5250menuitem span:hover
style....... {color:yellow;}

Then you will see...
img_20201117_145135_001.png
img_20201117_145135_001.png (26.36 KiB) Viewed 5831 times
HTH!

Best Regards,
Hide (from Fairdinkum, the aXes distributer in Japan)
Franck.A
Posts: 19
Joined: 06 Nov 2020, 19:33

Re: how to change Menus text color ?

Post by Franck.A »

Hello Hide,

I tried and it works like a charm ! Thank you very much for your help.

the information I missed was: "htmlTag... #terminalContent .ax-terminal-5250menuitem span" , to identiy menu strings on screen.

By the way, your tips helped me more than I expected: I could used the same method to define the colors of all 5250 text, by replacing the htmltag with the corresponding values; I could find this value in the "theme-default.css" file

example (for text color x20 Green):
name...... X20 Green
styleFor... HTML Element
htmlTag... #terminalContent .x20, #terminalContent .x20 .ax-terminal-inputField
style....... {color:red;}

This way we can define all text colors in a general way

Many thanks for your help
Franck
Post Reply