Autor Beitrag
NCortex
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 126

WIN 2000
D7 Enterprise
BeitragVerfasst: Do 12.05.05 15:21 
hi leute,

wenn mein Programm auf einem Rechner mit XPstyle ausgeführt wird, dann wird auch dieses in Xpstly dargestellt, obwohl ich gar kein XPman drauf habe? kann man das irgendwie abstellen.

Ich hab schon hier im forum gesucht aber alles was ich finde ist um den XPStyle einzustellen(keine ahnung wie man sowas abartiges überhaupt wollen kann.. )

ich kann fragen ob jemand XP hat, aber das nutzt mir ja nicht.. oder gibt es eine abfrage, die sagt ob der XPstyle eingeschaltet ist, weil ich müsste dementsprechend die komponennten anpassen....

vielen dank im voraus

_________________
"...by all means, do not use a hammer." (aus einer IBM Technikerdokumentation ca. 1920)
--->außer es kam von Microsoft<---
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Do 12.05.05 15:39 
Nur die Form ist ist im XP-Style, nicht die Komponenten darauf, oder?

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
NCortex Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 126

WIN 2000
D7 Enterprise
BeitragVerfasst: Do 12.05.05 15:43 
ganz ehrlich?

ich habe keine ahnung!

ich aktivier mal XPdesgin und schau mal nach.. spielt das ne Rolle?

_________________
"...by all means, do not use a hammer." (aus einer IBM Technikerdokumentation ca. 1920)
--->außer es kam von Microsoft<---
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Do 12.05.05 19:01 
sobald du xpman auf die form ziehst ist das xpstyle für die anwendung eingeschaltet
auch wenn du die komponente von der form entfertst

um das rückgängig zu machen musst du die XPMan aus der uses-liste entfernen.
am design der form selbst ändert xpman nichts. wirkt sich, wie oben geschriegen, nur auf die visuellen komponenten aus
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Do 12.05.05 19:28 
Was verstehst du unter X-Style? Die Leiste oben, wird von Windows gezeichnet, die kannst'de mit Borderstyle := bsnone ganz weg machen. Die Kompos sind ohne XPMan im Normalstil.
NCortex Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 126

WIN 2000
D7 Enterprise
BeitragVerfasst: Mi 18.05.05 08:08 
ich hab resize so angepasst, dass meine Elemente automatisch an die richtigen stellen geschoben werden. Natürlich passt das nicht mehr, wenn dieser doofe blaue Balken da oben drin ist und 5 pixel zu viel wegnimmt... Kann ich das denn irgendwie überprüfen, welcher Style benutzt wird?

_________________
"...by all means, do not use a hammer." (aus einer IBM Technikerdokumentation ca. 1920)
--->außer es kam von Microsoft<---
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 18.05.05 12:20 
Zitat:
doofe blaue Balken da oben

Meinst du den Balken von Windows?
Ich hba deien Oberen Beitrg nicht ganz kapiert.
Lossy eX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1048
Erhaltene Danke: 4



BeitragVerfasst: Mi 18.05.05 13:26 
Ich glaube ich habe eie Ahnung was du meinst. Und wenn ich es richtig verstanden habe, dann kann das Problem auch bei Windows 2000 auftreten. Du müsstest dann lediglich in der Darstellung eine größere Titelleiste und oder Rand auswählen. Das kann man sehr einfach berechnen.

ausblenden Delphi-Quelltext
1:
2:
 Border := (Form1.Width - Form1.ClientWidth) div 2;
 Title := Form1.Width - Form1.ClientWidth - Border * 2;


Das kannst du dann in deine Berechnungen mit einfließen lassen. Allerdings solltest du um deine Elemente zu positionieren generell nur mit ClientWidth und ClientHeight arbeiten.

_________________
Nur die Menschheit ist arrogant genug, um zu glauben sie sei die einzige intelligente Lebensform im All. Wo nicht mal das nachhaltig bewiesen wurde.