Advertisement

06.05.2008 at 08:01PM PDT, ID: 23462578
[x]
Attachment Details

button doesn't get keyboard focus

Asked by jphendriks in Delphi Programming Language, Delphi Programming, Delphi Components

Tags: Delphi

Hi

Sometimes I get this problem (sometimes not). If I pop up a message window (showModal) - using Delphi - the OK button get's a bit of control (it has a dotted line around it) but it doesn't receive keyboard input. I see that the "fat" border around the button is missing. Also, the "tab" key doesn't work in the window, and most important, the "enter" doesn't work.

When I show the window in the show event I call a focuscontrol(button). I would expect this to do the job.

How can I make sure the button will receive keyboard input too in all cases and the fat border is added to the button control?

Thanks for your help
JPStart Free Trial
Attachments:
 
example image
example image
 
[+][-]06.05.2008 at 08:36PM PDT, ID: 21726025

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Programming Language, Delphi Programming, Delphi Components
Tags: Delphi
Sign Up Now!
Solution Provided By: Geert_Gruwez
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.06.2008 at 01:19AM PDT, ID: 21727139

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 02:59AM PDT, ID: 21727531

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.06.2008 at 05:00AM PDT, ID: 21728100

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628