Print Page | Close Window

TabControl icon 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=6624
Printed Date: 17 November 2024 at 3:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl icon problem
Posted By: Majek
Subject: TabControl icon problem
Date 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)



Replies:
Posted By: Majek
Date Posted: 24 March 2007 at 3:38am
Sorry, I figured it out I forgot to put TC.PaintManager.ShowIcons = True =x


Posted By: mehdi0016
Date 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 !!?

-------------
):)


Posted By: herbat
Date Posted: 10 April 2007 at 9:49am

I have this same problem.

Adam



-------------
Adam


Posted By: Oleg
Date Posted: 10 April 2007 at 3:03pm
Hi,
 
Show code/sample that show what do you do.


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


Posted By: Majek
Date 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


Posted By: yair-edsoft
Date Posted: 14 April 2007 at 12:06pm
hi,
Don't Forget to use the:
PaintManager.SetIconSize
 
 


-------------
yair



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