Combobox problem

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

Combobox problem

Post by Pier Luigi »

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

Regards
Pier Luigi
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Pier,

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

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
Pier Luigi
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Post by Pier Luigi »

Now I understand.

Thanks.
Pier Luigi
Post Reply