|
RightClick menus and shortcut will enable you, the programmer, to control the browser menus and shortcuts. This chapter is based on the TEmbeddedWB OnShowContextMenu
Using the TEmbeddedWB property editor, or by code, you can remove unwanted menu's, items in the sub menu's and even right click shortcuts.
You should remember, there are several different menu's on each item kind (like on document, image, on controls and so on).
Our package contain a demo that can show you how easy it is to manipulate the menu's.
Simple example of how to disable menus:
procedure TForm1.ResetEmbeddedWBMenus();
begin // Set false the unwanted menu.
EmbeddedWB1.RightClickMenu.DIsableAllMenus := true;
EmbeddedWB1.RightClickMenu.DefaultMenu := true;
EmbeddedWB1.RightClickMenu.ImageMenu := true;
EmbeddedWB1.RightClickMenu.ControlMenu := true;
EmbeddedWB1.RightClickMenu.TableMenu := true;
EmbeddedWB1.RightClickMenu.SelTextMenu := true;
EmbeddedWB1.RightClickMenu.AnchorMenu := true;
EmbeddedWB1.RightClickMenu.UnKnownMenu := true;
EmbeddedWB1.RightClickMenu.ImgDynSrcMenu := true;
EmbeddedWB1.RightClickMenu.ImageArtMenu := true;
end;
Simple example of how to disable menus items:
procedure TForm1.MenusItems();
begin // Set false the unwanted menu item.
EmbeddedWB1.RightClickShortCuts.DisableViewSource:= true;
EmbeddedWB1.RightClickShortCuts.DisableOpenLink:=true;
end;
Simple example of how to disable Shortcuts:
procedure TForm1.MenusItems();
begin // Set false the unwanted menu item.
EmbeddedWB1.ShortCuts.DisableCTRL_N:= true;//Open new window shortcut
end;
|