[GUI] Window options
[GUI] Window options
How can I make a non-moveable window? and can I disable "close window" button or make it desappear?
Il_Drugo,
I remove the close-button like this
Greetings
miko
I remove the close-button like this
Code: Select all
irr::gui::IGUIButton* pB = m_pWindow->getCloseButton();
pB->setVisible(false);miko
"Yessir, I'll be happy to make these unnecessary changes to this irrelevant document." (Dilbert)
Code: Select all
window->getCloseButton()->setVisible(false);
Note: that you have to do this with every window you want to be unclosable.
As for "not-moveblness" I think the quickest way is to add a boolean property (like Movable) to the CGUIWindow class with its getter and setter. If you check it before assigning Dragging to true in CGUIWindow.cpp, you'll be able to deny dragging.