Search found 29 matches

by Kevin
Wed Dec 17, 2008 18:10
Forum: Help
Topic: Setting the text on staticText
Replies: 4
Views: 1079

Hello,

Well, for one thing, that is not how you combine (that is, concatenate) strings.

You probably want something like this:

Code: Select all

lives->setText("Lives: " + StringConverter::toString(numLives));


Hope that helps!

Kevin
by Kevin
Fri Oct 17, 2008 02:35
Forum: Help
Topic: set up questions
Replies: 4
Views: 862

Hello again, You most definitely need to include cegui.h. The linker errors are suggesting that you are not linking with the necessary .lib files. I'm not sure where it is in VS2005, but in VS2003, it's under Project -> Properties -> Linker -> Input. You need to put under "Additional Dependenci...
by Kevin
Thu Oct 16, 2008 17:51
Forum: Help
Topic: set up questions
Replies: 4
Views: 862

Hello, It seems that you need to include the file containing the DirectX9Renderer, which is \RendererModules\directx9GUIRenderer\d3d9renderer.h inside the CEGUI folder. So, you should just be able to #include<RendererModules/directx9GUIRenderer/d3d9renderer.h> assuming it can find the other CEGUI in...
by Kevin
Wed Sep 24, 2008 19:08
Forum: Modifications / Integrations / Customisations
Topic: loadWindowLayoutFromString??
Replies: 2
Views: 953

I don't know what the "simplest" way is, but you could always write the string to a file, and get the WindowManager to load the file :)
by Kevin
Mon Sep 22, 2008 20:52
Forum: Help
Topic: tooltip font [SOLVED]
Replies: 6
Views: 1321

Hello, It seems that Tooltip inherits from Window, and as such, it has all the same Font functionality as all other windows. Specifically, it has both setFont(Font* font) and setFont(const String& name) functions. You will also notice (on this page ) that there is a Font property for Tooltips (i...
by Kevin
Thu Sep 11, 2008 17:47
Forum: Help
Topic: Combobox event problems
Replies: 9
Views: 1690

Hello, The error global functions do not have 'this' pointers implies that you are calling cb->subscribeEvent(CEGUI::Combobox::EventListSelectionChanged, CEGUI::Event::Subscriber(&MyUI::SetFile, this )); from within a global function - in which case it is quite accurate... there ...
by Kevin
Sun Sep 07, 2008 20:04
Forum: Help
Topic: Subscribing Events with Inherited classes
Replies: 4
Views: 997

Just an update:

I tried cut-and-pasting the function exactly as it was from the base class (BoardGUI) to the derived class (NurikabeGUI), and now it works fine, so the problem is definitely to do with the fact that it's an inherited function.
by Kevin
Fri Sep 05, 2008 19:35
Forum: Help
Topic: Subscribing Events with Inherited classes
Replies: 4
Views: 997

Hello, Thanks for the reply, but I don't think that is the problem. I have successfully subscribed to many events before with no problems. The difference with this one is that the function I am trying to subscribe to is not declared in the class itself, but a class it inherits from, which seems to b...
by Kevin
Fri Sep 05, 2008 00:22
Forum: Help
Topic: Subscribing Events with Inherited classes
Replies: 4
Views: 997

Subscribing Events with Inherited classes

Hello, I have a class NurikabeGUI, which inherits from BoardGUI. Inside BoardGUI I have the function: bool BoardGUI::checkClicked(const CEGUI::EventArgs& args) { ... return true; } I am trying to subscribe a button to this callback in the NurikabeGUI constructor. I first tried:...
by Kevin
Thu Aug 14, 2008 01:09
Forum: Help
Topic: Problem creating a simple window in Ogre
Replies: 9
Views: 1579

The specific error should be listed at (or towards) the bottom of CEGUI.log after running the program. I can't be sure, but it seems like the error is likely a result of there being another window registered with the system named "Window". All windows in the entire CEGUI system must have u...
by Kevin
Mon Aug 11, 2008 23:53
Forum: Bug Reports, Suggestions, Feature Requests
Topic: String Constructor
Replies: 2
Views: 1336

Hello, As a follow-up, it seems there is a similar problem (or perhaps the same problem?) with the c_str() function. CEGUI::String str(32, ' '); for (CEGUI::String::size_type i = 0; i < 32; i++) { str[i] = 0xff; } const char* ch = str.c_str(); After executing, str h...
by Kevin
Thu Aug 07, 2008 01:11
Forum: Help
Topic: Destroying Custom Windows
Replies: 7
Views: 1348

Hello, So I have discovered that the problem was the following: In a constructor, I have the line: _tex = (CEGUI::OpenGLTexture*)CEGUI::System::getSingleton().getRenderer()->createTexture(); So I figured I should put the corresponding line in the destructor: CEGUI::Sy...
by Kevin
Wed Aug 06, 2008 21:52
Forum: Bug Reports, Suggestions, Feature Requests
Topic: String Constructor
Replies: 2
Views: 1336

String Constructor

Hello, So there seems to be something a little strange going on with the String constructor CEGUI::String(const char* chars, CEGUI::String::size_type chars_len); I've tried a few small tests, and it seems to work as expected. However, when I pass it a 32 character string (of unsigned chars) ...
by Kevin
Mon Aug 04, 2008 18:03
Forum: Help
Topic: Destroying Custom Windows
Replies: 7
Views: 1348

I assume you checked that if remove the destroyWindow call the problem goes away? This was definitely the case before, but now I get the access violation either destroying this custom window or the DefaultWindow it's a child of. With regards to the destructor not getting called, the destroyWindow c...
by Kevin
Sun Aug 03, 2008 17:39
Forum: Help
Topic: Destroying Custom Windows
Replies: 7
Views: 1348

Do you build CEGUI from code? No, I'm using the precompiled version. Do you know which object is being accessed at the time of the access violation? No, I do not - I just know it's somewhere within OpenGLGUIRenderer_d.dll (function 00347dcb(), if that means anything). Have you subscribed any event ...

Go to advanced search