Autor Beitrag
Gahero
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 09:26 
So, jetzt klappt mein altes Projekt endlich unter Delphi 20005 PE, aber ich hab eine weitere Frage.
Ich habe im Moment das Windosdesign "Windows XP Silber". Aber in Delphi wird mein Programm noch im "Windows klassisch"
Design angezeigt. Kann man das irgendwie ändern, weil ich fände es besser direkt zu sehen, was ich mache und nicht andauernd das Prog starten zu müssen.
der Berliner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 417

Win Xp Home
delphi 2005
BeitragVerfasst: Mo 02.10.06 09:33 
Hallo, werf mal ein XPManifest auf die MainForm. ist bei den WIN32 Komponenten das Letzte.
Gruß

_________________
[b]Ich weiß nicht immer, wovon ich rede. Aber ich weiß, dass ich recht habe.[b]
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 10:00 
Und was bringt mir das Teil? Passiert nichts!

Also zum Verständnis:
Ich mein nicht, wenn ich dass programm starte, sondern während ich es bearbeite, will ich das Design schon haben!
proprogrammierer
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 43


Delphi 5, Delphi 2005
BeitragVerfasst: Mo 02.10.06 10:06 
Also das ist bei mir auch so, dass ich erst nach dem compilieren den XP-Look habe. Reicht mir aber auch. Ich wüsste nicht, wie es gehen könnte, dass man den XP-Look schon in der Entwichklungsumgebung hat...


bigup
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 10:09 
Schade! Wär ma eine gute Verbesserung. Jetzt muss ich halt so schauen und immer wieder neu starten.

Aber: Wenn ich die Farbe bei Delphi änder, wird die Farbe im programm selbst (also beim Ausführen) nicht geändert!!!
warum das???
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 02.10.06 11:24 
user profile iconGahero hat folgendes geschrieben:
Aber: Wenn ich die Farbe bei Delphi änder, wird die Farbe im programm selbst (also beim Ausführen) nicht geändert!!!
warum das???

auch das hatten wir schon zu genüge. Weil du ein Manifest benutzt. Und da werden eben die Steuerelement im Design der ausgewählten Theme gezeichnet.
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 11:28 
Ich benutze es ja nicht. ich habs ja wieder rausgenommen, weil es ja nichts gebracht hat!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mo 02.10.06 12:28 
Du musst auch XPMan aus den Uses rausnehmen.
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 13:07 
Ja ok das hab ich geht jetzt auch alles, aber gibt es keine Möglichkeit die farbe zu ändern, wenn XPMan drin ist?
ich würde nämlich gerne die Buttons und das andere Zeugs von Windows XP behalten (sieht besser aus)!
Kann man nicht einfach ein Panel oder so was ähnlich in der Größe der Form machen und das schwarz färben? Muss ich ma probieren!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mo 02.10.06 13:20 
Form Hintergrund lässt sich färben.
Für Panels ParentBackground auf false.
Suchfunktion benutzen.

MfG
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 13:22 
Endlich gehts!!!

Nur die Checkbox Schrift ist auch immer noch schwarz. Wie kriege ich das weg?
Hab schon ParentFont und -Color ausprobiert. Es bringt nichts!
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 15:02 
user profile iconGahero hat folgendes geschrieben:
Endlich gehts!!!

Nur die Checkbox Schrift ist auch immer noch schwarz. Wie kriege ich das weg?
Hab schon ParentFont und -Color ausprobiert. Es bringt nichts!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mo 02.10.06 15:11 
www.delphi-forum.de/....php?p=323634#323634
Wow, kann mich garnicht mehr dran erinnern das mal geschrieben zu haben.

MfG
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 15:16 
Ja, ok das hatte ich doch schon,aber ich viel ja den XP-Stil behalten...
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mo 02.10.06 15:17 
Ja dann benutzt du eben nicht den Caption der Checkbox sondern ein Label aus Beschriftung.
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 15:22 
:bawling: :x bei über 100 Checkboxen die Caption durch ein Label ersetzen!
Ich hab ja nichts besseres zu tun! (Ok, hab ich auch nicht^^)
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mo 02.10.06 15:34 
Dann erstell die Labels dynamisch zur Laufzeit mit einer Schleife.
So:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
procedure TForm1.FormCreate(Sender: TObject);
var
  i: Integer;
begin
  for i := 0 to Form1.ComponentCount-1 do
    if Form1.Components[i] is TCheckBox then
      with TLabel.Create(self) do
      begin
        Parent := Form1;
        Left := TCheckBox(Form1.Components[i]).Left+16;
        Top := TCheckBox(Form1.Components[i]).Top+2;
        Font := TCheckBox(Form1.Components[i]).Font;
        Caption := TCheckBox(Form1.Components[i]).Caption;
        TCheckBox(Form1.Components[i]).Caption := '';
      end;
end;


(Wehe du bist jetz nich zufrieden...)
Gahero Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 193

Win Vista HP 64bit
Delphi 2007 Pro
BeitragVerfasst: Mo 02.10.06 15:51 
Ne ne, ich bin jetzt zufrieden! Genau so wie es aussehen soll.
Bau ich noch die Schriftfarbe weiß ein und dann passt das!
Aber jetzt haben alle kästchen die selbe Caption! Das krieg ich raus!