简体   繁体   English

浏览中选择中的颜色更改

[英]Color Change in Selection in a browse

How to change color in progress browse when a row is selected mouse click or keyboard arrow keys. 选择行时如何更改颜色进行浏览单击鼠标或键盘箭头键。 i already have the code for change color.. attached in row-display is the following: 我已经有更改颜色的代码..在行显示中附加以下内容:

IF /*CONDITION IS TRUE*/ THEN DO:
    DO viCounter = 1 TO viNumCols:
       ASSIGN vhCurColHdl      = WIDGET-HANDLE(ENTRY(viCounter,vcColHandles))
           vhCurColHdl:BGCOLOR = 0
           vhCurColHdl:fgcolor = 0.
    END.
END.

In versions prior to 11.5 (I think, may be 11.4 or 11.3) the selected line in the browse is coloured according to the theme you have selected. 在11.5(我认为可能是11.4或11.3)之前的版本中,浏览器中选定的行会根据您选择的主题进行着色。 You have no control over this programmatically. 您无法以编程方式对此进行控制。 You can change the theme I suppose. 您可以更改我想的主题。 In 11.5, as mentioned above, the colour is selected based on the background colour of the browse. 如上所述,在11.5中,根据浏览器的背景色选择颜色。 Again you have no direct control over the colour selected, although the decision making is pretty clever. 再次说明,尽管决策非常聪明,但是您无法直接控制所选的颜色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM