Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:sdksamples:replacecolordialog [2015/09/14]
127.0.0.1 external edit
developer:sdksamples:replacecolordialog [2016/02/02] (current)
sandy
Line 1: Line 1:
-====== How To: Replace Rhino'​s Color Picking Dialog ======+====== How to: Replace Rhino'​s Color Picking Dialog ======
 ====== C++, .NET ====== ====== C++, .NET ======
 +
 > **Version:​** //Rhino 4// > **Version:​** //Rhino 4//
-> **NOTICE:** //The Rhino.NET SDK is deprecated in Rhino 5.  This example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​replacecolordialog|here]]//​+> **Notice:** //The Rhino.NET SDK is deprecated in Rhino 5.  This example adapted for the new RhinoCommon SDK is [[developer:​rhinocommonsamples:​replacecolordialog|here.]]// 
 + 
 +To replace Rhino'​s color picking dialog, derive a new class from CRhinoReplaceColorDialog and override the ColorDialog() virtual function. ​
  
-To replace Rhino'​s color picking dialog, derive a new class from CRhinoReplaceColorDialog and override the ColorDialog() virtual function. ​Note, if more that one CRhinoReplaceColorDialog-derived classes exist, then the last CRhinoReplaceColorDialog-derived object created will be displayed.+**Note:** If more that one CRhinoReplaceColorDialog-derived classes exist, then the last CRhinoReplaceColorDialog-derived object created will be displayed.
  
-The following sample code demonstrates how to replace Rhino'​s color picking dialog. In this example, we will simply ​replace it with the Windows standard color picking dialog.+The following sample code demonstrates how to replace Rhino'​s color picking dialog. In this example, we replace it with the Windows standard color picking dialog.
  
 ===== C++ ===== ===== C++ =====
Line 29: Line 32:
  
 </​code>​ </​code>​
-Now, create a new Rhino command and add a pointer to the above class as a public data member. ​Do not forget ​to initialize ​it'​s ​value to NULL in the command classes constructor. For example:+Now, create a new Rhino command and add a pointer to the above class as a public data member. ​Remember ​to initialize ​its value to NULL in the command classes constructor. For example:
  
  
Line 62: Line 65:
  
 </​code>​ </​code>​
-For more information on the new CRhinoReplaceColorDialog class, see it'​s ​declaration in rhinoSdkUtilities.h.+For more information on the new CRhinoReplaceColorDialog class, see its declaration in rhinoSdkUtilities.h.
  
 ===== VB.NET ===== ===== VB.NET =====
developer/sdksamples/replacecolordialog.txt · Last modified: 2016/02/02 by sandy