Advertisement
Guest User

Untitled

a guest
Aug 7th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. gra = HoldForm[Graphics[{Circle[]},ImageSize->{100,Automatic}]];
  2. (* gra /. Hyperlink[a_, _] -> a *)
  3. graOutput = ReleaseHold[gra];
  4. (*Might be used to toggle hyperlinks.*)
  5. graToggle = True;
  6. Print[Button["Disable/Enable Hyperlinks",
  7. SelectionMove[InputNotebook[], All, Cell];
  8. Print[
  9. ToExpression[
  10. Apply[InputForm,
  11. MakeExpression[First[NotebookRead[nb]],
  12. StandardForm]]]];]
  13. Button["Edit Hyperlink For Object",
  14. shape = NotebookRead[SelectedNotebook[]];
  15. If[Head[shape] == GraphicsBox,
  16. MessageDialog["Unable to add Hyperlink to GraphicsBox"];
  17. Return[], Null] NotebookWrite[SelectedNotebook[],
  18. TagBox[shape,
  19. EventHandlerTag[{"MouseClicked" :>
  20. FrontEndExecute[{NotebookLocate[{URL[
  21. FindFile["./C# editor.nb"]], None}]}],
  22. PassEventsDown -> Automatic, PassEventsUp -> True}]]];]];
  23. Print[graOutput];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement