Combobox problem

Combobox problem

Postby Pier Luigi » Wed Nov 21, 2007 2:35 pm

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

Regards
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Postby Antonio Linares » Wed Nov 21, 2007 4:11 pm

Pier,

Thats because the pushbutton is a default pushbutton and traps the Enter key
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Wed Nov 21, 2007 9: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Pier Luigi » Thu Nov 22, 2007 8:29 am

Now I understand.

Thanks.
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 79 guests