Print Page | Close Window

OneNote colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=922
Printed Date: 03 May 2024 at 11:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OneNote colors
Posted By: Woody
Subject: OneNote colors
Date 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?



Replies:
Posted By: SuperMario
Date 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.


Posted By: Woody
Date Posted: 08 July 2004 at 5:44am
that helps, thanks



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