CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


_bm0 Rave Reports Developer Reference

TBaseReport. SetTab method

Top  Previous  Next

Declaration

procedure SetTab(NewPos: double; NewJustify: TPrintJustify; NewWidth: double; NewMargin: double; NewLines: byte; NewShade: byte);

 

Category

Tabs

 

Description

This method adds a tab setting.

NewPos

defines the starting position of the tab. If NewPos is set to the constant, NA, then the tab will start immediately after the previous tab box

NewJustify

defines whether the tab is left (pjLeft), right (pjRight) or center (pjCenter) justified. If a non-zero width is given, then a tab box is defined and the text will be justified within the tab box rather than justified at the tab position

NewMargin

defines the distance between the tab box side and the text in 1/100ths of an inch

NewLines

uses the BoxLineXxxx constants to define where lines are to be drawn around the tab box

NewShade

defines the percent of background shading to use for this tab box

 

See also

TBaseReport Class, ClearTabs, ResetTabs

 

Example (Delphi)

ClearTabs;

SetPen(clBlack, psSolid,1, pmCopy);

SetTab(0.5,pjCenter,3.5,0, BOXLINEALL,0);

SetTab(NA, pjCenter,1.0,0, BOXLINEALL,0);

SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0);

SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0);

Bold := true;

Tab(-2,NA,-2,-2,NA);

Print('Name');

Tab(NA,NA,-2,-2,NA);

Print('Number');

Tab(NA,NA,-2,-2,NA);

Print('Amount 1');

Tab(NA,-2,-2,-2,NA);

PrintLn('Amount 2');

Bold := false;

 

Example (C++Builder)

rp1->ClearTabs();

rp1->SetPen(clBlack, psSolid,1, pmCopy);

rp1->SetTab(0.5,pjCenter,3.5,0, BOXLINEALL,0);

rp1->SetTab(NA, pjCenter,1.0,0, BOXLINEALL,0);

rp1->SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0);

rp1->SetTab(NA, pjCenter,1.5,0, BOXLINEALL,0);

rp1->Bold = true;

rp1->Tab(-2,NA,-2,-2,NA);

rp1->Print("Name");

rp1->Tab(NA,NA,-2,-2,NA);

rp1->Print("Number");

rp1->Tab(NA,NA,-2,-2,NA);

rp1->Print("Amount 1");

rp1->Tab(NA,-2,-2,-2,NA);

rp1->PrintLn("Amount 2");

rp1->Bold = false;

 



You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com