Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TComboBox and MouseMove

64 views
Skip to first unread message

Steve Spears

unread,
May 30, 1998, 3:00:00 AM5/30/98
to

Using Delphi 3.02 & Win95 or Win NT:

The TComboBox and TDBComboBox behave differently than the
TDBLookupCombobox and
other list controls. TComboBox and TDBComboBox automatically highlight
items in the
dropdown list as the mouse is is moved over them. How can I make these
components not
do this? I have tried to keep the mouse move messages getting to the
combobox but then
the edit box drag select function will not work. The list box seems to
only exist when
it is visible. The style is csDropdown. I would like to capture the
messages at the component level but it looks like this is not possible.
I have spent 10 hours tracing windows messages. Is there a clean way to
do this?

Any help would be appreciated.

Steve Spears
Change not to net for real email add.

Yorai Aminov (TeamB)

unread,
May 31, 1998, 3:00:00 AM5/31/98
to

On Sat, 30 May 1998 14:56:30 -0700, Steve Spears
<ste...@primenot.com> wrote:

>The TComboBox and TDBComboBox behave differently than the
>TDBLookupCombobox and
>other list controls. TComboBox and TDBComboBox automatically highlight
>items in the
>dropdown list as the mouse is is moved over them. How can I make these
>components not
>do this?

TComboBox and TDBComboBox use the standard Windows combo box control.
Modifying its behavior is extremely difficult, since you have no way
of knowing how the logic is built. Other combo box like controls in
Delphi use listboxes or grids to simulate the drop-down list of a
combo box.

Yorai Aminov (TeamB)
http://ourworld.compuserve.com/homepages/yaminov

0 new messages