FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper How to use Enter key on Combobox
Posts: 44
Joined: Sat Jul 29, 2006 05:03 PM
How to use Enter key on Combobox
Posted: Wed Jun 20, 2007 04:08 AM
Hi Everybody,

While I am pressing ENTER on Combobox, Cursor do not move in next get field. If I press Tab bottom, then only Cursor move to next field.

How Can I use Enter, to move Cursor to next field. My code is as follows.
     REDEFINE COMBOBOX oCbx VAR cCuTy ITEMS  { "URBAN ", "RURAL ", "DEEPAM", "COMMON" }               ;
      ID 2 OF oDlg1                                                                                   ;
      ON CHANGE MsgBeep()                                                                             ;
      Valid If(cCuTy = oCbx:aItems[1],  (oArea:AreaType := "U", .T.), If(cCuTy = oCbx:aItems[2],      ;
                                        (oArea:AreaType := "R", .T.), If(cCuTy = oCbx:aItems[3],      ;
                                        (oArea:AreaType := "D", .T.), (oArea:AreaType := "C", .T.)))) ;
      Picture "@!" Color RGB(0, 0, 0), RGB(255, 255, 255)


With regads,

Arindam
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
How to use Enter key on Combobox
Posted: Wed Jun 20, 2007 08:47 AM

-> ON CHANGE MsgBeep()

Try this ...

ON CHANGE ( MsgBeep() ,;
                     oNextGet:SetFocus() ;
                   )

Regards.

Posts: 44
Joined: Sat Jul 29, 2006 05:03 PM
How to use Enter key on Combobox
Posted: Wed Jun 20, 2007 02:09 PM

Avista

Thank you for your reply. Actualy I am user of xHarbour and FWH. By mistake I had post this in this forum.

With regards,

Arindam

Continue the discussion