Index
2009-08-09 22:39 – Manoharan Durga : [dabo-users] How to stop control getting focus
2009-08-10 00:10 – John : Re: [dabo-users] How to stop control getting focus
Back to top
[dabo-users] How to stop control getting focus

Author: Manoharan Durga

Posted: 2009-08-09 22:39:10   Link

I have a form in which there is a button. During data entry, I don't

want the focus shifting automatically to this button, but if it is

clicked with mouse, then the function given in its onHit event should

occur. So, I have made the button visible and enabled, but how to stop

it getting the focus.

From the wiki, I could figure out that it is the TabStop property of

the button. And, probably, we need to set this in the afterInitAll()

property of the Form. "myButton.TabStop = False" did not work.

Can someone help?

Manoharan

©2009 Manoharan Durga
Back to top
Re: [dabo-users] How to stop control getting focus

Author: John

Posted: 2009-08-10 00:10:56   Link

On Sunday 09 August 2009 07:39:10 pm Manoharan Durga wrote:

> I have a form in which there is a button. During data entry, I don't

> want the focus shifting automatically to this button, but if it is

> clicked with mouse, then the function given in its onHit event should

> occur. So, I have made the button visible and enabled, but how to stop

> it getting the focus.

>

> From the wiki, I could figure out that it is the TabStop property of

> the button. And, probably, we need to set this in the afterInitAll()

> property of the Form. "myButton.TabStop = False" did not work.

>

> Can someone help?

>

> Manoharan

Hmmm it works for me when I set the property at the time of creation. But I

did notice it's not a property in the ClassDesigner.

Johnf

©2009 John