Print Page | Close Window

Tab Control Icon

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=19965
Printed Date: 30 January 2025 at 8:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tab Control Icon
Posted By: starface100
Subject: Tab Control Icon
Date Posted: 16 July 2012 at 10:38am
Hi,

I want to have my tab control different Icons on the tabs.
The sample in c:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v15.0.1\Samples\Common\VB\TabManager\

shows the same picture on the tabs.

I want different pictures. How do I do that?
 I've browsed all topics, I even found similar questions, but never a solution...

See http://forum.codejock.com/forum_posts.asp?TID=11783&title=tabcontrol-header-icons for what I mean.
The answer is not giving me a clue...


Thanks in advance
Geek



Replies:
Posted By: giorgio
Date Posted: 17 February 2013 at 4:10pm
Before to load new doc set the Icon:

Private Sub LoadNewDoc()
    Static lDocumentCount As Long
    Dim frmD As frmDocument
    lDocumentCount = lDocumentCount + 1
    Set frmD = New frmDocument
    frmD.Caption = "Document " & lDocumentCount
    Set frmD.fMain = Me
    frmD.Icon = LoadPicture("C:\Program Files (x86)\Microsoft Visual Studio\Common\Graphics\Icons\Misc\face01.ico")
    frmD.Show
End Sub


Or you can add a parameter on sub sign:

Private Sub LoadNewDoc(ByVal sPathIcon As String)
    frmD.Icon = LoadPicture(sPathIcon)
End Sub




-------------
Codejock 15.3.1



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