Jul 25, 2008

Stringgrid Canvas Distorts Mouse Selection

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

Stringgrid Canvas Distorts Mouse Selection

kvarnerexpress
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?

Reply

brent
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

Reply

osknockout
@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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : stringgrid, canvas, distorts, mouse, selection

  1. Scroll And Pan The Screen Via Mouse In Flash
    does anyone know how to pan across the screen using the mouse in flash (0)
  2. Gaming Mouse
    Opinion? (0)
    I just ordered a gaming mouse that should be pretty good. I don't know much about mice, but
    maybe you can tell me how good it is compared to the price?
    http://www.razerzone.com/index.php?main_pa...;products_id=43 ....
  3. Mouse Input In C Programs
    using checkbox etc (5)
    how can we use mouse input in C programs...i think that works only in graphics mode... i tried a few
    functions that are available but they are not working...either i dont know how to use them properly
    or they dont work under my compiler...i use borlandv3. do i have to download some file from internet
    which will make it work or i need to use a different compiler..... and also i wish to know what all
    things i can do with it once it starts working,i mean checkbox or optionbox or making mouse focus
    specific areas................. I know these things can be done better with o....
  4. Mouse Off-road 2.17
    (0)
    QUOTE This application measures the speed and mileage of a mouse. It works in a small
    inconspicuous window that can be placed anywhere on your desktop. Preview image:
    http://sixfiles.com/downloads/mof.zip Filesize: 1.3Mb I tested it on Counter Strike 1.6 and got
    160mph in 30 minutes :]....
  5. G5 Gaming Mouse
    G5 Gaming Mouse (1)
    Does anyone else have the logitech brand G5 $70.00 gaming mouse, with optional DPI settings of
    either 200, 400, or 2000 DPI, and with 4.5 gram and 1.7 gram weights to tune mouse performance, with
    a very nice thumb button and a scroll wheel? if you don't, and you play ANY, i reapeat, ANY
    F.P.S. games, then invest $70.00 to buy one!!!!!!!
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  6. Money Making Idea "the Mouse Ticker Tape Printer"
    money making invention (6)
    Mouse printer! Invention If you work in administration like me, you will be faced with having
    to jot down numbers off the screen every day. If your mouse had a simple ticker tape printer on it,
    you could hi-light the word or phone number on the screen and press your green print button on your
    mouse and hay presto! Stick the print out strait on your envelope or letter. -It would save
    time effort and that means save money! Work more efficiently. Yes I know that is a million
    pounds right there! But hay, I'm a kind sharing kind of guy! I hope ....
  7. Retinal Scanner Mouse
    Wouldn't be cool (2)
    I recently saw a patent for a computer mouse that came with a barcode scanner. I was think that,
    for security, computer mice could come with retinal scanner so that you can scan your eye and login.
    Wouldn't that be cool (and secure).....
  8. Roasting Your Own Coffee
    Bean selection (5)
    So I'm about ready to roast our coffee here so it's as fresh as can be and I'm all
    set up, except I could use more airtight containers to store said roasted coffee beans in, and
    rearing to go. Now for the selection of beans to order. There are hundreds of choices from all
    across the world and I really don't have much of a clue what I want. I'm thinking about
    ordering a sampler from one company and going from there, but even then, a sampler is only five
    different beans. So many choices, so little time. Anyone else roast their own coffee at home?....
  9. Using Multiple Selection Array In Table To Order Data
    Using multiple selection array in table to order data (1)
    have a form that has a multiple select choice, like this: CODE <form method="post"
    action="display.php" <select multiple name="selectsort[]">
    <option value="code">Code</option> <option
    value="amount">Amount</option> <option value="dateammended">Date
    Ammended</option> <option value="expreviewdate">Expiration/Review
    Date</option> <option value="effectivedate">Effective Date</option>
    <option value="e....
  10. Selection Problem
    (4)
    I need help on a join, I think I have it mostly done, but I know my syntax isn't right. First
    off, to give you an idea, I have two tables, plus my session variables. I'm first selecting from
    the table: user_resources where the user_id = that of the $_SESSION's, and in
    user_resources, there are three fields, user_id, resource_id, and amount, and I wish to print all of
    this. But the hitch to it is, resource_id is an integer. In another table called resources, are the
    fields id and name. The resource_id = resources.id, and I want to print the name associat....
  11. How To Use Keyboard As A Mouse?
    (4)
    How to use keyboard as a mouse? Do you know that you can move mouse pointer by keyboard keys and
    even drag and drop icons and folders? Yes Windows lets you do this and control mouse pointer by
    using keyboard keys. It is called Mouse Key. To do this, hold down left Shift and Alt and press
    NumLock (Shift+Alt+NumLock). Windows will display a dialog box, press OK to accept this function. A
    mouse icon will appear in the system tray. It means that Mouse Keys are enabled and you can use
    both numeric keypad keys and mouse to control mouse pointer. To control mouse pointer....
  12. Commitment To More Activity - I'm A Mouse Potato
    (4)
    I find myself sitting at the computer for long periods of time without even moving from my chair. I
    make a commitment to stand at least one time an hour while I am here. It may not seem like much but
    it will make a big difference in the amount of activity I have in my life. What do you make a
    commitment to?....
  13. Dvd Drive Device Selection
    Question (5)
    Hi , i want buy DVD device ( Rom + writer) but i can't find any good kind of DVD device !
    what kind of DVD device are you using ? what is your recommend ? 1 - Sony 2 - Asus 3 - LG 4 -
    samsung 5 - teac and .... 1 - in many DVD device we see DVD+RW and in other we see DVD-RW , thats
    different in DVD+RW and DVD-RW ? 2 - what is Frameware in DVD device ?....
  14. New Gaming Mouse - Razer Deathadder
    Ideal for fps (19)
    Razer, maker of the diamondback, krait and copperhead has launched a new product! the
    DeathAdder it has a 1800dpi sensor and a new technology that automatically deactivates the mouse
    when u lift it off the desktop, preventing it from moving wildly in the process, great for low-sens
    players who constantly slam their mice around! There is even a 30day money back scheme. No
    questions asked. They take it back if you don't like it!
    http://www.razerzone.com/Products/Gaming-M...r-Gaming-Mouse/ ....
  15. B.a.m. Software
    Brain as Mouse (13)
    As i was writing my bottomless drink topic i thought of a totally new idea! Ready? How about
    never using a mouse again and just using your brain? Now you might say how? You might also say, that
    is not possible because we can understand brain waves. This is a little different though. As in a
    lie detector tests it doesnt actually KNOW when you are lying it takes everything about you body
    into consideration. OK so how does this work if you want to move your mouse to the right and click
    on a folder named My Pictures? Everytime you think about going to the right you lo....
  16. Sql Selection Issues
    (1)
    CODE CREATE TABLE pbm_album (     id TINYINT(8) AUTO_INCREMENT,     parent_id
    TINYINT(8)     pbm_name VARCHAR(100),     pbm_desc VARCHAR(150),
        pbm_order TINYINT(8),     pbm_image varchar(100),     pbm_cat_id
    TINYINT(8),     pbm_create_date int NOT NULL,     FOREIGN KEY pbm_cat_id REFERENCES
    pbm_catalog(id),     PRIMARY KEY(id) ) CREATE TABLE pbm_photo (     id
    TINYINT(8) AUTO_INCREMENT,     pbm_name varchar(20) NOT NULL,     pbm_title
    varchar(60) NULL,   ....
  17. Php Selection
    (1)
    hey everyone, i am designing a site and i am wondering if anyone knew how to make a selction script.
    By a selection script, i mean that you will be able to select multipul entries and be able to
    delete them by using the check boxes and a delete button. The system i am creating is for a mail
    system, and i need the script in PHP. If you know how to make one of those scripts or know of a
    place that has a tutorial on it, then please post and let me know. Thanks! ill devil inc....
  18. Future Of The Mouse
    (7)
    I just saw this really cool video in which mac has developed a really cool screen that would
    probably replace the use of the mouse in certain things. (I said certain things because, I dont
    really see how you could use it with photoshop or something that needs to be pixel precise.) The
    video looks really cool, I see this multi touch screen interface in the future of vjing also,
    because that Is what is mostly done in the video.
    http://mblog.lib.umich.edu/~rdivecha/archi...orld_of_sm.html I hope you enjoy it, it kind of
    reminds me of movies like minority report and th....
  19. Mohawk Mouse Pics
    Jerry from Tom & Jerry just got punk (0)
    Ok well i couldn't sleep tonight so i was looking for something to make. I saw one of my old Tom
    & Jerry toys and thought it would be cool if Jerry had a mohawk. So i drew him on a piece of paper
    and it turned out better then i thought. I was wondering what you guys think. It's supposed to
    be cartoonish by the way while a slight bit 3D (more of a bevel, but whatever) This was my first
    finished product. This was my second Now this one is not done yet. I still have to make a
    background. It's going to have a mosh pit. This one is done, but i think it n....
  20. Power Generating Keyboard And Mouse!
    (10)
    I noticed that more and more people are using computers, and that lots of people spend time chatting
    and surfing the web, or just doing work. I'm sure that the energy used in hitting a button on
    the keyboard or moving a mouse could create some energy, this power multiplied by millions of people
    on millions of computers, would generate a lot of power, and it's good for the enviroment. Think
    of it. Wouldn't the world be a much better place if we could use keyboards and mouses to create
    energy?....
  21. Gyration Mouse
    THe Coolest mouse ever invented (10)
    I have just found the coolest mouse ever. Its made by Gyration and the way it works is that the
    mouse when the 3D mode is activated, the mouse senses where it is located in a 3D cube, and when
    moved on either of the threre axis X,Y,Z it will move the mouse. As well as having a 3D mode if you
    place the mouse down on a flat surface them mouse will change over to a standard mouse. In addition
    to woking as a mouse it also has a mode, when the mouse is in 3D mode you can make certain gestures
    that will make your computer do predefined macros or functions. This is probably th....
  22. Firefox Extension Problem...
    Gotta get rid of this text selection thing! >_< (5)
    I've been using Firefox lately, and i placed an extension in it, to try it out, but after
    uninstalling it, the feature is still here... I dont mind the feature all that much, but it does
    become inconvenient for me when there's lots of scrolling, and i want to use the "home" and
    "end" keys. Also, i cant do quick edits to my posts cause of it. I love the quick edit feature. I
    was wondering if anyone ever installed an extension similar and could tell me the name of it? Cause,
    i forgot the name of it......
  23. Microsoft Wireless Optical Mouse 5000
    Comfortable and a joy to use (4)
    I got a $50 compUSA gift card, and got myself this really good mouse. It's really
    comfortable (and about 1/3 bigger than my cheap HP optical mouse), has a 4-way scroll wheel thingy,
    side buttons, and a decent optical sensor. It cost me $29.99 AFTER REBATES (one of which is on
    it's way, have yet to do the other one since it's due in April). In general, I think that
    Microsoft hardware, unlike their $oftware products, is a job well done.....
  24. Cordless Optical Mouse
    (12)
    Breaking completely from the typical design for computer mice, Art. Lebedev’s Mus2 is unique to
    say the least. This cursor-shaped optical mouse has 800 dpi optical sensor resolution, up to 2300
    fps frame speed, and is compatible with all Windows/Mac OS X systems. Available in black or white
    colors, the Mus2 is slated for release this month. “Despite the fact that some people find its
    form unusual, Mus2 fits neatly in hand like a normal mouse and doesn’t cause any discomfort.”....
  25. Wireless Keyboard And Mouse Using Bluetooth
    bluetooth technology (13)
    Logitech came out with a new wireless keyboard and mouse that uses bluetooth. Now you dont need to
    be just 6 feet away from the computer. You can now bring your keyboard into the other room and
    change music stations. It has an LCD and gets information back from the computer. The mouse uses a
    laser rathr than optical which is much more precision then opticals and great for fast action games.
    It can be a little pricy though.. I found one through froogle to be about 119. The retail price
    on it is about $150. I can't wait to get mine. I have a projector con....
  26. Circuit City-list Prices, Limited Store Selection
    (0)
    As of today, Circuit City is off of my electronics store list. We (my parents and brothers) went
    there today, and I went looking around for a USB flash drive, but couldn't find one anywhere on
    any floor. Also, I couldn't find anything for less than $25 that would be somewhat useful.
    Their web site is OK, but once again there is nothing really cheap to buy.....
  27. The Invisible Mouse
    Dual Booting (SuSe9.2 + WinXPpro) (4)
    Comp. SPeCs - Sony Vaio Pentium 4 - WinXPpro + SuSe9.2pro - nVidia GeForce Fx5200 w/ latest Driver
    (8.1.9.8) - 223Gb HD - 1 Gb Memory - a couple Mice (1 sony - 1 DYNEX) ive tried both. Ok. . . i
    work ALOT w/ comps, and i have messed w/ alot off diff OS's, problems arose, but none that
    couldnt be easily fixed... except this one. for some reason ONLY on this computer, does the mouse
    become invisible when i boot up SuSe9.2 . Its verrry odd, it is fully functional but i cannot see
    the cursor. I can click any icon, right click, and i can use it just like normal, it....
  28. Xbox 360 Question
    Keyboard and Mouse support? (27)
    Will the XBOX 360 have keyboard and mouse support? I really want the system but I just don't
    think that I will be able to adapt very well to using a controller for shooting games. I have been
    using a mouse and keyboard for years, so I'm wondering if there will be a way for me to continue
    using a keyboard and mouse on the 360? Your title must be descriptive! Editing. ....
  29. Mx510
    logitech mouse (4)
    I know that a lot of you gamers like to use logitech mice because they are the most comfortable ones
    to use. And MX510 was probably the one mostly advertised. I want to know who here uses MX510 and
    what kind of problems are the most frequent that you have had with this mouse. I myself use it and
    find that there are some minor problems in with the mouse that show the low quality of the product.
    For example the left click button wears off too fast. What i mean is i have 2 mice at the moment one
    is MX510 and the other is Microsoft IntelliPoint and i have been using Intelli....
  30. Rubix Cube
    Are you a mouse or a master? (44)
    Just wondering if anybody here has ever been stupid enough to torture themselves by buying a rubix
    cube. I bought one and all I can say is that this square, colourful, plastic device has plagued many
    hours of my free time in the past few days. I've heard of some people doing them really quickly
    but I'm not even close, whenever it seems as if there is a clear solution you just get bitten by
    a horrible clash of colours!....

    1. Looking for stringgrid, canvas, distorts, mouse, selection

Searching Video's for stringgrid, canvas, distorts, mouse, selection
advertisement



Stringgrid Canvas Distorts Mouse Selection



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE