i get it, pressing the ENTERbutton in the dialogbox will close it, the key
is down, so i come back to the datalistview.
so, when pressing the ENTERkey down and holding it down, the dlg ist
beeing
closed, but i am still holding the Enterkey down, but now i am already
back
in the dlv and then releasing the Enterkey the dispatcher gets the
WM_KEYUP Meesage
???
"Eckhard Sallermann" <ecki@[EMAIL PROTECTED]
> schrieb im Newsbeitrag
news:ftvnfg$a8b$1@[EMAIL PROTECTED]
> Hi,
>
> when pressing ENTER on a datalistview a Dialogwindow appears where i can
> do some input in singlelineedits
> this dialogwindow has two buttons "Okay" and "Cancel"
> now, when leaving the sle the Okay-Button has the focus, pressing the
> Okay-Button with the mousem, the dialogwindow will be closed an i set
the
> focus to the Datalistview.
>
> when pressing the ENTER-Key while the focus in this dlg-box is on the
> OKAY-Butten the dialogwindow is also being closed
> bute when also setting the focus back to the dlv it seems the dispatcher
> will get the ENTER-Key agan, so the dialogbox appears
> again
>
> any ideas ?
>
> METHOD dispatch( oevt ) CLASS dlvWareneingang
>
>
>
> IF oevt:umsg = WM_KEYUP
>
> DO CASE
>
> CASE oEvt:wparam = VK_RETURN
>
> self:owner:owner:PutMenge() // Calls the dialogwindow
>
>
>
>
> self:SetFocus()
>
> endcase
>
> RETURN SUPER:dispatch( oevt )
>
>
>


|