Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Prism Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung (https://www.delphipraxis.net/38710-applikation-xp-style-newbie-delphi-2005-net-anwendung.html)

CaptainMemo 23. Jan 2005 11:11


Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung
 
Hallo Leute,

ich bin neu in Delphi 2005 und habe heute mal mit einer Winform angefangen. Leider kriege ich es nicht hin, das diese im XP-Style angezeigt wird. Bei Delphi7 ging es über'S manifest. Wie geht das bei Delphi 2005 .NET?

Gruss Ingo

Alexander 23. Jan 2005 11:21

Re: Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung
 
Sollte einfach so funktionieren:
Delphi-Quellcode:
  Application.EnableVisualStyles

CaptainMemo 23. Jan 2005 11:28

Re: Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung
 
Danke für den Tip,
hab es mal eingebunden, klappt leider nicht...
Die Buttons, etc. sehen immer noch so aus wie ohne XP-Styles.

Gruss Ingo

CalganX 23. Jan 2005 11:40

Re: Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung
 
Hi,
ich weiß nicht, ob es einen Unterschied gibt, ob du das mit der VCL.net oder mit WinForms arbeitest. Bei letzterem geht es so, wie Alexander bereits gepostet hast.
Genaueres findest du btw. hier.

Chris

CaptainMemo 23. Jan 2005 11:53

Re: Applikation XP-Style (Newbie) Delphi 2005 .net Anwendung
 
Hi, danke nochmal...
Ich hatte Application.EnableVisualStyles(); im Projekt Quelltext eingefügt (geht übrigens auch).

Allerdings muss man bei den Komponenten (z.B. Button/Checkbox) noch den Flatstyle von "Standard" auf "System" ändern, sonst ändern die ihr Layout nicht.

Ingo


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:55 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