V4 released!

 From:  Michael Gibson
10083.161 In reply to 10083.160 
Hi Booleano,

re:
> And it would look like the attached image (can I do any icon design instead of the "?" Signs).

Yes, you can make your own icon image saved as a .png file, copy the file over into the ui\icons folder,
and have them referenced as the other buttons do as an icon="" attribute on the command button tag.

re:
> What code should I use, and in what type of file to write it.

For direct script code like that, you can put it contained inside of a function in a <script> tag inside the <head>
of your document, and have the script function called in an onclick="" handler on the command button tag.

So inside the <head> of your document, you would put:

code:
<script>
function DoCreateStyles()
{
/* Create a style for each object name */ var AllObjects = moi.geometryDatabase.getObjects ();  ... rest of script code  here ....
}


And on your command button tag put:

code:
<moi:CommandButton onclick="DoCreateStyles();">,,,


- Michael