Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Conflict between InteliMouse driver v2.2d and TDBLookupComboBox


Why is my application freezing when I pass the IntelliMouse pointer over a DBLookupComboBox?   

    There is a conflict between the IntelliMouse driver v2.2d and TDBLookupComboBox. The error is reproduced by running an application which has a TDBLookupComboBox on a machine with

    IntelliMouse v2.2d. Click on the arrow in the box to show the dropdown list. Now move the mouse wheel,

    and the application freezes. The application must be killed to recover.

    This issue does not occur with a TComboBox because TDBLookupComboBox is not a TComboBox descendent.

    WORKAROUND A permanent solution to this issue is currently in development. Here is a workaround which requires

    adding two lines to DBCTRLS.PAS. The .DCU file will need to be rebuilt after adding these lines:

    // This line takes care of the AV. ListLink.DataSet could be // nil after the WM_MOUSEWHEEL wasn't handled and the Intellimouse // driver decided to send a WM_VSCROLL

    procedure TDBLookupListBox.WMVScroll(var Message: TWMVScroll); begin SearchText := ''; (**** ADD THIS LINE ****) if ListLink.DataSet = nil then Exit;

    with Message, ListLink.DataSet do end;

    // This takes care of the "hang". The control is getting a // WM_KILLFOCUS immediately after the *second* WM_MOUSEWHEEL. // Focus is retained by the drop-down list, making it appear // that the application had stopped responding }

    procedure TDBLookupComboBox.CloseUp(Accept: Boolean); var Msg: TMsg; ListValue: Variant; begin if FListVisible then begin if GetCapture <> 0 then SendMessage(GetCapture, WM_CANCELMODE, 0, 0); (**** ADD THIS LINE ****) SetFocus;

    ListValue := FDataList.KeyValue; ... end;  



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use