TabControl icon problem |
Post Reply |
Author | |
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
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)
|
|
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Sorry, I figured it out I forgot to put TC.PaintManager.ShowIcons = True =x
|
|
mehdi0016
Newbie Joined: 05 February 2007 Location: Iran Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 !!? |
|
):)
|
|
herbat
Newbie Joined: 03 October 2006 Location: Poland Status: Offline Points: 9 |
Post Options
Thanks(0)
|
I have this same problem. Adam |
|
Adam
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Show code/sample that show what do you do.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
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 |
|
yair-edsoft
Newbie Joined: 14 April 2007 Location: Israel Status: Offline Points: 14 |
Post Options
Thanks(0)
|
hi,
Don't Forget to use the:
PaintManager.SetIconSize
|
|
yair
|
|
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 |