blackbirdXXX - Sa 21.02.04 17:32
Titel: Popupmenü von TMozillaBrowser ändern
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:
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?