View Full Version : Refreshing the lists in ctlmenus
Dodgy
03-21-2005, 08:06 PM
Hiya,
Would anyone be able to tell me how to refresh the list in a ctlmenu?
I've tried loads of different things, and nothing's worked so far :P
faulknermano
03-22-2005, 08:18 AM
try reqabort() and then options()... this is assuming you're scripting a callback type script (e.g. master).
Dodgy
03-23-2005, 06:18 AM
Where do I do this? I've tried placing it on other ctl callbacks, in it's own callback, in ctlrefreshes, but it doesn't seem to abort the old menu, and more often then not I get a crash when I try to exit. I'm trying to do this in a modeler script (I've put the req in its own Options() function).
:P
Thanks for your help.
faulknermano
03-23-2005, 06:22 AM
if it's modeler, then i'm not so sure how stable it will be. in my experience, for best results, make a ctlbutton() to call on reqabort() and then main(). of course, main() can be any func, as long as it calls up the requester again with updated values.
ctlbutton() denotes user interaction to get the refresh going.
again, modeler scripts may not like this kind of technique because of its modal-ness.
Dodgy
03-23-2005, 06:39 AM
Nope, the problem seems to be reqabort just doesn't get rid of the old requester, it stays up (if you move the new requester you can see it :P)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.