Thread View: borland.public.delphi.vcl.components.using.dotnet
2 messages
2 total messages
Started by Wim Coenen
Tue, 02 May 2006 14:20
TCustomGrid.HideEdit not always called in VB6
Author: Wim Coenen
Date: Tue, 02 May 2006 14:20
Date: Tue, 02 May 2006 14:20
28 lines
1994 bytes
1994 bytes
Hi! I am working on a control which is derived from TCustomGrid. This control is used in VCL applications, but also in Visual Basic 6 applications via an activeX wrapper. In VCL applications, everything is working fine. In VB however, I am having a problem with inplace edits not always being hidden when they are supposed to. To be more specific, if I click in a cell to get a dropdown box and then drag the form around instead of selecting an item, then the dropdown box 'sticks' instead of disappearing. Examining the VCL source reveals the problem: VCL controls rely on TCustomForm to notify them of events by sending them messages such as CM_CancelMode. In Visual Basic there is of course no TCustomForm to send these messages, so TCustomGrid.HideEdit is never called. Isn't the ActiveX wrapper supposed to take care of this somehow? If not, what is the best way to work around this problem? My first guess it to implement the WMKillFocus message handler. I hesitate because Borland must have used TCustomForm + custom messages for a reason. Thanks in advance for any suggestions, Wim Coenen.
Re: TCustomGrid.HideEdit not always called in VB6
Author: Wim Coenen
Date: Tue, 02 May 2006 14:23
Date: Tue, 02 May 2006 14:23
6 lines
1023 bytes
1023 bytes
Oops, reposted in the right group (borland.public.delphi.com.activex.writing) sorry, Wim.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads