Remember 3December
Find out where to celebrate your 3D CG art...
Theme color:
  • 1/3
You are here: Homepage /  Blogs /  The 3ds Max SDK Blog / Five Ways to Improve your Plug-in's UI
Five Ways to Improve your Plug-in's UI
Posted: Sep 28, 2009
Category:
Social Media:
Bookmark and Share

The following is a list of five best practices for improving your plug-in UI design via the 3ds Max SDK.

1. Assure that your Combo Box Drop Down Window is Large Enough

You can call the global function UpdateComboBoxDropDownWidth() once a combo box is initialized with data to assure that the drop-down window will resize to fit the longest string.
 
 

2. Make your Dialogs Resizable

 
You can use the DialogResizer class, to enable automatic resizing of dialogs. Normally you would create an instance of this class in the Dialog procedure in response to a Windows WM_INITDIALOG message. See the sample "maxsdk\samples\controllers\exprctrl.cpp" for an example.

3. Leveraging the 3ds Max Color Scheme

The color scheme for 3ds Max can be customized for the user. Rather than hard-coding colors in your plug-in you should try to use the IColorManager interface and an appropriate ColorID. For more information look at the icolorman.h header file and the API reference documentation.

4. Use Assets instead of File Paths

Instead of using hard-coded file paths you should use an instance of the AssetUser class introduced in 3ds Max 2010. This allows the user to benefit from the asset tracker, and assure proper functioning of network rendering. 

5. Use the 3ds Max Standard Dialogs

You should always use the standard 3ds Max open file, save file, and choose folder dialogs, to take advantage of the history drop-down. You can trigger these dialogs using the following methods:

Interface8::DoMaxSaveAsDialog()

Interface8::DoMaxOpenDialog()

Interface9::DoMaxBrowseForFolder()

In order to post any comments, you must be logged in!