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

TabControl icon problem

 Post Reply Post Reply
Author
Message
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Topic: TabControl icon problem
    Posted: 12 March 2007 at 7:24pm
Hi, I'm having one small problem with the TabControl. Everything works great except no matter what I try, the icons will not appear inside the tab headers. I've tried using the ImageManager control and the .NET ImageList to store the icons for the tabs but was unsuccessful. Below is my code. I have 2 16x16 icons inside the ImageManager with the id 1 and 2. Any help would be greatly appreciated, Tom.
 
 
'TC = TabControl
'IM = ImageManager
 
TC.SetImageList(IM)
TC.Icons = IM.Icons
 
TC.InsertItem(0, "Applications", ctlApps.Handle.ToInt32, 1)
TC.InsertItem(1, "Search", ctlSearch.Handle.ToInt32, 2)
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2007 at 3:38am
Sorry, I figured it out I forgot to put TC.PaintManager.ShowIcons = True =x
Back to Top
mehdi0016 View Drop Down
Newbie
Newbie


Joined: 05 February 2007
Location: Iran
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mehdi0016 Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2007 at 7:06am
in vb6 i've problem with tab icon.
i use mswindows imagelist control with xtreme tab ,but i can't see icon !?
i try setimagelist and paintmanager.showicon...but still no icons !!?
):)
Back to Top
herbat View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2006
Location: Poland
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote herbat Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2007 at 9:49am

I have this same problem.

Adam

Adam
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: 10 April 2007 at 3:03pm
Hi,
 
Show code/sample that show what do you do.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2007 at 5:07pm
I figured it out, I was missing TC.PaintManager.ShowIcons = True.
Everything works now, this is my code:
 
 
TC.Icons = IM.Icons 
TC.InsertItem(0, "Applications", ctlApps.Handle.ToInt32, 1)
TC.InsertItem(1, "Search", ctlSearch.Handle.ToInt32, 2)
TC.PaintManager.ShowIcons = True
Back to Top
yair-edsoft View Drop Down
Newbie
Newbie
Avatar

Joined: 14 April 2007
Location: Israel
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote yair-edsoft Quote  Post ReplyReply Direct Link To This Post Posted: 14 April 2007 at 12:06pm
hi,
Don't Forget to use the:
PaintManager.SetIconSize
 
 
yair
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.156 seconds.