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 )