![]() |
Re: Parent herausfinden
Zitat:
|
Re: Parent herausfinden
Also ich habs jetzt anders gemacht... Ob das jetzt so schön ist sei mal dahingestellt aber ich finds besser als direkt alles neuzuschreiben...
Delphi-Quellcode:
So hab ich mir jetzt die richtige Form und das DXDraw besorgt :mrgreen:
procedure TDXButton.SetModOptions;
var i,j: Integer; begin for i:= 0 to Application.ComponentCount-1 do begin if Application.Components[i].ClassParent = TForm then begin for j:=0 to Application.Components[i].ComponentCount-1 do begin if Application.Components[i].Components[j].ClassType = TDXDraw then begin FDXDraw := TDXDraw(Application.Components[i].Components[j]); FForm := TForm(Application.Components[i]); if FForm.BorderStyle <> bsNone then FFormHasBorder := true; exit; end; // if ClassType = TDXDraw end; // for j end; // if ClassParent = TForm end; // for i end; Gruß Neutral General |
Re: Parent herausfinden
Ääähm............ kreativ :mrgreen: .
Mal im Ernst, mit einer guten Klassenhierarchie sollte so etwas kein Problem sein. |
Re: Parent herausfinden
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:38 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