[Closed] activeX TabStrip Colors and removerollout question
using in max 8… the color of tabstrip doesnt match the color of rest of max’s rollout and UI. it has the same color as my windows taskbar and other windows. is there a way to change it so it matches the max UI colors???
is it not possible to create tabs that look like what we have in preference Settings window?
using the example in the tabstrip reference, the removerollout removes the rollouts completely from each tab once u click on another tab... if i check a checkbox or enter a text in one rollout and then click on another tab it will remove it completely and when u return to that tab, it will add a new instance... and the checkbox and text box value is erased...
how can i stop it from doing this?
edit:
i found the setIniSetting function which should work, but is this the only way. what if i have a listview with lots of values in it?
the setinisetting works fine but how do i write the values of each item and subitem of the listview to the ini file? its simple to write it through the loop but in that case the file can become very big if there are many listitems… maybe someone knows of a better solution.
one more question… i remember a thread called “running another script from a script”… can anyone point me to it, i cant find it… i want to run another maxscript from my script… just to keep the file a bit manageable
Just store the ListView items in an array and restore them.
About running a script from another script please refer to MAXScript Reference at “Running Scripts” (see fileIn method). You can also run a macro using macros.run.
i tried storing in an array but its stored in as a string… do i have to get it back with the execute command?
ya the setInisetting only stores the values as a string i believe… so i am using execute to retrieve the values… like <<< execute “false” >>> gives false and i can use it to set the property of a checkbox…
dont know if its the same way to get listview values because the listview values will be stored into an array first and then in the ini file… ???
another question: when i click on the export button of my rollout the script performs a check on each object in scene and finds its materials and maps etc and writes specific formatted data into a file… I want to display all the messages and warnings on a different floater which i create (with a listview in it) as soon as the export button is clicked…
now throughout the script the messages are added to the listview but the listview does not update until the script has finished running… and once the script is finished i can see all the messages… ???
Why do you still want to use an ini file ? Just store the checkbox state as a boolean in a global value of your script. Same for the ListView items in an array.
ahh i see what u mean. ok i wil try that… can u answer my other question about updating listview?
About ListView update, this is a common problem in MAXScript. While processing, UI cannot be updated (depends on the UI controls, progressbar can be updated while doing operations…).
whats a better way of showing the warnings and messages to the user that can be seen as its updated…