Autor Beitrag
Thunder
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 04.01.04 00:07 
Moin,

Wie bekomme ich das TMainMenu in den Office-XP-Style???

Habe Delphi 6. Hab ma was im PC-Magazin für Delphi 7 gefunden. Funzt aber net unter Delphi 6.


Zuletzt bearbeitet von Thunder am So 04.01.04 20:49, insgesamt 1-mal bearbeitet
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 04.01.04 12:17 
schau dir mal diese komponente an: www.shagrouni.com/en...software/xpmenu.html

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Thunder Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 04.01.04 14:01 
danke. ich probiers aus :)
florian
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30

Win XP Home
D5 Enterprise
BeitragVerfasst: So 04.01.04 14:34 
meinst du den office xp oder den windows xp style?
windows xp geht nur übers manifest und wenn der user xp hat

_________________
"640Kb should be enough for anybody." Bill Gates (in den 80'ern)
Thunder Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 04.01.04 17:10 
nein den office xp-style.

hab n prob:

wenn ich XPMenu drin hab und ich mein proggi normal beende, kriege ich eine fehlermeldung...
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 04.01.04 18:12 
@florian: :? Hat er doch geschrieben, dass es um den Stil von Office XP geht.

@Thunder: Verrätst du auch, welche Fehlermeldung das ist?
DJ-DJ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Win 98; Win XP Home
Delphi 6 Personal
BeitragVerfasst: So 04.01.04 19:11 
Tach auch!
Also..ich hab mir das hier mal durchgelesen und auch diese Kompos runtergeladen... habe D5 und kann die ncht mal installieren, weil er da schon 1000 Fehler angibt.. aber immer total eigenartige wie
"end gefunden aber if erwartet"
nach einer abgeschlossenen procedure.
Hat da irgendjemand eine Ahnung, wie das zu stande kommt?

David
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 04.01.04 19:52 
lad dir mal ne ältere version runter

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Thunder Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 04.01.04 20:45 
Hier ma 2 Bilder von dem Fehler:
user defined image
user defined image

Wenn ich n neues Programm erstelle und n kleines TMainMenu einrichte und dann das XPMenu drauf, dann funzt es einbahnfrei. Nur bei meinem Proggi funzt es net, obwohl ich nix ungewöhnliches drauf habe, außer XP-Style über Manifest, woran es aber auch nich liegen kann (auch schon in nackter Anwendung getestet).

Hier ma Prozeduren mit besonderen Funktionen aus meinem Proggi die ich auch nich geschrieben habe:
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
//TrayIcon
procedure TForm1.WMTrayIcon; { Reagiert auf Mausaktionen }
var p : TPoint;
begin
  //SetForegroundWindow(Handle);
  if Message.LParam = WM_RBUTTONUP then begin
    GetCursorPos(p);
    PopupMenu1.Popup(p.x, p.y);
  end;
end;

//Benutzernamen ermitteln
function GetUserName: String;
var
  Buffer: Array[0..MAX_COMPUTERNAME_LENGTH+1] of Char;
  Size: DWORD;
begin
  size:=1024;
  Windows.GetUserName(Buffer, Size);
  Result:=StrPas(Buffer);
end;

//Dateieigenschaften anzeigen
procedure PropertiesDialog(filename:String);
var
  info: ShellExecuteInfo;
begin
  FillChar(info, SizeOf(info), 0);
  info.cbSize := SizeOf(info);
  info.fMask  := SEE_MASK_INVOKEIDLIST;
  info.lpVerb := 'properties';
  info.lpFile := PChar(filename);
  ShellExecuteEx(@info);
end;

//Hintergrund ändern
procedure SetBackground(const AFilename: String);
begin
  SystemParametersInfo(SPI_SETDESKWALLPAPER,
                       0,
                       pChar(AFilename),
                       SPIF_SENDCHANGE OR SPIF_UPDATEINIFILE);
End;

procedure CenterText(Cnv: TCanvas; Rect: TRect; S: string);
var
  X, Y: Integer;
begin
  X := (Rect.Right + Rect.Left - Cnv.TextWidth(S)) div 2;
  Y := (Rect.Bottom + Rect.Top - Cnv.TextHeight(S)) div 2;
  Cnv.TextOut(X, Y, S);
end;

procedure TForm1.ListBox2DrawItem(Control: TWinControl; Index: Integer;
  Rect: TRect; State: TOwnerDrawState);
var
  Bitmap: TBitmap;
begin
  with ListBox2 do
  begin
    Canvas.FillRect(Rect);
    if Items.Objects[Index] <> nil then
    begin
      Bitmap := Items.Objects[Index] as TBitmap;
      Canvas.BrushCopy(Bounds(Rect.Left + 2, Rect.Top + 2,
        Bitmap.Width, Bitmap.Height), Bitmap, Bounds(0, 0, Bitmap.Width,
        Bitmap.Height), Bitmap.Canvas.Pixels[0, Bitmap.Height - 1]);
    end;
    CenterText(Canvas, Rect, Items.Strings[Index]);
  end;
end;

Initialization
  mHandle:=CreateMutex(nil,True,'AutoHG');
  if GetLastError=ERROR_ALREADY_EXISTS then
    Halt;

finalization
  if mHandle<>0 then
    CloseHandle(mHandle)


Wo is der gottverdammte Fehler?? Ich habe 8 Formen mit 8 Units und XPMenu.Active wird durch eine Checkbox gesteuert.

Hab schon probiert, bei Form1.Destroy mit den Zeilen XPMenu.Free und XPMenu.Destroy und XPMenu.Active := False; aber nichts half.

Wo is der Fehler??

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
Thunder Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 04.01.04 23:56 
Ja schlag mir doch in de Fresse ich hab den Fehler.

Ich hab mich zwar an die Readme gehalten und XPMenu unter Delphi 6 erst zur Laufzeit unter Form1.Create aktiviert, hatte es aber trotzdem schon im Objekt Inspektor aktiviert (Active auf True). Das war der Fehler.

Ok.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 05.01.04 08:48 
Thunder hat folgendes geschrieben:
Ja schlag mir doch in de Fresse [...]

Mach doch selber -> :autsch:

:mrgreen:
DJ-DJ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Win 98; Win XP Home
Delphi 6 Personal
BeitragVerfasst: Mo 05.01.04 12:54 
Ja..damit wäre der eine Fehler geklärt...nur ich habe auch immer noch einen anderen Fehler...ich werd Auch mal ein paar Bilder davon reinstellen, vielleicht hilft das ja weiter, denn - wie gesagt - ich bekomme die Kompo noch net mal installiert, obwohl da steht die wären für DElphi 5 aufwärts und ich Delphi5 habe.

David
Thunder Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: Mo 05.01.04 13:09 
Is doch eigentlich ganz easy.

>Neue Komponente installieren > XPMenu.pas auswählen und installiern. Fertsch!
DJ-DJ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

Win 98; Win XP Home
Delphi 6 Personal
BeitragVerfasst: Di 06.01.04 08:17 
Ja nee..schon klar.. bin ja auch net doof. nur da sagt er mir schon den Fehler...er will die ja noch net insatllieren, weil "der Woellcode noch Fehler enthält"
Maggi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP, WIN 2003
D5 Enter D 2006
BeitragVerfasst: Di 06.01.04 10:46 
Hi,

eigentlich wollte ich mich zu diesem Thema nicht mehr in diesem Forum äußern :lol: , aber da DJ-JD....

Der Download bei dem Komponentenhersteller ist wirklich nicht ganz einwandfrei, hatte da auch zuerst Probleme mit. Habe dann aber nach längerem Suchen eine andere Downloadadresse gefunden, bei der das XPMenu funktioniert. Habe die hier im Forum glaube ich auch mal gepostet, kannst ja mal nach suchen. Ich würde sie dir auch gern nochmal mitteilen, habe sie aber verloren.

Gruß

Maggi

_________________
"Wir haben den Kontakt zur Realität verloren, aber die findet uns schon wieder"