FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour get combobox
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
get combobox
Posted: Mon Aug 27, 2018 05:34 AM

The get object in combobox does not jump to next control when len get full.

What to do?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: get combobox
Posted: Mon Aug 27, 2018 08:07 AM

Try this:

oCombo:bChange = { || If( oCombo:oGet:TypeOut, oCombo:oWnd:GoNextCtrl( oCombo:hWnd ),) }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: get combobox
Posted: Mon Aug 27, 2018 04:17 PM
Antonio Linares wrote:Try this:

oCombo:bChange = { || If( oCombo:TypeOut, oCombo:GoNextCtrl( oCombo:hWnd ),) }


Not Solved...

little change in code: "oGet:TypeOut" for "oGet:TypeOut", but, not go next control.

text in oGet is full select and do not go next.

see in image:

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: get combobox
Posted: Mon Aug 27, 2018 04:29 PM

Please check if you ear the beep:

oCombo:bChange = { || If( oCombo:oGet:oGet:TypeOut, ( MsgBeep(), oCombo:oWnd:GoNextCtrl( oCombo:hWnd ) ),) }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: get combobox
Posted: Fri Aug 31, 2018 05:57 PM
Antonio Linares wrote:Please check if you ear the beep:

oCombo:bChange = { || If( oCombo:TypeOut, ( MsgBeep(), oCombo:GoNextCtrl( oCombo:hWnd ) ),) }


No Beep. Not call function.
Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: get combobox
Posted: Thu Sep 27, 2018 05:23 AM

Any Solution ???

Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: get combobox
Posted: Thu Sep 27, 2018 05:42 AM

This command line bellow, call alert function, it´s ok. But... don´t execute GoNextCtrl()

oCombo:bChange = { || If( oCombo:oGet:oGet:TypeOut, ( alert("test"), oCombo:oWnd:GoNextCtrl( oCombo:hWnd ) ),) }

Any Solution?

Posts: 55
Joined: Thu Mar 13, 2008 02:35 AM
Re: get combobox
Posted: Thu Sep 27, 2018 07:23 AM
press ENTER key, do not execute GoNextCtrl too.

for solve this problem, I changed Method GetKeyChar() in TComboBox Class.

Code (fw): Select all Collapse
//----------------------------------------------------------------------------//

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

Continue the discussion