Print Page | Close Window

TabControl Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14203
Printed Date: 16 November 2024 at 6:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl Problem
Posted By: SnoopDawg0
Subject: TabControl Problem
Date Posted: 03 May 2009 at 1:26pm
Public Sub AddIcon( _
   ByVal Handle As Long, _
   ByVal Command As Long, _
   ByVal imageState As XTPImageState _
)

End Sub
Private Sub Form_Load()
   
    With Me.TabControl
        .Icons.AddIcon ImageList.ListImages(1).Picture.Handle, 101, xtpImageNorm
    End With
   
End Sub


Because TabControl by default doesn't allow images to be next to the text why doesn't this successfully add the image to the tab?
 



Replies:
Posted By: SnoopDawg0
Date Posted: 03 May 2009 at 7:35pm
I now tried this;

Set TabControl2.Icons = ImageManager.Icons
 
With Me.TabControl2
      .PaintManager.ShowIcons = True
   End With

Then it shows the same image for every tab, how can i make each tab have a different image?



Posted By: SnoopDawg0
Date Posted: 07 May 2009 at 8:34am
Never mind i figured it out.


Posted By: Oleg
Date Posted: 08 May 2009 at 1:09am
Hi,
 
Yes, you need ShowIcons  + Set TabControl2.Icons  + Set Image index (TabControl.Item(2).Image)
 
 
Please use issuetrack for support related questions in future


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net