![]() |
Re: Timingproblem mit OnChange und OnExit
Hallo Himitsu, hallo David,
es hat jetzt geklappt. Wenn die IF-Abfrage von OnChange nach OnChanging verlagert wird, funktioniert es.
Delphi-Quellcode:
procedure TForm1.TreeView1Changing(Sender: TObject;
Node: TTreeNode; var AllowChange: Boolean); begin if ActiveControl <> Sender then begin AllowChange := False; ActiveControl := TWinControl(Sender); end; AllowChange := True; end; |
Re: Timingproblem mit OnChange und OnExit
Zitat:
Delphi-Quellcode:
oder
if ActiveControl <> Sender then
begin AllowChange := False; ActiveControl := TWinControl(Sender); Exit; end; AllowChange := True;
Delphi-Quellcode:
aber da es läuft, sollte es so auch ausreichen :)
if ActiveControl <> Sender then
begin ActiveControl := TWinControl(Sender); AllowChange := False; end else AllowChange := True;
Delphi-Quellcode:
if ActiveControl <> Sender then
ActiveControl := TWinControl(Sender); AllowChange := True; |
Re: Timingproblem mit OnChange und OnExit
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
Edit: Zitat:
Delphi-Quellcode:
if ActiveControl <> Sender then
begin AllowChange := False; ActiveControl := TWinControl(Sender); end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:53 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz