Game Development Community

Associating GuiBitmapCtrl to ImageMap

by Stanley D Chatman · in Torque Game Builder · 08/29/2006 (10:45 am) · 6 replies

Is there anyway to link a GuiBitmapCtrl to an ImageMap. It appears that the "bitmap" property refers to a image file on disk.

#1
08/29/2006 (3:57 pm)
There sure is. Check out this tutorial.
#2
08/30/2006 (12:07 am)
I've seen that tutorial before and that is not what I am talking about!!!

The GuiBitMapCtrl has a property called bitmap that refers to a file on disk, I want it to reference a ImageMap object that has multiple frames and dynamically create bitmap controls on the fly.

Lets say I have one large ImageMap that contains all the letters of the font and I want to dynamically split them up.

Listen to what I am asking here.

Can the bitmap property on the GuiBitmap control refer to an ImageMap object not to a bitmap file on disk?
#3
08/30/2006 (3:32 am)
I'm sorry I misunderstood your post, but I was clearly only trying to help you. There's no reason to be so harsh - especially to someone who actually took the time to respond.

I don't think you can use an ImageMap for the bitmap field, but I could be wrong.

Post back if you get it to work. I am interested to know.
#4
08/30/2006 (5:32 am)
My bad for coming off that way. I really appreciate your help on this matter.
#5
08/30/2006 (5:38 am)
No problem! That's what I'm here for.. ^_^
#6
08/30/2006 (8:49 am)
Unfortunately, you can't assign t2dImageMaps to a standard GuiBitmapCtrl. If you have the source version of TGB, there are ways of accomplishing what you desire. Check out this thread:
guiT2dCtrl

And be sure to download Melv's control.