Changes

Jump to navigation Jump to search
No change in size ,  01:01, 7 July 2009
did I miss something? there is no Delete()
Line 475: Line 475:  
</source>
 
</source>
   −
Last, you ''must'' remove any GuiElements you have Append()ed in your menu (unless it was declared globally, but you should still remove it) before returning to the MainMenu function, or else the GUI will keep trying to display an image that doesn't exist any more. Use the Delete() function, which takes in a GuiElement:
+
Last, you ''must'' remove any GuiElements you have Append()ed in your menu (unless it was declared globally, but you should still remove it) before returning to the MainMenu function, or else the GUI will keep trying to display an image that doesn't exist any more. Use the Remove() function, which takes in a GuiElement:
    
<source lang = "cpp">
 
<source lang = "cpp">
mainWindow->Delete(&image);
+
mainWindow->Remove(&image);
 
</source>
 
</source>
   Line 640: Line 640:  
     }
 
     }
   −
     mainWindow->Delete(&image);
+
     mainWindow->Remove(&image);
 
     return menu;
 
     return menu;
 
}
 
}
oversight, Administrators
2,080

edits

Navigation menu