Autor Beitrag
Experience1986
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: Mi 08.12.04 12:26 
Hi,

ich stehe momentan vor einem großen Problem. Ich habe nette bunte Icons für mein Programm erstellt. Das Problem ist nun wenn ich mein Programm unter Windows 98, Me oder 2000 ausführe haben diese Icons einen schwarzen Rand. Ich könnte natürlich jeweils für das entsprechende Sysdtem die Icons erstellen nur müsste ich dann wissen, wie ich die "Icon verträglichkeit" abfragen muss.

Habt ihr eine Lösung für das Problem?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 08.12.04 13:52 
Ganz einfach: frag doch einfach ab, ob das aktuelle Betriebssystem Windows XP ist. Hier Code aus meinem neuen Projekt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
function OSIsXP: Boolean;
var
  ovi: TOSVersionInfo;
begin
  Result := false;
  ovi.dwOSVersionInfoSize := Sizeof(ovi);
  GetVersionEx(ovi);
  if (ovi.dwMajorVersion = 5) and (ovi.dwMinorVersion = 1) then
    Result := true;
end;


//EDIT: eventuelle Anpassung: >=5 um Versionen über Windows XP auch zu unterstützen

AXMD
Experience1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: Do 09.12.04 10:59 
Wer ich mal testen, wobei ich mit der abfrage von MajorVersion oft schon ungenauigkeiten hatte, in so fern das mir win 98 etwas anderes liefert als andere Systeme...
hardy1234
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16

Windows XP pro/ SuSe LINUX 9.2
Delphi7 enterprise/ Kylix3 prof
BeitragVerfasst: Sa 11.12.04 22:13 
Machs dir einfacher und benutz gleich png-bildchen. Zum einen sind die Lizensfrei, zum anderen verdaut die Delphi genauso wie Kylix unter Linux. Mehr Farben können sie auch noch ab und sind im ganzen Netz übetragbar.
Experience1986 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 192

Win XP Pro SP2
Delphi 7
BeitragVerfasst: Mo 13.12.04 13:11 
ja, aber ich brauche doch windows .ico dateien.