sythe21
07-12-2007 16:30:32
2 Questions regarding the QuickGUI::Console widget.
1. I created an event handler using addOnEnterPressedEventHandler() to process some text in the input box. Since mInputBox is a protected member of QuickGUI::Console, what is the best way to retrieve the text?
2. I am creating a debug console that will be shown every time the user hits '~'. Because I want to be flexible in terms of a GUIManager I create and destroy the widget each time '~' is pressed. What is the correct method for destroying a widget? I am currently using mGUIManager->destroyWidget("guiConsole"), but doing so leaves the scrollbars visible on the screen.
Thanks for your help!
1. I created an event handler using addOnEnterPressedEventHandler() to process some text in the input box. Since mInputBox is a protected member of QuickGUI::Console, what is the best way to retrieve the text?
2. I am creating a debug console that will be shown every time the user hits '~'. Because I want to be flexible in terms of a GUIManager I create and destroy the widget each time '~' is pressed. What is the correct method for destroying a widget? I am currently using mGUIManager->destroyWidget("guiConsole"), but doing so leaves the scrollbars visible on the screen.
Thanks for your help!