Search found 19 matches

by mrzli777
Tue Jun 03, 2008 08:25
Forum: Help
Topic: [solved] Preventing cegui control state change
Replies: 3
Views: 2739

Nice.

deactivate() works as expected. I tried reversing the change before, but it caused recursive calls and stack overflow. But it doesn't matter since deactivate() works nice.

Thank you CE.
by mrzli777
Tue Jun 03, 2008 06:47
Forum: Help
Topic: [solved] Custom EventArgs
Replies: 8
Views: 5366

np
by mrzli777
Mon Jun 02, 2008 16:24
Forum: Help
Topic: [solved] Custom EventArgs
Replies: 8
Views: 5366

Try changing from:

Code: Select all

bool BuildMenuEventHandler(CEGUI::EventArgs e) { ... }

to:

Code: Select all

bool BuildMenuEventHandler(const CEGUI::EventArgs &e) { ... }

So add a const and add make it a reference (add &).
by mrzli777
Mon Jun 02, 2008 15:57
Forum: Help
Topic: [solved] Preventing cegui control state change
Replies: 3
Views: 2739

[solved] Preventing cegui control state change

Hello people. Is there a way to prevent a cegui control to change it's state in event handler. Let me clarify a bit: I have a checkbox for example, and I want to prevent the user from checking/unchecking it if a certain condition is fulfilled (whatever, some variable is > 10), and I check for that c...
by mrzli777
Tue May 27, 2008 11:11
Forum: Help
Topic: [solved] EventInputCaptureLost question...
Replies: 2
Views: 2219

You're right. My bad :?

What can I say - thanks CE.
by mrzli777
Mon May 26, 2008 16:37
Forum: Help
Topic: [solved] EventInputCaptureLost question...
Replies: 2
Views: 2219

[solved] EventInputCaptureLost question...

Hello! I need an event to be executed after a window loses input capture, so I'm using EventInputCaptureLost. However it doesn't seem to work the way (I think) it should. When there is no EventInputCapureGained registered (only EventInputCaptureLost is registered), EventInputCaptureLost is fired eac...
by mrzli777
Sat Apr 19, 2008 08:30
Forum: Help
Topic: [solved] Custom EventArgs
Replies: 8
Views: 5366

First of all, apologies for not replying sooner. I was a bit busy and not online too often, so I didn't check this forum for a few days :)

Anyway, that worked. Thanks a lot!
by mrzli777
Mon Apr 14, 2008 12:40
Forum: Help
Topic: [solved] Custom EventArgs
Replies: 8
Views: 5366

Here the problem: I have several Ogre mesh files defined inside a folder. I also have a menu in which I can select one of those meshes by clicking on a corresponding menu item. Since I don't know what meshes will be in that folder at compile time, I add one menu item for each mesh dynamically at run...
by mrzli777
Sun Apr 13, 2008 18:39
Forum: Help
Topic: [solved] Custom EventArgs
Replies: 8
Views: 5366

[solved] Custom EventArgs

Hello all. When I click a button i need to pass a string to the button-click event handler, so I defined a class derived from EventArgs (named MeshSelectedEventArgs) that contains that string. How can I pass the object of MeshSelectEventArgs type to the event handler? Here is the class: class MeshSe...
by mrzli777
Sun Feb 10, 2008 17:30
Forum: Help
Topic: [SOLVED] Different fonts in same layout
Replies: 2
Views: 2328

You're right. That was simple but I didn't see it.
Thanks.
by mrzli777
Sun Feb 10, 2008 13:11
Forum: Help
Topic: [SOLVED] Different fonts in same layout
Replies: 2
Views: 2328

[SOLVED] Different fonts in same layout

Hello again. Can anyone tell me how to have different fonts in the same layout file? For example, I want to have two StaticText controls, each with different font. I was looking and GUILayout_xmlHandler code and there doesn't seem to be element or attribute to define font for an instance of control ...
by mrzli777
Tue Feb 05, 2008 11:33
Forum: Help
Topic: [SOLVED] QuadraticLook and CommonFileDialog
Replies: 11
Views: 6110

Hehe Yeah, you're right, someone did think about those things, though nothing much was written down or formally specified. Oh. :) You might consider CEGUI as my experiment as to what happens without BDUF, which is what I had kind of been a fan of previously. Not a fan of BDUF any more? I'm just the...
by mrzli777
Mon Feb 04, 2008 18:31
Forum: Help
Topic: [SOLVED] QuadraticLook and CommonFileDialog
Replies: 11
Views: 6110

What is this "design" that you speak of? I know nothing of such things...


Well, before writing CEGUI code, someone had to think about how it will function, how the event system will be implemented, how input will be recieved, what widgets will be supported, blah blah... Right? :D
by mrzli777
Mon Feb 04, 2008 17:00
Forum: Help
Topic: [SOLVED] QuadraticLook and CommonFileDialog
Replies: 11
Views: 6110

But on the other hand Cegui is very well written; there are nearly as many comments as code and the variable and function names are quite clear. Very good job. I agree. Same goes for OGRE. Wonder how long it took to complete just the design part for CEGUI? Is there some sort of design/technical doc...
by mrzli777
Sun Feb 03, 2008 18:13
Forum: Help
Topic: [SOLVED] QuadraticLook and CommonFileDialog
Replies: 11
Views: 6110

Somewhere in the looknfeel for the quadratic look the window skins probably set the "WantsMultiClickEvents" property to false That was it. Changed from "False" to "True" in "QuadraticLook/Listbox" and it works like a charm. Thanks. I know I said that you can'...

Go to advanced search