| View previous topic :: View next topic |
| Author |
Message |
Daryl Guest
|
Posted: Wed Feb 15, 2006 12:03 pm Post subject: Use of mouse view |
|
|
When using IExplorer all you have to do is have the cursor over the panale
and you can scroll using the mouse wheel, Can anyone please tell me how this
could be duplicated using a list view.
thanks
daryl |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Feb 15, 2006 8:03 pm Post subject: Re: Use of mouse view |
|
|
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote in message
news:43f3093e (AT) newsgroups (DOT) borland.com...
| Quote: | When using IExplorer all you have to do is have the cursor over
the panale and you can scroll using the mouse wheel, Can anyone
please tell me how this could be duplicated using a list view.
|
Which version of BCB are you using? Newer versions of the VCL already have
built-in support for mouse wheels.
Gambit |
|
| Back to top |
|
 |
Daryl Guest
|
Posted: Wed Feb 15, 2006 9:03 pm Post subject: Re: Use of mouse view |
|
|
Using ver6, however I have just ordered BDS2006.
What do you need to do to achieve this in ver6.
thanks
daryl
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:43f37838$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote in message
news:43f3093e (AT) newsgroups (DOT) borland.com...
When using IExplorer all you have to do is have the cursor over
the panale and you can scroll using the mouse wheel, Can anyone
please tell me how this could be duplicated using a list view.
Which version of BCB are you using? Newer versions of the VCL already
have
built-in support for mouse wheels.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Feb 15, 2006 10:03 pm Post subject: Re: Use of mouse view |
|
|
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote in message
news:43f38f58$1 (AT) newsgroups (DOT) borland.com...
| Quote: | What do you need to do to achieve this in ver6.
|
Nothing. It should already be doing it automatically. It does when I try
it.
Please provide step-by-step details to reproduce what you are having a
problem with.
Gambit |
|
| Back to top |
|
 |
Daryl Guest
|
Posted: Sat Feb 18, 2006 12:03 am Post subject: Re: Use of mouse view |
|
|
| Quote: | Nothing. It should already be doing it automatically. It does when I try
it.
Please provide step-by-step details to reproduce what you are having a
problem with.
|
Yes you are right if you select an item you can then use the mouse wheel to
scroll through the list items. I was wanting to know how to do the
following:
1) By just positioning the mouse cursor ovet the list views client area you
would be able to scroll the list items.
2) If one was selected then when scrolling the list, a new item selected
would be highlighted at a positin relative to the movement of the items
within the list.
daryl |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Feb 18, 2006 9:03 pm Post subject: Re: Use of mouse view |
|
|
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote in message
news:43f6584d (AT) newsgroups (DOT) borland.com...
| Quote: | By just positioning the mouse cursor ovet the list views
client area you would be able to scroll the list items.
|
The VCL already handles that automatically. Like I told you earlier, it
works fine when I try it. Scrolling via a mouse wheel works fine regardless
of whether focus has been set to the control or not.
| Quote: | If one was selected then when scrolling the list, a new item
selected would be highlighted at a positin relative to the movement
of the items within the list.
|
Mouse wheels do not, and are not supposed to, change the selection. They
are only supposed to scroll.
Gambit |
|
| Back to top |
|
 |
