Tag Info

Hot answers tagged

5

As of version 9, MenuItem now takes the Method option, similarly to Dynamic and Button. Which means that you can make it a "Queued" evaluation. To demonstrate: FrontEndExecute[ FrontEnd`AddMenuCommands[ "Open", {MenuItem["Delayed New", System`KernelExecute[Pause[10]; NotebookCreate[]], System`MenuEvaluator -> Automatic]}]] Here we have a ...


5

EDIT As rasher observes my answer does not answer your direct question. Tooltip wrapper does not appear to work for ListPicker items. I posted this answer in the event it achieves your aim or motivates your own answer. I am not certain what your ultimate aim is. I have modified your code (esp. avoid uppercase variable names to avoid conflicts with ...


5

Something like this might help: SetOptions[EvaluationNotebook[],DockedCells-> Cell[BoxData[ToBoxes[DynamicModule[{m=1},Panel[Slider[ Dynamic[m,SetOptions[EvaluationNotebook[],Magnification->(m=#)]&],{0.5,2.0}], "Magnification"]]]],"DockedCell"]] It puts a magnification control into a docked cell at the top of the notebook window.


5

You cannot directly do that from the Window > Zoom menu option. However, you can use the following to zoom selections at other magnification levels. The following code creates a palette that lets you magnify a selection in your notebook between 50% to 300% in steps of 10. DynamicModule[{zoom = 1}, CreatePalette[Column@{ "Custom zoom", ...


5

Since you reference the Window > Magnification menu I think you are describing zoom for the entire Notebook. You can set magnification in 10% increments by holding Ctrl and rolling the mouse wheel up or down. By first setting the Magnification to 125% you get 115%, 135% etc, and you can therefore select magnification down to 5% granularity very ...


4

You want to use PopupMenu: PopupMenu[a, {a, b, c, d}] Note, if you want it to be dynamically linked to a variable, use: PopupMenu[Dynamic[x], {a, b, c, d}] Then, x takes the value given by the drop down menu:


3

Solution: Murta 16 mins ago: I have this same problem on Win Machine in the company I work with MMA 9. Alt+/ do not work. One curiosity, are you admin in this machine? In my home windows I have no problem with Alt+/ in MMA 9. One detail that is different, my menu works, just shortcuts no. @Murta: I confirm that launching Mathematica 9 as ...


2

Here's a guess at what you're after, although I think b and c are switched. a = "Algebraicas"; b = "Trigonometricas"; c = "Tercer Grado"; y = w + 1; Manipulate[ Plot[selection, {x, -5, 5}], {type, {a, b, c}, ControlType -> PopupMenu}, {selection, Dynamic[type /. {a -> {Sqrt[x] -> TraditionalForm[Sqrt[x]], x^2}, b -> ...


2

Please try using this: FrontEndExecute[ FrontEnd`AddMenuCommands[ "MenuListQuitEvaluators", {MenuItem["AddMenu &Quit", "EvaluatorQuit", MenuKey["q", Modifiers -> {"Control"}], System`MenuEvaluator -> Automatic]}]] For version 10.0.0 under Windows using the menu item added by this does not crash the front end.


1

Mathematica ships with it's own Qt libraries. Consider replacing them with the system libraries, then it probabily fits nicely into the Ubuntu layout. This guide will probabily also workk with newer Mathematica versions: http://homepage.uibk.ac.at/~c705283/archives/2010/03/29/mathematica_7_qt_style/index.html



Only top voted, non community-wiki answers of a minimum length are eligible