![]()  | 
 
CXTPToolBar > 16-color? | 
 
    Post Reply  
   | 
  
| Author | |
   
   Santos L Helper  
   
   Newbie  
   Joined: 19 August 2004 Status: Offline Points: 2  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CXTPToolBar > 16-color?Posted: 30 September 2004 at 10:35am  | 
 
| 
   
    
   I'd like to use toolbar images in a CXTPToolBar that have more than 16
colors.  Is this possible with the current CXTPToolBar? 
There is no LoadBitmap() member function, and LoadToolBar() loads a
toolbar resource template, which Visual Studio forces into 16-color
format. 
   
  Looking over the archived messages in this forum, it appears that some people were using CXTToolBars with images greater than 16-color, but I could not find CXTToolBar anywhere in the 9.1.0 source. Has that class been deprecated/replaced? I'd really like to user high-color images in my CXTPToolBars. The rest of the application looks fabulous, but the 16-color images make the toolbars ugly and look out-of-place. Thanks for any help. Santos  | 
 |
![]()  | 
 |
   
   andy_t  
   
   Newbie  
   Joined: 19 October 2004 Location: Norway Status: Offline Points: 13  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 19 October 2004 at 10:12am | 
 
| 
   
    I was wondering the same thing. Is there no way around this? cheers,  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 October 2004 at 12:38pm | 
 
| 
   
    Just replace res/toolbar.bmp to 24bit/32bit bitmap.  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   Gosha  
   
   Newbie  
   Joined: 25 April 2005 Location: Belarus Status: Offline Points: 8  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 30 May 2005 at 6:59am | 
 
| 
   
    
   It's don't working! Toolbar drawing with background. How I can to set background color?
    
   
   | 
 |
![]()  | 
 |
   
   Sven  
   
   Senior Member  
   Joined: 21 August 2003 Location: Germany Status: Offline Points: 127  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 30 May 2005 at 10:16am | 
 
| 
   
    
   Try XTPImageManager()->SetIcons(...).
    
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 30 May 2005 at 11:15am | 
 
| 
   
    I think your top left color of bitmap has no transparent - background color... If so you can manually set mask color to be used: call XTPImageManager()->SetMaskColor(RGB(...)); before loading toolbar.  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |