rmTabBook.cc  
  A Custom NoteBook Control
 


The stock dBASE NoteBook control (seen at the top of this test form) has a number of problems which remain unresolved.

There is an ugly top right corner which takes the colour of the NoteBook page area rather than the parent object background colour.

Unselected tabs are framed with this same NoteBook page area colour.

NoteBook tabs fail to take the colour of the NoteBook page area.

The rmTabBook control solves these colour problems, and in addition provides definable tab widths, and definable individual page colours.

It is however a fake Notebook, consisting of paintbox controls, and works by changing the form page on clicking a tab, to reveal the controls on that form page and creating the illusion that those controls are actually on the rmTabBook surface.

Examine the code in the supplied test form to see how easy this is to implement.

The control can be used in conjunction with a subForm where the main form pages are being used for another purpose, and cannot therefore be utilised in this way.