PopUp Menu Problems - separator color
by Stephen Hagyard · in Technical Issues · 03/03/2004 (11:16 am) · 3 replies
Hi,
I am getting a persistent message when I try to use a PopUpMenu box.
The engine crashes with the message "CreateBitMapArray - failed to get separator color!".
I assume that I am missing something in the Profile that supplies the color tables but I can't find what it is. Any advice would be appreciated.
Thanks in advance Stephen.
I am getting a persistent message when I try to use a PopUpMenu box.
The engine crashes with the message "CreateBitMapArray - failed to get separator color!".
I assume that I am missing something in the Profile that supplies the color tables but I can't find what it is. Any advice would be appreciated.
Thanks in advance Stephen.
About the author
#2
So unless a scrollbar bitmap is set in the profile it wont work and you'll get a bitmap array error.
03/04/2004 (2:11 am)
A popup menu requires a bitmap array for its scrollbar I believeSo unless a scrollbar bitmap is set in the profile it wont work and you'll get a bitmap array error.
#3
Stephen Hagyard.
03/04/2004 (11:46 am)
Thanks - I wasn't putting the right directory to the bitmap array and that was causing the problem.Stephen Hagyard.
Torque Owner Adam Beaumont
Torque figures out which color is the seperator by reading the pixel in the top left hand corner of the bitmap. It then goes down and across splitting up the bitmap whenever it encounters that color again.
The error you're getting occurs when either it can't find the bitmap array or it can't get the color from the top left pixel (in the file engine\gui\guitypes.cc). The first thing to check is probably that you have a valid bitmap array in your control...