Skip to main content
added 36 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
  • obj as far as I can tell is a NotebookObject, CellObject, or BoxObject, but you can also get the current spec from from FE`Evaluate@FEPrivate`Self[]
  • The id searches for BoxID->id. It can also be FE`Parent[id]. I don't know what that does.
  • The offset should look like FE`BoxChild[n] or FE`BoxParent[n].
  • The only SearchStart values I've seen used isare "StartFromBeginning" and "StartFromFirstDockedCell".
  • obj as far as I can tell is a NotebookObject, CellObject, or BoxObject, but you can also get the current spec from from FE`Evaluate@FEPrivate`Self[]
  • The id searches for BoxID->id. It can also be FE`Parent[id]. I don't know what that does.
  • The offset should look like FE`BoxChild[n] or FE`BoxParent[n].
  • The only SearchStart I've seen used is "StartFromBeginning".
  • obj as far as I can tell is a NotebookObject, CellObject, or BoxObject, but you can also get the current spec from from FE`Evaluate@FEPrivate`Self[]
  • The id searches for BoxID->id. It can also be FE`Parent[id]. I don't know what that does.
  • The offset should look like FE`BoxChild[n] or FE`BoxParent[n].
  • The only SearchStart values I've seen are "StartFromBeginning" and "StartFromFirstDockedCell".
added 454 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251

##Cell Groups

###SetCellGroupOpen

In the "FEPrivate`" context. Allows one to set the open/close state of a cell group. Called like:

MathLink`CallFrontEnd@ FrontEnd`Value@ FEPrivate`SetCellGroupOpen[ cell, Open|Close|True|False ] 

Open/True and Close/False are the same thing.

Any other spec will return $Failed (which prevents it from being used to set up Dynamic open/closers)


##Cell Groups

###SetCellGroupOpen

In the "FEPrivate`" context. Allows one to set the open/close state of a cell group. Called like:

MathLink`CallFrontEnd@ FrontEnd`Value@ FEPrivate`SetCellGroupOpen[ cell, Open|Close|True|False ] 

Open/True and Close/False are the same thing.

Any other spec will return $Failed (which prevents it from being used to set up Dynamic open/closers)


added 2 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
FrontEndExecute@ FrontEnd`AttachCell[obj: (_CellObject | _BoxObject | _NotebookObject), cellExpr_, { radialDistanceFromAnchor: (_Integer | _Scaled | InlineContents"InlineContents"), alignment: {Center | Left | Right, Center | Bottom | Top } | "EndOfContents" }, anchor: { Center | Left | Right | _Scaled | _Integer | _Real | Baseline, Center | Bottom | Top | _Scaled | _Integer | _Real | Baseline }, "ClosingActions"-> { ( "ParentChanged" | "EvaluatorQuit" | "OutsideMouseClick" | "SelectionDeparture" | "MouseExit"| "CellGroupOpened"| "CellGroupClosed" ) ... } ] 
FrontEndExecute@ FrontEnd`AttachCell[obj: (_CellObject | _BoxObject | _NotebookObject), cellExpr_, { radialDistanceFromAnchor: (_Integer | _Scaled | InlineContents), alignment: {Center | Left | Right, Center | Bottom | Top } | "EndOfContents" }, anchor: { Center | Left | Right | _Scaled | _Integer | _Real | Baseline, Center | Bottom | Top | _Scaled | _Integer | _Real | Baseline }, "ClosingActions"-> { ( "ParentChanged" | "EvaluatorQuit" | "OutsideMouseClick" | "SelectionDeparture" | "MouseExit"| "CellGroupOpened"| "CellGroupClosed" ) ... } ] 
FrontEndExecute@ FrontEnd`AttachCell[obj: (_CellObject | _BoxObject | _NotebookObject), cellExpr_, { radialDistanceFromAnchor: (_Integer | _Scaled | "InlineContents"), alignment: {Center | Left | Right, Center | Bottom | Top } | "EndOfContents" }, anchor: { Center | Left | Right | _Scaled | _Integer | _Real | Baseline, Center | Bottom | Top | _Scaled | _Integer | _Real | Baseline }, "ClosingActions"-> { ( "ParentChanged" | "EvaluatorQuit" | "OutsideMouseClick" | "SelectionDeparture" | "MouseExit"| "CellGroupOpened"| "CellGroupClosed" ) ... } ] 
added 157 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 19 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 79 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 429 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
deleted 10 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 618 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 888 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 772 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 114 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 675 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 329 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added FindFileOnPath
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 311 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 158 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 213 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
Extended answer
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 1388 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 519 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link
Loading
added 1516 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
Added more
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading
added 108 characters in body
Source Link
b3m2a1
  • 48k
  • 3
  • 98
  • 251
Loading