IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Stringgrid Canvas Distorts Mouse Selection


kvarnerexpress
no avatar
Super Member
*********
Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Post #1 post Apr 13 2005, 07:21 PM
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?
Go to the top of the page
+Quote Post
brent
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 26
Joined: 14-May 05
Member No.: 7,033



Post #2 post May 14 2005, 11:56 AM
I love messing round with the source code of half-life and make my own little mods to the source code is a lot of fun biggrin.gif
Go to the top of the page
+Quote Post
osknockout
no avatar
Super Member
*********
Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



Post #3 post May 14 2005, 02:47 PM
@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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   10 Florisjuh 6,181 23rd August 2004 - 04:03 PM
Last post by: Thunder
No New Posts   6 Trystim 2,895 18th October 2004 - 12:16 AM
Last post by: xc3ll
No New Posts   10 Adam Roach 1,874 5th June 2006 - 06:00 PM
Last post by: Bkag
No New Posts   0 BooZker 687 1st July 2006 - 03:33 PM
Last post by: BooZker
No new   73 Goosestaf 11,072 24th June 2005 - 10:02 PM
Last post by: paypal.login
No New Posts   3 beeseven 1,892 1st March 2005 - 11:10 PM
Last post by: beeseven
No New Posts   2 tripletriangle 2,130 20th March 2005 - 10:45 PM
Last post by: unicornrose
No New Posts   12 -kietekas- 2,393 22nd January 2005 - 02:37 AM
Last post by: -clffworld-
No New Posts   1 -greenDilim- 2,440 13th February 2005 - 03:00 PM
Last post by: -God-
No New Posts 4 soleimanian 3,276 25th June 2007 - 12:08 PM
Last post by: dastrophy
No New Posts   3 Florisjuh 1,358 1st May 2005 - 09:18 AM
Last post by: Florisjuh
No New Posts   2 keego 2,495 11th March 2009 - 12:04 PM
Last post by: iG-Author Name - e.g. John, Mike
No New Posts   1 eskimmer 2,617 17th August 2007 - 08:59 AM
Last post by: leiaah
No New Posts   5 klusk 1,049 30th March 2008 - 07:22 PM
Last post by: howardh
No New Posts   10 Two Gun Charley 1,800 29th September 2009 - 07:06 AM
Last post by: iG-theloomis


 



RSS Open Discussion Time is now: 8th November 2009 - 02:17 PM

Web Hosting Powered by ComputingHost.com.