Northwoods.Go Assembly > Northwoods.Go Namespace > GoView Class : StandardizeCursorName Method |
Standard cursor names are basically those used by CSS2. This list includes: "default", "pointer", "move", "crosshair", "text", "help", "wait", "not-allowed", and "*-resize" where "*" is one of: "n", "ne", "nw", "s", "se", "sw", "e", "w", "col", or "row". Other names are lowercased and returned, allowing for the user of other cursors supported by Windows Forms (e.g. "pannorth") that are not recognized by CSS2, or those cursors defined by CSS for WebForms or SVG but that are not standard in Windows Forms.
This method will recognize the names of some System.Windows.Forms.Cursors
properties and substitute the corresponding standard cursor names. These currently include: "Cross" (becomes "crosshair"), "Hand" (becomes "pointer"), "SizeAll" (becomes "move"), "SizeNESW" (becomes "ne-resize"), "SizeNS" (becomes "s-resize"), "SizeNWSE" (becomes "se-resize"), "SizeWE" (becomes "e-resize"), "VSplit" (becomes "col-resize"), "HSplit" (becomes "row-resize"), "No" (becomes "not-allowed"), "WaitCursor" (becomes "wait"), and "IBeam" (becomes "text").
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2