Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Creating an application

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84462] Creating an application
  • From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
  • Date: Wed, 26 Dec 2007 05:07:32 -0500 (EST)

I just tried to do something that should easily be possible in Mathematica 
6. To teach myself about user interfaces in Mathematica 6 I have developed 
an application that presents itself to me as various panels / tabbed views / 
etc that live in a notebook, and which works very nicely. Now I would like 
to turn it into an application that I can run cleanly, with Mathematica 
silently doing its work in the background, and not cluttering up my screen 
with any window(s) other than the window that my application uses. To keep 
things simple, it would be enough for me to create such an application for 
my own personal use alone, so it is alright to assume that I have 
Mathematica installed on my computer.

For instance, if I build a simple "Hello World", then the notebook 
expression looks like this:

Notebook[{
Cell[BoxData[
 ButtonBox["\<\"Click Me\"\>",
  Appearance->Automatic,
  ButtonFrame->"DialogBox",
  ButtonFunction:>Print["Hello World"],
  Evaluator->Automatic,
  Method->"Preemptive"]], "Output",
 CellChangeTimes->{3.4076072169189997`*^9}]
},
WindowSize->{206, 152},
WindowMargins->{{44, Automatic}, {74, Automatic}},
FrontEndVersion->"6.0 for Microsoft Windows (32-bit) (June 19, \
2007)",
StyleDefinitions->"Default.nb"
]

When I paste this into Mathematica, save the resulting notebook, quit 
Mathematica, double-click the notebook I just saved, then it fires up 
Mathematica which then loads the notebook, and I am back in the usual 
Mathematica environment.

So my question is: How can one fix things so that Mathematica will run 
invisibly in support of an application, so that you couldn't even tell that 
the application was powered by Mathematica, for instance?

Stephen Luttrell
West Malvern, UK 



  • Prev by Date: Re: Re: Loading Packages in a loop
  • Next by Date: Re: Re: Re: how fill PolarPlot?
  • Previous by thread: How to change style of notebook permanently?
  • Next by thread: Re: Creating an application