get combobox
Posted: Mon Aug 27, 2018 5:34 am
The get object in combobox does not jump to next control when len get full.
What to do?
What to do?
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=36010
Antonio Linares wrote:Try this:
oCombo:bChange = { || If( oCombo:oGet:TypeOut, oCombo:oWnd:GoNextCtrl( oCombo:hWnd ),) }
Antonio Linares wrote:Please check if you ear the beep:
oCombo:bChange = { || If( oCombo:oGet:oGet:TypeOut, ( MsgBeep(), oCombo:oWnd:GoNextCtrl( oCombo:hWnd ) ),) }
//----------------------------------------------------------------------------//
METHOD GetKeyChar( nKey ) CLASS TComboBox
local nAt, cText
local cSearch
if nKey == VK_RETURN // CHANGED HERE BY SHARK
::oWnd:GoNextCtrl( ::hWnd )
return nKey // changed here by shark
elseif ( nKey == VK_TAB .and. ! GetKeyState( VK_SHIFT ) )
::oWnd:GoNextCtrl( ::hWnd )
return 0
else
if nKey == VK_TAB .and. GetKeyState( VK_SHIFT )
::oWnd:GoPrevCtrl( ::hWnd )
return 0
endif
endif