Jochanan Guest
|
Posted: Thu Apr 27, 2006 1:03 pm Post subject: Re: Use of mouse view |
|
|
Gambit
I have a similar problem with the TDBGrid it scrolls onlly within the client
area I use bcb 6 update 4 + win xp sp2. independent of sellecting a record
or not with in the DBGrid.
jvdn
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schreef in bericht
news:43f77960$2 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Daryl" <developeracc (AT) hotmail (DOT) com> wrote in message
news:43f6584d (AT) newsgroups (DOT) borland.com...
By just positioning the mouse cursor ovet the list views
client area you would be able to scroll the list items.
The VCL already handles that automatically. Like I told you earlier, it
works fine when I try it. Scrolling via a mouse wheel works fine
regardless
of whether focus has been set to the control or not.
Mouse wheels do not, and are not supposed to, change the selection. They
are only supposed to scroll.
Gambit
|
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Fri Apr 28, 2006 10:03 am Post subject: Re: Use of mouse view |
|
|
"Jochanan" <non (AT) nomail (DOT) com> wrote:
You should have started a new thread instead of adding to what
looks like (to everyone else) a dead thread. The only reason
that I saw your post is because I use the web interface which
floats posts to the top based on date/time when the rest of
thread has scrolled off of the page.
borland.public.cppbuilder.vcl.components.using
http://tinyurl.com/i4w3
| Quote: | [...] the TDBGrid it scrolls onlly within the client
|
Add a TApplication::OnMessage event to catch the mouse wheel
messages and act on them:
private:
void __fastcall AppMessage( TMsg &Msg, bool &Handled );
public:
__fastcall ~TForm1();
//-------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner)
{
Application->OnMessage = AppMessage;
}
//-------------------------------------------------------------
__fastcall TForm1::~TForm1()
{
Application->OnMessage = NULL;
}
//-------------------------------------------------------------
void __fastcall AppMessage( TMsg &Msg, bool &Handled )
{
if( Msg.message == WM_MOUSEWHEEL )
{
if( dynamic_cast<TDBGrid*>(Screen->ActiveControl) )
{
// the active control is a TDBGrid
short zDelta = HIWORD( Msg.wParam );
if( zDelta != 0 )
{
// change the message to indicate a
// keypress instead of a mouse wheel
Msg.lParam = 0;
Msg.message = WM_KEYDOWN;
if( zDelta > 0 ) Msg.wParam = VK_UP;
else Msg.wParam = VK_DOWN;
}
}
}
}
//-------------------------------------------------------------
~ JD |
|
| Back to top |
|
 |
Jochanan Guest
|
Posted: Tue May 02, 2006 8:03 am Post subject: Re: Use of mouse view |
|
|
Thanks, I will post again a new message I persumed that the writer can see
My response to.
Thanks for the Solution the problem with it is that Mij Mouse weel should
not change the selection of the DBGrid witch he do when i change the message
to a KeyUp /KeyDown.
Tanks
jvdn
"JD" <nospam (AT) nospam (DOT) com> schreef in bericht
news:4451d7d3$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Jochanan" <non (AT) nomail (DOT) com> wrote:
You should have started a new thread instead of adding to what
looks like (to everyone else) a dead thread. The only reason
that I saw your post is because I use the web interface which
floats posts to the top based on date/time when the rest of
thread has scrolled off of the page.
borland.public.cppbuilder.vcl.components.using
http://tinyurl.com/i4w3
[...] the TDBGrid it scrolls onlly within the client
Add a TApplication::OnMessage event to catch the mouse wheel
messages and act on them:
private:
void __fastcall AppMessage( TMsg &Msg, bool &Handled );
public:
__fastcall ~TForm1();
//-------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner)
{
Application->OnMessage = AppMessage;
}
//-------------------------------------------------------------
__fastcall TForm1::~TForm1()
{
Application->OnMessage = NULL;
}
//-------------------------------------------------------------
void __fastcall AppMessage( TMsg &Msg, bool &Handled )
{
if( Msg.message == WM_MOUSEWHEEL )
{
if( dynamic_cast<TDBGrid*>(Screen->ActiveControl) )
{
// the active control is a TDBGrid
short zDelta = HIWORD( Msg.wParam );
if( zDelta != 0 )
{
// change the message to indicate a
// keypress instead of a mouse wheel
Msg.lParam = 0;
Msg.message = WM_KEYDOWN;
if( zDelta > 0 ) Msg.wParam = VK_UP;
else Msg.wParam = VK_DOWN;
}
}
}
}
//-------------------------------------------------------------
~ JD
|
|
|
| Back to top |
|
 |
|