Notifications
Clear all
[Closed] does controller have dialogbox??
Aug 08, 2013 11:21 pm
Another one I don’t think that we have.
displayControlDialog will display a dialog but can I check to see if I can or not without actually doing it?
2 Replies
Aug 08, 2013 11:21 pm
Want to have some fun closing dialogs, try this
classStr=stringStream ""
showClass "*:*Controller*" to:classStr--Get all the controller classes.
seek classStr 0
while not eof classStr do
(
r=readLine classStr
strAr=filterString r ":"
conClass=try(execute ((trimRight (trimLeft strAr[1]))+"()"))catch()
if conClass!=undefined do displayControlDialog conClass ""
)
Aug 08, 2013 11:21 pm
Maybe you could rewrite it. Instead of using try()catch() in each loop just put whole while in it and create list of done classes. When it catch error you will use recursion and call you function again this, just this time it will have list of done classes passed also so it doesn’t have to start again from beginning. Beside this I don’t think you can do anything else.