![]()  | 
 
Add Icon to ShortcutCaption | 
 
    Post Reply  
   | 
  
| Author | |
   
   moe188  
   
   Senior Member  
   Joined: 27 March 2006 Status: Offline Points: 225  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Add Icon to ShortcutCaptionPosted: 24 February 2009 at 5:37am  | 
 
| 
   
    
   hi, 
   
  is there any way to add an icon (16x16 or 32x32,...) to ShortcutCaption control? if so, please let me know how? thank you NOTE: please reply ASAP ![]()  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 February 2009 at 1:21pm | 
 
| 
   
    
   Did you try Icon property ?
    
   
   | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   moe188  
   
   Senior Member  
   Joined: 27 March 2006 Status: Offline Points: 225  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 February 2009 at 5:18pm | 
 
| 
   
    
   hi, 
   
  i checked your help file, but it's not clear how you can use the icon property, so little bit of help please...  .thank you  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25 February 2009 at 2:06am | 
 
| 
   
    Add ImageManager from CommandBars.ocx, load your ico or bmp in design time and add in code 
Set sb.Icon = ImageManager.GetImage(...) 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   cmm2006  
   
   Senior Member  
   Joined: 26 September 2006 Status: Offline Points: 118  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25 February 2009 at 1:52pm | 
 
| 
   
    
   Hi all, 
   
  I was wondering how to do the same thing, but how can I do it using the standard imagelist. I tried the following code but for some reason it's not showing the icon, some help here.... code: set sb.icon=imagelist1.listimages(index).extracticon  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2009 at 3:58am | 
 
| 
   
    
   You can't do it with ImageList :(
    
   
   | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   cmm2006  
   
   Senior Member  
   Joined: 26 September 2006 Status: Offline Points: 118  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2009 at 7:12am | 
 
   
   ![]() well that is not good at all, is there any chance that can be added in the next release? about the imagemanager, how can I add icons from an existing folder in my pc? thank you  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 February 2009 at 10:09am | 
 
| 
   
    
   Hi,
 
   
  Almost all our samples from CommandBars folder show it. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   moe188  
   
   Senior Member  
   Joined: 27 March 2006 Status: Offline Points: 225  | 
  
   
      Post Options
    
        Thanks(1)
      Quote   Reply
   
     Posted: 26 February 2009 at 1:59pm | 
 
| 
   
    
   
thank you all, 
   
  I tried the ImageManger control and it did worked with the following code: set sb.icon=imagemanager.icons.geticon(IconIndexHere, 0) and not: set sb.icon=imagemanger.getimage(...) thank you,  | 
 |
![]()  | 
 |
    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  |