Print Page | Close Window

Focus on a single cell

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=3931
Printed Date: 29 April 2024 at 12:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Focus on a single cell
Posted By: Therese
Subject: Focus on a single cell
Date Posted: 03 April 2006 at 10:05am

How do I draw the focus rectangle for a single cell in a Report Control instead of a whole row?

I have created my own PaintManager and changed the highlighted colors so my control always has white background and black text. This works fine, but when I tab between the cells I can't see which cell has focus. I would like draw the focus rectangle so it matches the focused cell.


Thanks in advance,
Therese



Replies:
Posted By: sserge
Date Posted: 03 April 2006 at 1:22pm
Hi Therese,

You'll have to implement your own CXTPCalendarPaintManager::CDayViewCellPart::OnDraw method.
By default it fills the highlighted cell with solid Highlight color. You can change it there to highlight only the border of the cell.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net