Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - OneNote colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OneNote colors

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


Joined: 07 July 2004
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Woody Quote  Post ReplyReply Direct Link To This Post Topic: OneNote colors
    Posted: 07 July 2004 at 8:01am
Is it possible to apply a single color to the OneNote-style MDI tabs, instead of multiple colors which do not match my program's color scheme? And can tab font size be increased - just how far can I go with customization?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2004 at 2:02pm
This sample code illustrates how to change the tab color of the first three tabs in a MDI application. The tabs must already be created before you can change their color.
    fMainForm.CommandBars.TabWorkspace.Item(0).Color = vbRed
    fMainForm.CommandBars.TabWorkspace.Item(1).Color = vbGreen
    fMainForm.CommandBars.TabWorkspace.Item(2).Color = vbBlue

This will turn off OneNoteColors:
     fMainForm.CommandBars.TabWorkspace.PaintManager.OneNoteColor s = False

You can't change the font, take a look at the properties of the TabPaintPanager object to see all the different properties you can customize.  Also take a look at the TabManager Sample project.

Edited by SuperMario
Back to Top
Woody View Drop Down
Newbie
Newbie


Joined: 07 July 2004
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Woody Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2004 at 5:44am
that helps, thanks
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.191 seconds.