Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: hyperlink problem in a ActionMenu

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98681] Re: hyperlink problem in a ActionMenu
  • From: ragfield <ragfield at gmail.com>
  • Date: Thu, 16 Apr 2009 04:14:07 -0400 (EDT)
  • References: <gs47n0$7qm$1@smc.vnet.net>

On Apr 15, 4:00 am, meitnik <meit... at gmail.com> wrote:
> hi,
>
> Way does this ActionMenu fail to work:
>
> ActionMenu["help",
> {"Plotwww" :>  Hyperlink[ "http://reference.wolfram.com/mathematica/
> ref/Hyperlink.html"],
>   "PlotLocal" :> Hyperlink["paclet:ref/Plot"]}]
>
> Nothing happens when I select the menuitems. What is missing in my
> code to get it to work?? Thanks.

When the action menu item is selected that item's action is
performed.  Hyperlink[] does not itself open the hyperlink.  Hyperlink
evaluates to an expression which, when typset in the Mathematica user
interface, gives the visual appearance of a hyperlink and which, when
clicked, performs the action of opening the hyperlink.  What you're
looking for is the code which Hyperlink[] uses to perform its action.
Try this instead:

ActionMenu["help", {"Plotwww" :>
   SystemOpen[
    "http://reference.wolfram.com/mathematica/ref/Hyperlink.html";],
  "PlotLocal" :> Documentation`HelpLookup["paclet:ref/Plot"]}]

-Rob


  • Prev by Date: Re: Plotting a x,y,z function
  • Next by Date: Strange Output!!!Please help me thank you.
  • Previous by thread: Re: hyperlink problem in a ActionMenu
  • Next by thread: Simplify