Change cell style when mouse enters/leaves?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Change cell style when mouse enters/leaves?

Post by atostaine »

Can I change the style of one cell when they mouseover in a PRIM_ LIST? I've played with columnmouseenter but I haven't been succesful getting the row the user is in.

Thanks
Art Tostaine
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Change cell style when mouse enters/leaves?

Post by Dino »

You can use the theme for the column:
mouseover1.png
mouseover1.png (29.09 KiB) Viewed 3726 times

Code: Select all

Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Height(504) Width(1032)

Define_Com Class(#PRIM_LIST) Name(#List) Columnheaderheight(48) Columnlines(False) Displayposition(1) Height(360) Left(74) Parent(#COM_OWNER) Rowheight(48) Tabposition(1) Top(74) Width(500)
Define_Com Class(#PRIM_LIST.String) Name(#ListColumn1) Columnwidth(117) Displayposition(1) Parent(#List) Sortonclick(True) Source(#STD_CODE)
Define_Com Class(#PRIM_LIST.String) Name(#ListColumn2) Columnwidth(246) Displayposition(2) Parent(#List) Sortonclick(True) Source(#STD_DESC)

Evtroutine Handling(#Com_owner.Initialize)
#STD_CODE #STD_DESC := 'XXX'
Inz_List Num_Entrys(10)
Endroutine

Evtroutine Handling(#List.ItemMouseHover)
#ListColumn1.CurrentItem.ThemeDrawStyle := 'DarkAccent'
Endroutine
End_Com
mouseover2.png
mouseover2.png (16.25 KiB) Viewed 3726 times
Post Reply