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

Tab Control Icon

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


Joined: 11 August 2011
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote starface100 Quote  Post ReplyReply Direct Link To This Post Topic: Tab Control Icon
    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
Back to Top
giorgio View Drop Down
Newbie
Newbie


Joined: 17 February 2013
Location: Italy
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote giorgio Quote  Post ReplyReply Direct Link To This Post 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
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.