FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Combobox problem
Posts: 58
Joined: Fri Oct 07, 2005 06:30 AM

Combobox problem

Posted: Wed Nov 21, 2007 02:35 PM

In the sample program combos.prg when I press the enter key the dialog is closed.

Regards
Pier Luigi

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Combobox problem

Posted: Wed Nov 21, 2007 04:11 PM

Pier,

Thats because the pushbutton is a default pushbutton and traps the Enter key

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Combobox problem

Posted: Wed Nov 21, 2007 09:50 PM

Peir,

>Thats because the pushbutton is a default pushbutton and traps the Enter key.

And this is standard Windows behavior. In the old DOS apps you could use Enter to select an item in a combo, but it is not advisable to do this with a windows app, since users will not be expecting it to work that way.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 58
Joined: Fri Oct 07, 2005 06:30 AM

Combobox problem

Posted: Thu Nov 22, 2007 08:29 AM

Now I understand.

Thanks.
Pier Luigi

Continue the discussion