Недавно добавленные исходники

•  DeLiKaTeS Tetris (Тетрис)  4 648

•  TDictionary Custom Sort  6 651

•  Fast Watermark Sources  6 432

•  3D Designer  9 370

•  Sik Screen Capture  6 758

•  Patch Maker  7 152

•  Айболит (remote control)  7 162

•  ListBox Drag & Drop  6 014

•  Доска для игры Реверси  97 611

•  Графические эффекты  7 343

•  Рисование по маске  6 631

•  Перетаскивание изображений  5 499

•  Canvas Drawing  5 883

•  Рисование Луны  5 606

•  Поворот изображения  5 110

•  Рисование стержней  3 683

•  Paint on Shape  2 913

•  Генератор кроссвордов  3 810

•  Головоломка Paletto  3 062

•  Теорема Монжа об окружностях  3 866

•  Пазл Numbrix  2 547

•  Заборы и коммивояжеры  3 265

•  Игра HIP  2 237

•  Игра Go (Го)  2 171

•  Симулятор лифта  2 549

•  Программа укладки плитки  2 186

•  Генератор лабиринта  2 686

•  Проверка числового ввода  2 331

•  HEX View  2 667

•  Физический маятник  2 302

 
скрыть

Скрыть свойства в IDE



Оформил: DeeCo

unit HideAboutProps;

 // Declare a Property-Category-Class 
// Eine Eigenschaftskategorie-Klasse deklarieren 

type
   TAboutPropCategory = class(TPropertyCategory)
     // Give it a name and a description 
    // Namen und Beschreibung vergeben 
    class function Name: string; override;
     class function Description: string; override;
   end;

 procedure Register;

 implementation

 // Register this new Property Category in the Delphi-IDE 
// Diese neue Eigenschaftskategory in Delphi registrieren 
procedure Register;
 begin
   RegisterPropertyInCathegory(TAboutPropCategory, 'About');
 end;

 // Implementation of the two class functions from above 
// Den beiden Klasse-Funktionen noch eine Implementation geben 
class function TAboutPropCategory.Name: string;
 begin
   Result := 'About';
 end;

 class function TAboutPropCategory.Description: string;
 begin
   // As you want it ... 
  Result := 'Gives information about the author.';
   // Wie man's mochte ... 
  Result := 'Enthalt Informationen uber den Autor.';
 end;

 // To use this new category, you only have to include this unit in a package and recompile it. 
// If you want, you now can hide all properties called 'About' from being displayed 
// in the object inspector. 


// Um diese neue Kategorie zu nutzen, muss man die Unit nur in ein Package einbinden 
// und dieses danach neu compilieren. 
// Wenn man mochte, kann man nun alle Eigenschaften, die 'About' hei?en, verbergen.