Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Change one value + many OnChange events = stack overflow (https://www.delphipraxis.net/165433-change-one-value-many-onchange-events-%3D-stack-overflow.html)

WojTec 31. Dez 2011 18:03

Re: Change one value + many OnChange events = stack overflow
 
I know - it's bug in THSLColorPicker component, calling a few times DoChange procedure - 3 times instead 1 in spectrum box and 1 or 2 in brightness trackbar! God!

I'll try detect with calls are not needed.

WojTec 31. Dez 2011 18:20

Re: Change one value + many OnChange events = stack overflow
 
In HSLColorPicker.pas look for HSPickerChange(). Then change to:

Delphi-Quellcode:
procedure THSLColorPicker.HSPickerChange(Sender: TObject);
begin
 FLPicker.Hue := FHSPicker.HueValue;
// FLPicker.Saturation := FHSPicker.SaturationValue;
// DoChange;
end;
(lines 2 and 3 in this method is not needed any more, because creates problem I told in previous post).

:-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:39 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz