Navigation:  Set Configuration > General Information >

TASPRO.INI Explained

Print this Topic Previous pageReturn to chapter overviewNext page

The File that control a lot of the behaviors in TAS Professional is in every system that you will create the file name is TASPRO.INI.  This file is a text file that is read when ever you run TASPRO7.EXE (IDE) TASRUNTIME.EXE We will try to explain this very important file and what all the settings are in case you may need to edit this file.

 

Programmers note: You  can also use this file store and information about your application.

 

Note :        Most the options in this file are controlled and edited with the TP7SETUP.EXE or the TP7RTSETUP.EXE If your not used to editing .INI type files we recommend you email product support before making changes to this file.

 

This Chapter will attempt to document all possible switches and setting for this file. Most of these setting are controlled by several parts of the Professional powered by CAS development system.

 

This sections is called setup this section of the INI files sets up where your application paths are the default company code you want to start the program with

 

[Setup]

Caption=your caption here       This will change the caption of your runtime on the program bar.

DataDictPath=.\                This is the path to the projects data dictionary we recommend you use .\ here.

DefaultPath=.\                        The default path of where all programs are these files have extensions of .run .src .rtm .dfm

DfltCompanyCode=B               The default Company code to use.

DfltRunPrg=.\tas_menu        This is normally your menu program.

MultiUser=1                        0=Off 1=On

MainMenu=0                        0=Off 1=On If this is the main menu.

FullSetup=1                        0=Off  1=On This used internally by tp7setup.exe

 

DfltSkin=skins\macos.skn        This is a new feature released by CAS with this in your .INI and the proper skins file                                name and path the user or programmer can change the entire look of there programs for more                                information search for skins.

 

BtrieveDictionary=00=Off 1=On. In version 7.4 and above the programmer can choose the database dictionaries types to use the standard codebase type files or the optional Pervasive(btrieve) files as the data dictionaries. We recommend that you use Codebase files unless you find a need to limit the use codebase databases. If this line is left out of the taspro.ini file TASPRO will use the default codebase type files. All programs in TASPRO IDE and rutime have been adjusted to use this feature. Also to use this feature you will have to run the wtascnvtbtrv.rwn program to write your codebase dictionaries to btreive. This program will not make any changes to your codebase  dictionaries files.
TPath=     Use to Define the Path in for the TPath() Function.

 

This will allow you to control how the print preview will look to the user.

[Report Preview]

WindowState=wsNormal

;WindowState=wsMaximized

Height=700

width=950

 

 

These are setting to make TASPRO7 more compatible with TP5WIN.EXE 16bit windows version most of these settings are setup in the TP7SETUP.EXE

 

[TP5WIN]

Use Old Reports=1             0=Off 1 = On When Converting from tas5 programs to tas7 windows it was not possible to preserve the old text reports programs With this you can

Esc Close=10=Off 1 = On New feature after 6.16R if this is set to 1 when the user click on the X at the top of the screen the program will act like the user pressed the ESC key. This is only for 5.1 programs program with the extention of .run Again this feature is exclusive of the CAS version of Tas Professional.

NormalBkg=clBtnFace

NormalText=clBtnText

BoxBkg=clWindow

BoxText=clWindowText

EnterBkg=clWindow

EnterText=clBlack

DisplayBkg=clWindow

DisplayText=clBlack

MsgBkg=clWindow

Video Rows=42

Video Cols=100

Font Size Reg=15

Font Size Input=15

Row Pixels=12

Col Pixels=8

Font Size Text=9

Reduce Scrn Wdth=0

Shadow Width=2

Underscore Menu Chr=1

Allow Gray=1

Init Window Caption=

View Form Size=0

Remove Vert Box Chr=1

Form Bkg Color=12632256

Form Font Color=0

Disp Bkg Color=16777215

Disp Font Color=0

Entry Bkg Color=65535

Entry Font Color=0

Menu Main Bkg Color=16777215

Menu Main Text Color=0

Menu Selection Bkg Color=255

Menu Selection Text Color=0

Window Bkg Color=16777215

Window Text Color=0

Window Selection Bkg Color=255

Window Selection Text Color=0

          Index Disp Bkg Color=12600000   //These next settings are a new feature in TAS7 powered by CAS

          Index Disp Font Color=0               // that allows the colors to change if a filed is an index field.

Index Entry Bkg Color=10002256 // Used in Old 5.1 Screens if these are in your INI file then you can edit these settings

Index Entry Font Color=16777215 // from the Skins tab in the TP7SETUP.EXE.

 

 

       These next 5 settings control how the old 5.1 programs screen will be drawn these setting are controled in the tp5setup.exe and TP7SETUP.EXE These were added to the system by CAS and are may only be available to TAS PRO powered by CAS.

 

