Search found 15 matches

by some_name
Sun Apr 29, 2007 00:18
Forum: Help
Topic: How to tell which popup menu item is selected?
Replies: 12
Views: 9856

Thanks for the help! Regarding 2): "You don't" isn't a good answer. Nobody can write a reasonable editor, for example, without being able to extract all the events of a given widget at runtime. Trying to keep a hard-coded list, per widget kind, would very quickly get tiresome and fall out ...
by some_name
Mon Apr 23, 2007 00:26
Forum: Help
Topic: How to tell which popup menu item is selected?
Replies: 12
Views: 9856

How to tell which popup menu item is selected?

I'm trying to figure out how to get told when a popup menu item is selected. I believe there must be some event that tells me that an item was picked. However, the collaboration diagram in the documentation doesn't list any event that seems like a likely candidate. I also called menu->EventSet::getI...
by some_name
Sun Apr 22, 2007 16:22
Forum: Help
Topic: How to inject only when over frame window?
Replies: 7
Views: 5553

Thanks for the help. Passing it on from the DefaultWindow might work. Meanwhile, the solution I found when mucking around, was to call CEGUI::Window *win = CEGUI::System::getSingleton().getWindowContainingMouse(); Then I test whether the getType() of that window is DefaultWindow, and...
by some_name
Wed Apr 18, 2007 03:52
Forum: Help
Topic: How to inject only when over frame window?
Replies: 7
Views: 5553

How to inject only when over frame window?

I'm using CEGUI with Ogre. I have a number of frame windows that are all children of a GuiSheet that is loaded as a GuiLayout. I'm using OIS (the Ogre input system) in buffered mode, and injecting the events (mousemove, mousedown, etc). What I want to do is know whether the event actually happened o...
by some_name
Mon Apr 16, 2007 01:51
Forum: Help
Topic: Listbox doesn't draw added ListboxTextItems
Replies: 5
Views: 4246

Yes, my list works now. Thanks for helping!
by some_name
Sun Apr 15, 2007 17:27
Forum: Help
Topic: Listbox doesn't draw added ListboxTextItems
Replies: 5
Views: 4246

I now have the selection squared away, too. The selection brush on the item was needed, even though I set the selection colors.
by some_name
Sun Apr 15, 2007 16:24
Forum: Help
Topic: Listbox doesn't draw added ListboxTextItems
Replies: 5
Views: 4246

I'm sure there's something crazy in my code, as I'm trying to learn this GUI toolkit without any kind of overview to guide me. As for the code: widgets_ is the list of widgets that I actually want to allow control of. Testing for the right type is necessary to avoid crashing in the case of wrong usa...
by some_name
Sun Apr 15, 2007 05:38
Forum: Help
Topic: Listbox doesn't draw added ListboxTextItems
Replies: 5
Views: 4246

Listbox doesn't draw added ListboxTextItems

I'm trying to learn CEGUI, but I'm having a hard time, because all the documentation is of the hands-on code kind, and there isn't really any documentation on how all the pieces are supposed to fit together. I have a layout that's loaded from a .layout file. It contains a TaharezLook/Listbox class. ...
by some_name
Sun Apr 15, 2007 04:19
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Confusion with Demo7 ItemListBox
Replies: 3
Views: 4109

Hmm. The documentation for CEGUI::Listbox does not claim that it is deprecated -- and I assume that CEGUI::Listbox is what gets created when the XML file says "TaharezLook/Listbox". So, how do I, from code, add items to a TaharezLook/Listbox? There's no good documentation for this that I c...
by some_name
Wed Mar 14, 2007 23:54
Forum: Help
Topic: AlreadyExistsException when calling loadWindowLayout()?
Replies: 2
Views: 2320

You know, it would help if the documentation for the window class actually said that. It would help even more if the destructor for the window class was protected in that case.
But thanks for the info that the documentation lacked!
by some_name
Tue Mar 13, 2007 23:41
Forum: Help
Topic: AlreadyExistsException when calling loadWindowLayout()?
Replies: 2
Views: 2320

AlreadyExistsException when calling loadWindowLayout()?

I've worked around my HandleClicked() problem by deferreing deletion of the window layout until the event injection has returned. However, now I have a problem when showing a GUI for the second time. The flow control is something like: window = WindowManager::getSingleton().loadWindowLayout(name); g...
by some_name
Tue Mar 13, 2007 23:30
Forum: Help
Topic: System::injectMouseButtonUp() crashes when deleting GUI
Replies: 3
Views: 2895

It is the inject that creates the HandleClicked callback. The code looks something like the below. Creation: window_ = CEGUI::WindowManager::getSingleton().loadWindowLayout( (CEGUI::utf8*)layout); BuildWidgetList(window_); void MyClass::BuildWidgetList(CEGUI::Wind...
by some_name
Sun Mar 11, 2007 01:23
Forum: Help
Topic: System::injectMouseButtonUp() crashes when deleting GUI
Replies: 3
Views: 2895

System::injectMouseButtonUp() crashes when deleting GUI

I have a button in a window which, when clicked, causes state to change, which causes the current GUI to be disposed and the GUI sheet reset to NULL. This causes the function injectMouseButtonUp() to crash sometime after the event has been dispatched and my action taken. Is this a known bug? The doc...
by some_name
Sat Mar 10, 2007 00:27
Forum: Help
Topic: HandleClicked handler not getting called
Replies: 1
Views: 2056

Nevermind. After posting this, I finally saw the underscore that made it not work. It often takes a second set of imagined eyes...
by some_name
Sat Mar 10, 2007 00:26
Forum: Help
Topic: HandleClicked handler not getting called
Replies: 1
Views: 2056

HandleClicked handler not getting called

I am loading a GUI layout, and then, for each widget that is a push button, I subscribe to HandleClicked. I have verified in the debugger that the subscription code is getting called. However, when clicking the buttons, the event handler does not get called. Here is the code: void LuaGui::Build(...

Go to advanced search