slow rollupup updating...

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2013
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
 
  02 February 2013
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]
 
  02 February 2013
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
 
  02 February 2013
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]
 
  02 February 2013
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
 
  02 February 2013
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
 
  02 February 2013
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



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 10:42 PM.


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