Close GUI in template code

Is there a feature you'd like us to add? Post it here.

Close GUI in template code

Postby ET2005 on Wed May 25, 2005 8:40 am

Add a AddCancelButton and Close method to Zeus.UserInterface.GuiController, so GuiController can be closed by clicking the cancel button, or manually in template code.
User avatar
ET2005
Lurker
 
Posts: 2
Joined: Wed May 25, 2005 8:34 am

Postby justin.greenwood on Wed May 25, 2005 12:02 pm

I don't think that would be too hard to add for the next bug fix release. I was hoping it would be out this week, but there are some involved MyMeta fixes that Mike is still working on, so maybe I can stuff a few new features in there before we release it.
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby justin.greenwood on Mon Dec 05, 2005 12:16 am

I added a property on the GuiButton class called \"CancelGeneration\" that, if set to true, will cause the button to close the form when clicked and cancel generation as if you clicked the upper right X.
Code: Select all
var button = ui.AddButton(\"b1\", \"Cancel\", \"\");
button.CancelGeneration = true;
User avatar
justin.greenwood
Site Admin
 
Posts: 441
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN


Return to Enhancements

Who is online

Users browsing this forum: No registered users and 2 guests

cron