Skip to main content

Tab controls look bad when using XP style.

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Executing a GUI application using a manifest file causes the windows and controls to display with the Windows XP style but the tab controls look bad.  Specifically, the background of labels, radio-buttons and check-boxes doesn't match the tab color.

Resolution:

The problem is that with XP style the tab is not the same as the window's background color, is not a solid color but graduated (lighter at the top, darker at the bottom) and labels, radio-buttons and check-boxes take their background color from the main window.  The result is an unattractive tab presentation.

Setting the transparent property fixes the problem for labels but radio-buttons and check-boxes don't have a transparent property.

If one can't avoid placing radio-buttons and check-boxes on tabs a workaround is to place a frame on each tab page and set the frame color and fill to be the same as the main window.

The attached program, tabmod.cbl, demonstrates this workaround.

Attachments:

tabmod.zip

Old KB# 2775