![]()  | 
 
Bitmap on Button | 
 
    Post Reply  
   | 
  
| Author | |
   
   djenric  
   
   Newbie  
   Joined: 21 July 2006 Status: Offline Points: 16  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Bitmap on ButtonPosted: 21 July 2006 at 12:43pm  | 
 
| 
   
    
   Hallo, is it possible to use bitmaps on a button
 
   
  like in the button sample and use also the skin 
framework? thx 
    | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 21 July 2006 at 2:30pm | 
 
| 
   
    Yes. You don't even have to do anything - SkinFramework will do it automatically. 
Just open Button sample and add  
XTPSkinManager()->LoadSkin(_T("......\\SkinFramework\\Styles\\Office2007.cjstyles")); 
to see how it works. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   djenric  
   
   Newbie  
   Joined: 21 July 2006 Status: Offline Points: 16  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 22 July 2006 at 5:25am | 
 
| 
   
    
   Great. It works.
 
   
  But i have still a problem. The CXTButton seems 
not to support the multiline option. Is it possible 
to solve this? 
thx 
    | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 July 2006 at 9:09am | 
 
| 
   
    
   Hi,
 
   
  Try BS_XT_TWOROWS style 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   djenric  
   
   Newbie  
   Joined: 21 July 2006 Status: Offline Points: 16  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25 July 2006 at 2:53pm | 
 
| 
   
    
   Yes, so the text is shown below the image. 
 
   
  But the BS_MULTINIE option is ignored by the 
CXTButton. 
    | 
 |
![]()  | 
 |
   
   djenric  
   
   Newbie  
   Joined: 21 July 2006 Status: Offline Points: 16  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 July 2006 at 2:59pm | 
 
| 
   
    
   Can you fix it?
    
   
   | 
 |
![]()  | 
 |
   
   djenric  
   
   Newbie  
   Joined: 21 July 2006 Status: Offline Points: 16  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 28 July 2006 at 9:10am | 
 
| 
   
    
   No solution?
    
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 28 July 2006 at 12:38pm | 
 
| 
   
    Hello, 
Solution is override CXTButtonTheme and its 
DrawButtonText (see code in XTButtonTheme.cpp) 
to apply new theme call 
m_wndButton.SetTheme(new CMyButtonTheme); 
    | 
 |
| 
   
     
     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  |