Tag Info

Hot answers tagged

9

Update: Thanks to Simon Woods comment below, 3 more are added to list. Now total is 21. I could not find complete list in one place. Over the years, I collected them from here and there in the docs. Looked at my cheat sheet now and I only see the list. (I should have written the document pages where I got there but did not). This is what I have so far, 18 ...


5

I decided to create a repository of usually undocumented lists (or just a links to similar topics) of available options: AppearanceElements for Manipulate and friends MouseAppearance styles All Font families Events for EventHandler. AFAICT additional two that work: "MouseExited"/"MouseEntered" EventHandler and MenuItem: "Save", "HandleShiftReturn" ...


5

It turns out, after lots of poking around, that the fact that the cell is inline is not really the relevant thing. What is relevant is that each stylesheet has a property, LimitsPositioningTokens, that specifies which symbols should use the off-to-the-side limits positioning by default. For the Text style, that list includes all the usual things, including ...


5

You might use Row. For example: Manipulate[{u, v}, Row[{Control[{u, 0, 6}], Control[{v, 10, 20}]}, Spacer[10]]]


4

This Answer is based upon Kuba's comment above regarding two InputFields, so credit should go to him for the idea, this is just an implementation. However, the problem interested me because I have a similar issue to solve regarding entering units into answers, and this question and Kuba's comment made me think of a related solution to that. One can use ...


4

This is different but you may find it useful. The second line will be evaluated in place code with panel, just Ctrl+9 to create an inline cell and type: select this and evaluate in place with Ctrl+Shift+Enter


3

It is quite unclear where that element is, so maybe this approach will fit you needs: progress := Clock[1, 1, 1]; nb = CreatePalette[DynamicWrapper[ ProgressIndicator@Dynamic@progress, If[progress == 1, NotebookClose@nb], UpdateInterval -> 1] ]


3

Let's just not draw it if the progress goal is achieved: Dynamic[ x = Clock[3]; If[x < 1, ProgressIndicator[x], Sequence[] ] ] Sequence can be "" or whatever is appropriate in your application.


2

The nested single-element GridBoxes make it likely that this format was generated by code. In fact, the inline cell expression matches exactly that generated by the Equal Symbol Aligned Math Cell from the Writing Assistant palette (in V9, at least):


1

The way you want to Export data depends on your tastes and what you plan to do with the XLS file afterwards. But as belisarius said Export is your friend: rawdata = WeatherData["WMO44207", "Temperature", {{2013}, {2013}}] Export["your/Path/rawdata.xls", rawdata, "XLS"] If you want to Export rawdata after making some Mathematica operations on it (e.g. ...


1

Let's try such code: trig = True; pi = Dynamic[If[trig, ProgressIndicator[0.5], ""]]; pi If trig is True, then ProgressIndicator is visible, otherwise it is not.. Playing with value of trig you can dynamically change the state of any visible elements.


1

This accepts a plain number or "E" format or "*^" notation.. ClearAll["Global`*"]; SetAttributes[sciInput, HoldFirst]; inst[numstring_] := InputField[numstring, String, FieldSize -> {20, 1}, FieldHint -> "enter a number"]; sciInput[result_] := DynamicModule[{sig, nn}, ...


1

There are some options to Button that let you change the way a button looks. For example, Appearance and BaseStyle. Also, you can use a Graphics object as the button label, which will give you a lot of control over appearance. See Button for more detail. In particular, look at Option > Neat Examples.



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