AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Sonstige Fragen zu Delphi Delphi OnChange Ereigniss in eine Combobox/Listbox legen
Thema durchsuchen
Ansicht
Themen-Optionen

OnChange Ereigniss in eine Combobox/Listbox legen

Offene Frage von "Roefe68"
Ein Thema von Roefe68 · begonnen am 22. Mai 2008 · letzter Beitrag vom 23. Mai 2008
Antwort Antwort
Seite 2 von 2     12   
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#11

Re: OnChange Ereigniss in eine Combobox/Listbox legen

  Alt 23. Mai 2008, 05:36
Genau das meinte ich
Markus Kinzler
  Mit Zitat antworten Zitat
Roefe68

Registriert seit: 12. Feb 2008
15 Beiträge
 
Delphi 2010 Enterprise
 
#12

Re: OnChange Ereigniss in eine Combobox/Listbox legen

  Alt 23. Mai 2008, 19:33
Jetzt habe ich es so wie ich es wollte.
Hier die procedure:

Delphi-Quellcode:
procedure TForm1.Erzeuge_Editfeld(iPositionLinks,
                                  iPositionOben,
                                  iBreite,
                                  iEreignis_OnChange,
                                  iEreignis_OnKeyPress :integer;
                                  sKompName,
                                  sKompLabel,
                                  sKompText :String;
                                  bVerschiebbar,
                                  bSichtbar,
                                  bAktiv :boolean;
                                  ParentForm :TWinControl);

begin
  try
    Edit_Array[AktuellesDynamischesEditfeld] := TEdit.Create(self);
    with Edit_Array[AktuellesDynamischesEditfeld] do
    begin
      Parent := ParentForm;
      Name :='Edit_'+sKompName;
      Left := iPositionLinks+150;
      Top := iPositionOben;
      //OnChange Event
      case iEreignis_OnChange of
        0: OnChange := Suchfeld_OnChange;
        1: OnChange := Provider_OnChange;
        else OnKeyPress := nil;
      end;
      //OnKeyPress Event
      case iEreignis_OnKeyPress of
        0: OnKeyPress := Suchfeld_Integer_OnKeyPress;
        1: OnKeyPress := Suchfeld_Float_OnKeyPress;
        2: OnKeyPress := Suchfeld_AlphaNum_OnKeyPress;
        else OnKeyPress := nil;
      end;
      OnMouseMove := Komponente_OnMouseMove;
      Color := clWhite;
      Text := sKompText;
      Visible := bSichtbar;
      Enabled := bAktiv;
      Width := iBreite;
    end;
    //ListBox_DynFelder.AddItem(Name,Edit_Array[AktuellesDynamischesEditfeld]);
    inc(AktuellesDynamischesEditfeld);

    //Label zur Komponente erzeugen
    Erzeuge_Label(iPositionLinks,iPositionOben,iBreite,sKompName,sKompLabel,true,true,true,ParentForm);

    except
    on E: Exception do
    begin
      LogException( 'Erzeuge_Editfeld: ', E );
    end;
  end; {try}
end;
Allen Vielen Dank
RWP
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


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 03:39 Uhr.
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