View Full Version : activeX TabStrip Colors and removerollout question
08-06-2007, 07:07 PM
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?
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?
08-07-2007, 12:00 AM
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
08-07-2007, 09:54 AM
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.
08-07-2007, 12:04 PM
i tried storing in an array but its stored in as a string.. do i have to get it back with the execute command?
08-07-2007, 12:32 PM
What is stored as string ? The ListView items ?
08-07-2007, 12:43 PM
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... ???
08-07-2007, 01:14 PM
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.
08-07-2007, 01:45 PM
ahh i see what u mean. ok i wil try that... can u answer my other question about updating listview?
08-07-2007, 01:54 PM
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...).
08-07-2007, 02:21 PM
whats a better way of showing the warnings and messages to the user that can be seen as its updated...
08-07-2007, 02:42 PM
You can interact with the Status Bar Prompt Line (See "Promp Line" in the Reference).
There's also an interesting thread on the MAXScript board : http://discussion.autodesk.com/thread.jspa?messageID=5328472
08-07-2007, 02:50 PM
thanks yannick, i will have a look at those once i get back home today... thanks for a great help and prompt replies
08-07-2007, 02:50 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.