CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 02-11-2013, 12:43 AM   #16
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,502
Send a message via ICQ to denisT
Quote:
Originally Posted by gazybara
Yep. Now works fine.
One question: When I change tab all values (spinner, color and checkboxes) are return to default Why?

because removesubrollout deletes a rollout instance and addsubrollout creates new one
 
Old 02-11-2013, 01:05 AM   #17
gazybara
Architect
 
gazybara's Avatar
portfolio
Branko Živković
Freelancer
Niš, Serbia
 
Join Date: Apr 2011
Posts: 1,103
Quote:
Originally Posted by denisT
because removesubrollout deletes a rollout instance and addsubrollout creates new one

And what's the best solution to preserve current settings and restore them after addsubrollout method. Is it better to use a struct for storing current rollout values or to store it all to *.ini file?
__________________
Looking in the right side. [bgaTools]
 
Old 02-11-2013, 01:14 AM   #18
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,502
Send a message via ICQ to denisT
Quote:
Originally Posted by gazybara
And what's the best solution to preserve current settings and restore them after addsubrollout method. Is it better to use a struct for storing current rollout values or to store it all to *.ini file?

it's better to not use this mechanics. better is create them all in different subrollouts for every tab and change subrollout visibility
 
Old 02-11-2013, 01:18 AM   #19
gazybara
Architect
 
gazybara's Avatar
portfolio
Branko Živković
Freelancer
Niš, Serbia
 
Join Date: Apr 2011
Posts: 1,103
Quote:
Originally Posted by denisT
it's better to not use this mechanics. better is create them all in different subrollouts for every tab and change subrollout visibility

Thank Denis, i will try
__________________
Looking in the right side. [bgaTools]
 
Old 02-11-2013, 01:18 AM   #20
Klunk
Lord of the posts
 
Klunk's Avatar
portfolio
Klunk
United Kingdom
 
Join Date: Sep 2005
Posts: 701
I just think you keep the settings as local variables with an Init function for each rollout, called from the on open event handler also useful if you need to tie it into a selection changed call back handler or similar
 
Old 02-11-2013, 01:31 AM   #21
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,502
Send a message via ICQ to denisT
Quote:
Originally Posted by denisT
it's better to not use this mechanics. better is create them all in different subrollouts for every tab and change subrollout visibility

another cool feature which you get with my system is that all subrollouts keep staying in the last scrolling position and rollouts keep staying in same open state. removing/adding of course resets it. so we have to save it somehow before change a tab
 
Old 02-11-2013, 01:31 AM   #22
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:03 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.