设置当前记录的颜色 [英] Set Colour for Current Record
本文介绍了设置当前记录的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨再次!
我有一个绑定到表格的表格。
当控件有焦点时,条件格式允许我设置一个颜色为文字或纸。我使用它。
问题是:这里有类似的东西但整个细节部分?我使用行来分隔记录的详细信息区域。但是很难用户找到记录。我可以为具有焦点的整个记录(详细信息部分)设置颜色吗?
谢谢!
解决方案
以下代码在执行时,会将表单详细信息部分的Backcolor设置为16,000,000种可能的颜色之一:
展开 | 选择 | 换行 | 行号
感谢您回复ADezii,但我不明白。此代码如何仅突出显示当前记录的区域?我尝试在OnCurrent事件下使用您的代码。它按预期工作:它改变所有记录的颜色。我错过了什么?
没有Mihail。只是你的问题不是很容易理解。我现在已经改变了标题,以便它更容易。
事实上,我不认为有可能因为为什么未绑定表单控件中的值不会持续
Hi again !
I have a form bound to a table.
When a control has focus the Conditional Formatting allow me to set a color for text or paper. I use that.
The question is: Is here something like that but for entire Detail section ? I use lines to separate Detail area for records. But is hard to user to locate the record. Can I set a color for the entire record (Detail section) which has the focus ?
Thank you !解决方案The following Code, when executed, will set the Backcolor of your Form''s Detail Section to 1 of 16,000,000+ possible Colors:
Expand|Select|Wrap|Line Numbers
Thank you for reply ADezii, but I don''t understand. How this code highlight ONLY the area for current record ? I try to use your code under OnCurrent event. It work as I expect: it change the color for ALL records. Is something I missed ?
No Mihail. It was simply that your question wasn''t very easy to understand. I''ve changed the title now so that it should be easier.
In fact, I don''t think it is possible to do that for the reasons explained in Why Values in Unbound Form Controls do not Persist.
这篇关于设置当前记录的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