Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example creates and customizes a tab strip.

C++

// Set number of sheets

spr->SetSheetCount(4);

// Set left most sheet   

spr->SetTabStripLeftSheet(2);

// Always show the tab strip

spr->SetTabStripPolicy(1);

HFONT fnt;

fnt = CreateFont(20,0,0,0,0,0,0,0,0,0,0,0,0,"Comic Sans MS");

// Set font for tab strip

spr->SetTabStripFont(fnt);

// Set ratio in relation to the width of the control

spr->SetTabStripRatio(1.5);

// This example uses GetTabStripFont

HFONT fnt;

fnt = spr->GetTabStripFont();

if (fnt)

{

    LOGFONT lf;

    GetObject(fnt, sizeof(LOGFONT), &lf);

    AfxMessageBox(lf.lfFaceName);

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.