GuiBitmapButtonTextCtrl problems
by John Vanderbeck · in Torque Game Engine · 05/11/2004 (7:03 pm) · 10 replies
Has anyone used this control? I needed a way to take a BitmapButton and place arbitrary text on it for dynamic controls. I started to do my own then ran into this very small bit of code for a new control that does this. The code is in guiBitmapButtonCtrl.cc/.h but it doesn't seem to work. If I try to use that control I just get an error about not being able to cretae an instance of a non-conobject. Weird part is the code loooks fine.
Maybe i'm just tired and missing something but I don't know why this control doesn't work. I would rather get this workign than create my own since this is already here.
Maybe i'm just tired and missing something but I don't know why this control doesn't work. I would rather get this workign than create my own since this is already here.
#2
05/11/2004 (9:06 pm)
GuiBitmapButtonCtrl is for doing buttons with bitmaps, I don't think it adds text over them too. And it does work, I've used it.
#3
05/12/2004 (4:43 am)
GuiBitmapButtonTextXtrl is a control based on GuiBitmapButtonCtrl. I'm not that stupid :p Guess i'll figure it out on my own.
#4
Haven't heard of it either.
05/12/2004 (4:50 am)
Search both Resources & Forums for this, no hits.Haven't heard of it either.
#5
05/12/2004 (4:54 am)
Yeah same here :( If you look in the GuBitmapButtonCtrl files, at the bottom you will see what i'm talking about.
#6
05/12/2004 (5:11 am)
Ok after a good nights rest and a fresh pair of eyes I found the problem. While the class exists in the default Torque and is properly defined and implemented, there was one missing piece. In guiCanvas.cc a IMPLEMENT_CONOBJECT() was missing.IMPLEMENT_CONOBJECT(GuiBitmapButtonCtrl); [b]// JWV ADDED bugfix for GuiBitmapButtonTextCtrl IMPLEMENT_CONOBJECT(GuiBitmapButtonTextCtrl);[/b]
#7
11/16/2004 (5:06 am)
This has still not been added into the head, thanks for the heads up on this John.
#9
John also made another change you may wish to consider. It's working for me.
www.garagegames.com/mg/forums/result.thread.php?qt=18342
11/17/2004 (4:11 am)
BenJohn also made another change you may wish to consider. It's working for me.
www.garagegames.com/mg/forums/result.thread.php?qt=18342
#10
11/19/2004 (10:48 am)
Ok, this item is done.
Torque Owner Eric Lorimer