Re: Again on kb_event. It almost works

From: J French (erewhon_at_nowhere.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 07:49:14 +0000 (UTC)

On Tue, 14 Sep 2004 18:04:18 -0400, L D Blake <not@any.adr> wrote:

>On Tue, 14 Sep 2004 16:48:27 -0500, Rob Kennedy <me3@privacy.net> wrote:
>
>>I think the combo box does capture the mouse (or something like that) by
>>itself since it needs to know when the user clicks off the control. I
>>can see the same behavior in Microsoft-written programs. Open the
>>Windows "Run" dialog. Set focus to the combo box, and place the cursor
>>over the edit portion, so it is an I-beam. Press Alt+Down to drop down
>>the combo box. Move the mouse anywhere within the bounds of the dialog,
>>and it will still be an I-beam. Outside the dialog, the cursor's shape
>>appears is normally.
>
>Actually that would be the editor capturing the mouse.
>
>Comboboxes (which I use rather a lot) at winapi level don't generally cause
>the mouse cursor to vanish nor do edit windows, which I also use quite a bit.
>
>Frankly, this one's got me stumped.

I've just run up a little test in Delphi4, an Edit and a Combo
When 'D' is typed I set the Como's DroppedDown to True
It certainly captures the Mouse, but does not hide it.

However if the Cursor is an I Beam when the Combo is dropped (ie: it
was over the Edit control or the Edit part of the Combo) then the
Cursor gets 'stuck' as an I Beam

AFAIK a Combo's dropdown list is really a Parentless Listbox Window
created as WS_POPUP

It might be simpler for Stark to create his own alternative to the
Combo using a Listbox



Relevant Pages

  • Re: Continuous subform behavior
    ... Does this only happen with this specific subform? ... Make sure you don't double click as you place the cursor in the ... Double clicking into a text control selects all. ... edit records. ...
    (microsoft.public.access.formscoding)
  • Re: A (basic) problem with edit control
    ... There is a problem with the edit control. ... the cursor goes back to the ... This is one side effect of using UpdateData() that doesn't work well. ...
    (microsoft.public.vc.mfc)
  • Re: TreeViews
    ... Capture MouseDown and start DoDragDrop. ... Capture DragDrop so I can make the final changes. ... You don't get control back until DoDragDropreturns, by which time the user has released the mouse button or otherwise cancels the operation. ... But, if you're asking how other applications personalize the cursor, the answer is simple: they specifically set the cursor as appropriate. ...
    (microsoft.public.dotnet.languages.csharp)
  • A (basic) problem with edit control
    ... there is a function responding ... There is a problem with the edit control. ... the cursor goes back to the ...
    (microsoft.public.vc.mfc)
  • RE: Two CComboBox problems...
    ... I capture the Edit text by writing a new CEdit derived class that the Edit ... Control got sub-classed to, and then registered a message (to guarentee it ...
    (microsoft.public.vc.mfc)