Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in answers/comments here:

  • As per this commentthis comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
Rollback to Revision 9
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in other answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
  • This answer by kguler:

     "ImageSize" 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in other answers/comments:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
  • This answer by kguler:

     "ImageSize" 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
added 105 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in other answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
  • This answer by kguler:

     "ImageSize" 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in answers/comments here:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 

CurrentValue can be used to poll the state of numerous system values such as the mouse position. Its help page doesn't list all possible items, though. An item like "TooltipFontFamily" isn't listed but it works nevertheless:

In[49]:= CurrentValue["TooltipFontFamily"] Out[49]= "Segoe UI" 

My question is: where can I find a (more) complete list of items that can be used with CurrentValue. Or, alternatively, how could I programmatically generate such a list?


EDIT

Based on John Fultz' answer I wrote the following:

Union[ Flatten[ Cases[ Import[#], HoldPattern[CurrentValue[a_]] :> a, Infinity ] & /@ FileNames[#] & /@ { FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "StyleSheets", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "*.nb"}], FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "*.nb"}] }, 2 ] ] 

and got this:

(* ==> {CommandKey, ControlKey, ControlsFontFamily, ControlsFontSize, DefaultButtonSize, DefaultNewGraphics, HyperlinkModifierKey, LicenseValid, MenuFontFamily, MouseButtonTest, MouseClickCount, MouseOver, NotebookSelected, OptionKey, PanelBackground, PanelFontFamily, PanelFontSize, ScreenArea, ShiftKey, ToolbarBackground, TooltipFontFamily, TooltipFontSize, TooltipFrameMargins, Enabled, Language, {ControlsFontSize, Large}, {ControlsFontSize, Medium}, {ControlsFontSize, Small}, {SystemColor, DialogText}, {SystemColor,DialogTextDisabled}, {SystemColor, MenuText}, {SystemColor, Tooltip}, {SystemColor, TooltipFrame}, {SystemColor, TooltipText}, {TaggingRules, Highlight}, {ScreenRectangle, 1, 2}, {ScreenRectangle, 2, 2}} *) 

in addition to a message complaining about:

Syntax::sntufn: Unknown unicode longname NumberComma. 

Other items known by CurrentValue (not in the list above) that were used in other answers/comments:

  • As per this comment by celtschk:

     {"Thickness", "Opacity", "Dashing", "FontFamily", "FontSize", "FontSlant", "FontWeight", "FontColor", "FontOpacity"} 
  • This answer by kguler:

     "ImageSize" 
deleted 136 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
added 53 characters in body
Source Link
rm -rf
  • 89.8k
  • 21
  • 303
  • 498
Loading
added 137 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
tagged, formatted
Source Link
István Zachar
  • 47.2k
  • 20
  • 147
  • 307
Loading
added 175 characters in body
Source Link
rm -rf
  • 89.8k
  • 21
  • 303
  • 498
Loading
added 196 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
added 14 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
added 1530 characters in body
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading
Source Link
Sjoerd C. de Vries
  • 66.4k
  • 15
  • 192
  • 337
Loading