BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where does the Mousedown go to

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
Lee Appleton
Guest





PostPosted: Sun Jan 07, 2007 4:38 pm    Post subject: Where does the Mousedown go to Reply with 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. 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
Back to top
JD
Guest





PostPosted: Thu Jan 18, 2007 4:23 pm    Post subject: Re: Where does the Mousedown go to Reply with quote



"Lee Appleton" <la (AT) symcom (DOT) co.uk> wrote:
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's 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:

http://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
Back to top
John Herbster
Guest





PostPosted: Thu Jan 18, 2007 9:04 pm    Post subject: Re: Where does the Mousedown go to Reply with quote



"JD" <nospam (AT) nospam (DOT) com> wrote

Quote:
"Lee Appleton" <la (AT) symcom (DOT) co.uk> wrote:

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
Back to top
JD
Guest





PostPosted: Fri Jan 19, 2007 9:30 pm    Post subject: Re: Where does the Mousedown go to Reply with quote

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

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

That's how you know that I'm 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's 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't or don't use readers, it's a real
PITA when the lines are not wrapped and it's a simple thing
for the poster to set an option once and forget it.

~ JD
Back to top
John Herbster
Guest





PostPosted: Fri Jan 19, 2007 10:33 pm    Post subject: Re: Where does the Mousedown go to Reply with quote

"JD" <nospam (AT) nospam (DOT) com> wrote

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

That's how you know that I'm using the web interface Wink

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's 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
Back to top
Rudy Velthuis [TeamB]
Guest





PostPosted: Fri Jan 19, 2007 10:50 pm    Post subject: Re: Where does the Mousedown go to Reply with quote

John Herbster wrote:

Quote:
"JD" <nospam (AT) nospam (DOT) com> wrote

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

That's how you know that I'm 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 http://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] http://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.
Back to top
John Herbster
Guest





PostPosted: Sat Jan 20, 2007 1:10 am    Post subject: Re: Where does the Mousedown go to Reply with quote

Quote:
... Where is your Web interface?

"Rudy Velthuis [TeamB]" wrote

Quote:
Try http://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
Back to top
JD
Guest





PostPosted: Sat Jan 20, 2007 9:12 am    Post subject: Re: Where does the Mousedown go to Reply with quote

"John Herbster" <herb-sci1_at_sbcglobal.net> wrote:
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 trimming
posts that are replied to so editing is needed anyway.

~ JD
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.