Hello all,
I just posted part one of this on how to get the list of user draw styles from the viewport manager and then shortly after, figured that out.
Now i'd like to know if anyone knows how to get the icon/pixmap for those into a combo box in a script?
I am getting the getDescription() text into my combo box (attachment 1) but am curious if I can make my script look like the viewport screen (attachment two).
Code to get the description is:
var oViewportMgr = App.getInterface().getViewportMgr(); var numUserDrawStyles = oViewportMgr.getNumUserDrawStyles(); for(i=0; i < numUserDrawStyles ; i++) { drawStyleTypeComboBox.addItem(oViewportMgr.getUserDrawStyle(i).getDescription()); }
Any help is greatly accpreciated!