> The Cut routine also needs a similar fix. This seems to be working:
Thanks,
> Now Ctrl-X and Ctrl-V need fixing
In Method KeyDown() please remove these 3 lines:
- Code: Select all Expand view
case ( nKey == VK_INSERT .and. GetKeyState( VK_SHIFT ) ) .or. ;
( nKey == ASC("V") .and. GetKeyState( VK_CONTROL ) ) .or. ;
( nKey == ASC('X') .and. GetKeyState( VK_CONTROL ) ) .and. ;
! lAnd( nFlags, 2 ** 29 )
if ! ::lReadOnly
CallWindowProc( ::nOldProc, ::hWnd, WM_KEYDOWN, nKey, nFlags )
SysRefresh()
if ValType( ::oGet:buffer ) = "C"
::oGet:buffer = Pad( GetWindowText( ::hWnd ), Len( ::oGet:buffer ) )
SetWindowText( ::hWnd, ::oGet:buffer )
else
::oGet:buffer = GetWindowText( ::hWnd )
endif
::oGet:Assign()
// ::GetSelPos( @nLo, @nHi ) THIS
// ::nPos = nHi + 1 THIS
// ::oGet:Pos = ::nPos THIS
if ::bChange != nil
Eval( ::bChange, nKey, nFlags, Self )
endif
endif
return 0
Now it seems to work fine. We appreciate your feedback, thanks