在 ListCtrl 中设置选择背景 [英] Setting selection background in ListCtrl

查看:26
本文介绍了在 ListCtrl 中设置选择背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 wxPython 2.8 中的选定项目设置自定义背景.我不知道该怎么做.我试过 SetItemBackground 没有运气.

I'm trying to set a custom background for selected items in wxPython 2.8. I cannot figure out how to do so. I've tried SetItemBackground with no luck.

推荐答案

wxListCtrlwxListBox 等中的选中项始终使用系统背景选择颜色,可以不会改变.

Selected items in wxListCtrl, wxListBox and so on always use the system background selection colour, it can't be changed.

这篇关于在 ListCtrl 中设置选择背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