Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Stringgrid Canvas Distorts Mouse Selection

Recommended Posts

In a C++Builder project I am using a StringGrid component. When the user selects multiple cells using a mouse, logically the StringGrid Object displays the blue selection area.Then, I have painted every all rows so by using the following code:StringGrid1->Canvas->FillRect etc. etc.But this caused a problem. Now the selection area (box) is not visible. And also the content of the cells are not visible.Now I understand that the content is not visible and the canvas object has a function to fill text. So that is not a problem, but when the user selects multiple cells (using the mouse), the selection area remains behind the colored Canvas.What can I do about this?

Share this post


Link to post
Share on other sites

@brent: welcome to the C++ forums. That was random, try that again in the Games subforums -specifically half-life. Don't pull one of those again, they're really annoying.@kvarnerexpress: Wow, that's a horrible instance of Win API. I'd say try creating a null variable and try manipulating that in your selection code (which you might want to create instead of allowing Windows to handle it) to focus windows on the cells.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.