Autor Beitrag
Linuxonkel
Hält's aus hier
Beiträge: 4



BeitragVerfasst: So 29.10.06 14:30 
Hallo Leute. Ich erstelle unter Delphi 6 meine eigenen Komponenten die ich in der Palettenseite dann einbinde.
Wenn ich TPanel als Komponente erstelle, dann ist es als Panel sichtbar. Wie kann ich es Bildlich verändern. So wie zum Beispiel unter Standard das Label als ein großes "A".
Gruß
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 29.10.06 14:34 
In dem du das Bild in der Ressource änderst.

_________________
Markus Kinzler.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 29.10.06 14:36 
Indem du eine .dcr Resource erstellst, die außer der Endung den gleichen Dateinamen wie die .pas Datei der Komponente hat. Darin erstellst du eine Bitmap, die den Namen der Komponente hat.
Das geht beides beispielsweise mit dem Delphi-Bildeditor.
Öffne einfach mal mit dem Bildeditor eine .dcr Datei einer anderen Komponente (z.B. einer aus dem Internet), dann siehst du das.
Linuxonkel Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: So 29.10.06 14:36 
Wie und Wo. Ich hänge jetzt voll auf dem Schlauch?
Muß ich es in der Programmierung bekannt geben oder manuell aus Delphi?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 29.10.06 14:40 
Gar nicht in Delphi! Nimm den Bildeditor von Delphi, der ist im Startmenü im Delphi-Ordner.