AGB  ·  Datenschutz  ·  Impressum  







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

Property-Editor

Offene Frage von "cYaONE"
Ein Thema von cYaONE · begonnen am 31. Jul 2003 · letzter Beitrag vom 1. Aug 2003
 
cYaONE

Registriert seit: 18. Mai 2003
Ort: Sand am Main
192 Beiträge
 
Delphi 7 Personal
 
#10

Re: Property-Editor

  Alt 31. Jul 2003, 20:05
Jipi! Endlich funktioniert es!
Aber wie kann ich jetzt einen String Editor öffnen lassen und diese Strings in ein TStrings-Objekt schreiben/daraus lesen?

Hier nochmal der komplette Code:

Delphi-Quellcode:
unit uTestComp;

interface

uses
  SysUtils, Classes, Controls, Dialogs, DesignIntf, DesignEditors;

type
  TAboutXPListBox = class(TPropertyEditor)
  Public
    procedure Edit; override;
    function GetAttributes: TPropertyAttributes; override;
    function GetValue: string; override;
  end;
  TXPListBox = class(TCustomControl)
  private
    fAbout: TAboutXPListBox;
  published
    property About: TAboutXPListBox read fAbout write fAbout;
  end;

procedure Register;

implementation

procedure Register;
begin
  RegisterPropertyEditor(TypeInfo(TAboutXPListBox), TXPListBox, 'ABOUT', TAboutXPListBox);
    RegisterComponents('cYaONE', [TXPListBox]);

end;


procedure TAboutXPListBox.Edit;
begin
//Aboutdialog anzeigen
MessageDlg('Huhu das ein Info - Dialog',mtInformation, [mbOK], 0);
end;

function TAboutXPListBox.GetAttributes: TPropertyAttributes;
begin
Result := [paDialog, paReadOnly];
end;

function TAboutXPListBox.GetValue: string;
begin
Result := '(Info)';
end;


end.
  Mit Zitat antworten Zitat
 


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:36 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