Remove All Box Chr=0

No3d=0                

Remove Box Corners=1

Convert Box Chr=1

UseTerminalFont=0

Use Old Reports=1 //This will allow TAS runtime to use tas5 type reports.

The internally used names for deferent objects. Using the CL type names will allow the user to change there look in        there program using windows themes.

 

[Color]

MsgText=clBlack

WindowBkg=clWindow

WindowText=clBlack

MenuBkg=clWindow

MenuText=clBlack

ButtonBkg=clBtnFace

ButtonText=clBtnText

ChoiceBkg=clHighlight

ChoiceText=clHighlightText

EcolorBkg=clYellow

EcolorText=clBlack

ShadowBkg=clWindowFrame

ShadowText=clWindowText

 

[Misc]

UnderScoreMenuChr=1

AllowGray=0

InitCaption=

 

       These are settings for TAS Professional 5.0 Compatibility.

 

[TAS50]

AM Specifier=A

PM Specifier=P

Time Separator=:

Date Type=MDY

Date Separator=/

Dollar Chr=$

Printer Dollar Chr=$

Comma Chr=,

Decimal Chr=.

Default Printer Num=1

Dflt Prtr CTL Name=GENERIC.CTL

Upper Left Corner=218

Upper Right Corner=183

Lower Left Corner=212

Lower Right Corner=188

Left Vertical=179

Right Vertical=186

Upper Horizontal=196

Lower Horizontal=205

MU Num Retries=2

MU Retry Delay=2

Extra Mem Area Size=60

Pro 6 Path=                                Out moded by the TPath in the Setup header.

Yes=Y

No=N

WeekStart=0

         

       These settings are controlled and set in the TASPRO7.EXE (IDE) in the Compile screen.

[Compiler Settings]

Run Code Size=600

Compiled Code Size=600

Constant Buff Size=600

Screen Buff Lines=1000

Number of Fields=1000

Number of Labels=1000

Lib Directory=.\

Include Warning Errors=1

Compile in Debug Mode=0

 

       These settings are used to control both codebase and Btrieve settings they are setup in the TP7SETUP.EXE        program

 

[FileManager]

UseCodeBase=0

ServerName=

ServerUserName=PUBLIC

UseBtrvMemos=0

UseFileMgr=0

CBTransProcActive=0

 

       undocumented at this time

 

[Default New Form]

FormFontName=Arial

FormFontSize=10

       

       Default setting for the user.

 

[User Options]

MultiRT = 0 // if set to 1 this allows runtime to run Multi - runtimes from same folder

AskYesNo=1

AMString=AM

PMString=PM

Msg Size Chg=0

CS Server Name=

CS User Name=

CS Password=

CS Silent=0

 

       Setting for Email interface built into TASPRO7.EXE, TASRUNTIME.EXE

 

[EMail Settings]

SMTP Server=NONE

User EMail Address=

User Name=

POP3 Server=NONE

POP3 Pswd=

POP3 User Name=

Encoding Type=MIME

Character Set=US-ASCII

Time Out=60

SMTP Pswd=

SMTP User Name=

 

       Settings to allow TASPRO to use MAPI  to send email using programs like outlook and outlook express.

[IMAP]

USE=1

DIALOG=1

 

       Last 9 Source files edited in system using TASPRO7.EXE (IDE)

 

[Source File History]

 

       Setting for the Screen Painter

 

[Screen Editor Settings]

ObjInspColWidth=146

NewFormFontName=Arial

NewFormFontSize=10

DfltTASObjHeight=24

ScreenGridX=8

ScreenGridY=8

ScreenGridSnapOn=1

[Compiler Settings]

Run Code Size=3000

Compiled Code Size=3000

Constant Buff Size=3000

Screen Buff Lines=10000

Number of Fields=10000

Number of Labels=10000

Lib Directory=K:\adv60

Include Warning Errors=1

Compile in Debug Mode=1

 

       Setting that Control the SRC editor in TASPRO7.EXE

 

[Source Editor Settings]

MarginLine=1

KeyMap=Default

CBXIndex=0

ReservedFontColor=0

ReservedFontBold=1

ReservedFontItalics=0

OptionFontColor=255

OptionFontBold=1

OptionFontItalics=0

FunctionFontColor=32768

FunctionFontBold=1

FunctionFontItalics=0

CommentFontColor=16711680

CommentFontBold=0

CommentFontItalics=1

StringFontColor=128

StringFontBold=1

StringFontItalics=0        

 

 


Page url: http://www.cassoftware.com/tas/manual/taspro_iniexplained.htm