Ingo Chou Posted October 17, 2015 Share Posted October 17, 2015 Hi, How to hide "Close Button" in CASTORGUI::GUIWindow. And I do not want to use GUIPanel because it can not move. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 17, 2015 Share Posted October 17, 2015 I just added new one option for you: closeButton: false This will hide the close button. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted October 17, 2015 Author Share Posted October 17, 2015 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted October 18, 2015 Author Share Posted October 18, 2015 Hi, DaveI test this function use the latest source code, but can not hide the "Close Button" by option closeButton: false or closeButton: "false".And now I can not close the window after click the close button. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 18, 2015 Share Posted October 18, 2015 Oops. I'll watch it tomorrow and test. Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted October 18, 2015 Author Share Posted October 18, 2015 Thank you Dave! And I have an other question:How can I find an element in panel / dialog / window and set properties for it or remove it from parent? Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 18, 2015 Share Posted October 18, 2015 Ok, I had forgotten to add the boolean typeof. this is fix. To the last question I'm not sure I understand. Have you an example of what you would do. You want to find an element in the window and delete an element parent ? Something like this would not work?document.getElementById("elementID").innerHTML = "value"; // set propertiesdocument.getElementById("myDiv").parentNode.removeChild(document.getElementById("myDiv"));// remove element parent Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted October 18, 2015 Author Share Posted October 18, 2015 OK. The problems have been solved. Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.