Autor Beitrag
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Sa 21.02.04 17:32 
Ich kann das Popupmenü von TMozillaBrowser ändern. Das geht normal per ObjektInspektor.
Da es allerdings immer noch genug IE User gibt erzeuge ich entweder TMozillaBrowser oder Webbrowser:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
 if browser = 'gecko' then
  begin
   plugin := TMozillaBrowser.Create(brwin);
   TMozillaBrowser(plugin).Left := 2;
   TMozillaBrowser(plugin).Top := 2;
   TMozillaBrowser(plugin).Width := brwin.Width - 4;
   TMozillaBrowser(plugin).Height := brwin.Height - 4;
   TMozillaBrowser(plugin).ParentWindow := brwin.Handle;
  end;
 if browser = 'iexplore' then
  begin
   plugin := TWebBrowser.Create(brwin);
   TMozillaBrowser(plugin).Left := 2;
   TMozillaBrowser(plugin).Top := 2;
   TMozillaBrowser(plugin).Width := brwin.Width - 4;
   TMozillaBrowser(plugin).Height := brwin.Height - 4;
   TMozillaBrowser(plugin).ParentWindow := brwin.Handle;
   TWebBrowser(plugin).ParentWindow := brwin.Handle;
  end;


Soweit so gut. Er nimmt aber TMozillaBrowser(plugin).PopupMenu := popupmenu1; nicht.
Ich hab keine Ahnung warum. Ist mir nicht verständlich.
Kann mir jemand sagen wie es trotzdem geht?

_________________
Klein, schwarz und ärgert Techniker? Jumper!