Board index » delphi » Where does the Mousedown go to

Where does the Mousedown go to


2007-01-07 06:38:03 PM
delphi63
My problem problem seems to be that the onMouseDown event only seems to be triggered when clicking o the grid white space area, and not when clicking on any of the actual grid rows. The onMouseUp event is triggered OK on releasiing either button. I am trying to simulate the dragging and dropping of a grid row within the grid, so as you can appreciate it would be more elegant to capture the button mouse Down rather than button mouse Up. As an aside the onCellClick is only triggered by the mouse Up action, . I am currently using Delphi 7.
Thanks for any assistance
 
 

Re:Where does the Mousedown go to

"Lee Appleton" <XXXX@XXXXX.COM>writes:
Quote

Please wrap your lines when you post. If you are using the web
interface, you need to enter a hard return at the end of each
line. If using a reader, you need to set an option for the
line length or width.
Quote
My problem problem seems to be that the onMouseDown event
only seems to be triggered when clicking o the grid white
space area, and not when clicking on any of the actual grid
rows.
Are you using a TDBGrid?
Quote
The onMouseUp event is triggered OK on releasiing either
button. I am trying to simulate the dragging and dropping of
a grid row within the grid, so as you can appreciate it
would be more elegant to capture the button mouse Down
rather than button mouse Up.
This is not the behavior of TStringGrid so it must be TDBGrid
and I do not use data-aware controls because none of the ones
that I have tried perform well enough for me. However, I'm
reasonably confident that you can subclass it is WindowProc
property and catch WM_LBUTTONDOWN which should be sent to the
control no matter where you click it.
Search the archives for sample code:
www.tamaracka.com/search.htm
Search for: WindowProc AND WM_LBUTTONDOWN
Record Limit: 250 Results by: Thread
Quote
As an aside the onCellClick is only triggered by the mouse
Up action,
Which is normal for any control that is clickable.
~ JD
 

Re:Where does the Mousedown go to

"JD" <XXXX@XXXXX.COM>wrote
Quote
"Lee Appleton" <XXXX@XXXXX.COM>writes:
Please wrap your lines when you post. ..
I cannot tell from your postings what newsreader/editor you two are
using. However, OutlookExpress v.6 uses a dynamic wrap to fit the
text to the window.just fine. I did not know that newsreaders with
problems doing this were still in common use. How common are they?
--JohnH
 

Re:Where does the Mousedown go to

"John Herbster" <herb-sci1_at_sbcglobal.net>writes:
Quote

I cannot tell from your postings what newsreader/editor you
two are using.
That's how you know that I am using the web interface ;-)
Quote
However, OutlookExpress v.6 uses a dynamic wrap to fit the
text to the window just fine. I did not know that newsreaders
with problems doing this were still in common use. How
common are they?
I have no clue about the old readers but questions do pop up
from time to time when I ask the OP to wrap their lines and
the general consensious is that it is actually an issue with
the server not dynamically wrapping the lines. If you use the
web interface to post, it even asks you to press return at the
end of each line.
For those of us that can not or don't use readers, it is a real
PITA when the lines are not wrapped and it is a simple thing
for the poster to set an option once and forget it.
~ JD
 

Re:Where does the Mousedown go to

"JD" <XXXX@XXXXX.COM>wrote
Quote
>I cannot tell from your postings what newsreader/editor you
>two are using.
That's how you know that I am using the web interface ;-)
JD,
Then I am showing my ignorance: I either never knew or forgot
that there was a Web interface (Besides Google Groups, which I
treat as ReadOnly). Where is your Web interface?
Quote
I have no clue about the old readers but questions do pop up
from time to time when I ask the OP to wrap their lines and
the general consensious is that it is actually an issue with
the server not dynamically wrapping the lines. If you use the
web interface to post, it even asks you to press return at
the
end of each line.
The longest line in your message was 63 characters. I will try
setting my wrap to that for this message and see what happens.
I suspect that it will probably insert extra new lines within
the quoted stuff. If it does, then that is my main complaint
against wrapping as it is commonly done.
Rgds, JohnH
 

Re:Where does the Mousedown go to

John Herbster writes:
Quote
"JD" <XXXX@XXXXX.COM>wrote

>>I cannot tell from your postings what newsreader/editor you
>>two are using.

>That's how you know that I am using the web interface ;-)

JD,

Then I am showing my ignorance: I either never knew or forgot
that there was a Web interface (Besides Google Groups, which I
treat as ReadOnly). Where is your Web interface?
Try newsgroups.borland.com
Not really very comfortable (it is an interface supplied by DNews, the
people who wrote the server software for the newsgroups), but with
direct access to the server, i.e. it is not a copy or archive, like
Google groups is. You access the real server data directly.
--
Rudy Velthuis [TeamB] rvelthuis.de/
"How can I believe in God when just last week I got my tongue
caught in the roller of an electric typewriter?" -- Woody Allen.
 

Re:Where does the Mousedown go to

Quote
>... Where is your Web interface?
"Rudy Velthuis [TeamB]" wrote
Quote
Try newsgroups.borland.com
Not really very comfortable (it is an interface supplied by
DNews, the
people who wrote the server software for the newsgroups), but
with
direct access to the server, i.e. it is not a copy or
archive, like
Google groups is. You access the real server data directly.
Rudy, Thanks, JohnH
 

Re:Where does the Mousedown go to

"John Herbster" <herb-sci1_at_sbcglobal.net>writes:
Quote

The longest line in your message was 63 characters.
That was only because the edit window is about 65 characters
before it visually wraps (but no hard return is entered).
Quote
I will try setting my wrap to that for this message and see
what happens. I suspect that it will probably insert extra
new lines within the quoted stuff. If it does, then that is
my main complaint against wrapping as it is commonly done.
I just tested it with a width of 110 and there was room to
spare (about 5 more characters) so that would address your
concerns but the truth is that one should also be t{*word*220}
posts that are replied to so editing is needed anyway.
~ JD