How to use Enter key on Combobox

How to use Enter key on Combobox

Postby Arindam » Wed Jun 20, 2007 4: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.
Code: Select all  Expand view
     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
Arindam
 
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Postby avista » Wed Jun 20, 2007 8:47 am

-> ON CHANGE MsgBeep()

Try this ...

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

Regards.
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Postby Arindam » Wed Jun 20, 2007 2: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
Arindam
 
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 4 guests