Re: [Lazarus] Prevent focus losing

2008-08-26 Thread Valdas Jankūnas
Gabor Boros rašė:
 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
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Prevent focus losing

2008-08-25 Thread Valdas Jankūnas
Gabor Boros rašė:
 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
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Prevent focus losing

2008-08-25 Thread Gabor Boros
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?
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Prevent focus losing

2008-08-24 Thread 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
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Prevent focus losing

2008-08-24 Thread Gabor Boros
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?
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus