Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Prevent focus losing

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Valdas Jankūnas

Hello,

situation: I have TCustomEdit and TCustomSpeedButton; when focus is in edit and I press speed button then edit loses focus. How to prevent losing focus when I press speed button?

Valdas Jank?nas

Reply by email

Gabor Boros
to Valdas Jankūnas

Hi,

Why not use CustomEdit1.SetFocus in CustomSpeedButton1.Click?

Gabor

Show quoted text 6 lines
Hello, situation: I have TCustomEdit and TCustomSpeedButton; when focus is in edit and I press speed button then edit loses focus. How to prevent losing focus when I press speed button?

Reply by email

Valdas Jankūnas
to Gabor Boros

Gabor Boros ra??:

Show quoted text 11 lines
Hi, Why not use CustomEdit1.SetFocus in CustomSpeedButton1.Click? Gabor > Hello, > > situation: I have TCustomEdit and TCustomSpeedButton; when focus is in > edit and I press speed button then edit loses focus. > How to prevent losing focus when I press speed button?

This is workaround, thanks for suggestion.

Another question: how is implemented focus grabbing in TCustomButton, is there way to disable focus grabbing in TSpeedButton?

Valdas Jank?nas

Reply by email

Gabor Boros
to Valdas Jankūnas

I tried your original problem now (earlier not) and TEdit don't loose focus.

TCustomButton have a TabStop property. But TSpeedButton not because derived from TGraphicControl.

Gabor

Show quoted text 5 lines
This is workaround, thanks for suggestion. Another question: how is implemented focus grabbing in TCustomButton, is there way to disable focus grabbing in TSpeedButton?

Reply by email

Valdas Jankūnas
to Gabor Boros

Gabor Boros ra??:

Show quoted text 11 lines
I tried your original problem now (earlier not) and TEdit don't loose focus. TCustomButton have a TabStop property. But TSpeedButton not because derived from TGraphicControl. Gabor > This is workaround, thanks for suggestion. > > Another question: how is implemented focus grabbing in TCustomButton, > is there way to disable focus grabbing in TSpeedButton?

indeed.. maybe I doing something wrong :(

Thanks!

Valdas Jank?nas

Reply by email