AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

ComponentCount

Ein Thema von XXcD · begonnen am 16. Aug 2008 · letzter Beitrag vom 17. Aug 2008
Antwort Antwort
omata

Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
 
Delphi 7 Enterprise
 
#1

Re: ComponentCount

  Alt 16. Aug 2008, 22:40
Oder du sammelst dir die Elemente selber zusammen...
Delphi-Quellcode:
type
  TResult = array of TObject;

:
:

function TForm1.GetScrollboxElemente(Scrollbox: TScrollbox): TResult;
var i:integer;
    Component:TComponent;
begin
  setlength(Result, 0);
  for i:=1 to Self.ComponentCount do begin
    Component:=Self.Components[i-1];
    if Component is TWinControl then
      if (Component as TWinControl).Parent = Scrollbox then begin
        setlength(Result, length(Result)+1);
        Result[high(Result)]:=Component;
      end;
  end;
end;
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:15 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