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 GetTabStripRatio

double deuce;

int decimal, sign;

char *buffer;

char str[200];

deuce = spr->GetTabStripRatio();

if (deuce < 1)

{

buffer = _fcvt( deuce, 2, &decimal, &sign );

strcpy(str, "The tab strip ratio is set to 0.");

strcat(str, buffer);

AfxMessageBox(str);

}

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