Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - TabControl Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabControl Problem

 Post Reply Post Reply
Author
Message
SnoopDawg0 View Drop Down
Newbie
Newbie


Joined: 03 May 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote SnoopDawg0 Quote  Post ReplyReply Direct Link To This Post Topic: TabControl Problem
    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?
 
Back to Top
SnoopDawg0 View Drop Down
Newbie
Newbie


Joined: 03 May 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote SnoopDawg0 Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
SnoopDawg0 View Drop Down
Newbie
Newbie


Joined: 03 May 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote SnoopDawg0 Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2009 at 8:34am
Never mind i figured it out.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.