Lescasse Consulting
 Home    Company    News    Prices    Download    Buy    Forums   
Read Me
Buy
Forums
Resume
AntiSpam 1.2
wBackup 1.11
NetAccess 2.0
Visual APL 1.0 
APL+Win 7.3 
APL+Win Products 
APL+Win Objects™ 
APL+Win Training 
APL+Web Services
APL+Web Component 
APL+ History
Dyalog.Net Tutorial
Conferences 
Powerpoint
White Papers
Web Hosting
References
Links
 
APL+Win Objects™ 6.0

TADO5
TADO5 Tutorial
TAPLDraw5
TAPLEdit5
TAPLSession5
TAbale5
TAboutBox5
TAccess5
TAgent5
TBlatMail5
TButton5
TCDO5
TCRC5
TCancelButton5
TCheck5
TCheckGroup5
TChildForm5
TChooseColor5
TChooseFont5
TClipBoard5
TClock5
TCodeStats5
TColors5
TCombo5
TComboDrive5
TComboFilter5
TComboList5
TComboTree5
TCommandBar5
TCommandButton5
TControlClass5
TCueCard5
TDHTML5
TDHTMLEditor5
TDateTime5
TDateTimeFr5
TDates5
TDemoHandlers5
TDisplay5
TDOS5
TDualSelect5
TEdit5
TEditAmount5
TEditDir5
TEditEnter5
TEditFile5
TEditGrid5
TEditList5
TEditListview5
TEditMenu5
TEditNum5
TEditSelect5
TEditSpin5
TEmail5
TError5
TExampleForm5
TExcel5
TExcel5 Tutorial
TFindReplace5
TFOne5
TFTP5
TFTP5 Tutorial
TFileCompare5
TFileMenu5
TFileMenuDef5
TFlatButton5
TForm5
TFormClass5
TFormEditor5
TFrame5
TGetDir5
TGif5
TGifForm5
TGifWb5
TGoMenu5
TGraphX5
TGrid5
TGridDisplay5
TGridPrint5
TGUID5
THLine5
THTML5
THTML5 Tutorial
THTTP5
THelp5
THelpMenu5
TImagelist5
TInfo5
TIniFile5
TInstall5
TInternet5
TJpg5
TJpgWb5
TLabel5
TList5
TListview5
TLock5
TLogs5
TMAPI5
TMath5
TMDIForm5
TMSOutlook5
TMaskEdit5
TMedia5
TMenu5
TMessage5
TModalCall5
TMsgBox5
TNavigator5
TNetwork5
TNonVisualClass5
TODBC5
TOKButton5
TObject5
TOpenFile5
TOption5
TOptionGroup5
TOutlook5
TOutlookMail5
TOWCSpread5
TPDF5
TPFKeys5
TPage5
TPassword5
TPicture5
TPing5
TPopupMenu5
TPowerpoint5
TPowerpoint5 Tutorial
TPrinter5
TProgress5
TProgressDlg5
TQuestion5
TRegistry5
TRegistryKey5
TResource5
TRichEdit5
TSPX5
TSQLDMO5
TScheduler5
TScroll5
TSelector5
TSpinner5
TSplitter5
TStatus5
TStopWatch5
TTest5
TTestError5
TTextFile5
TTimer5
TTip5
TTipForm5
TTLI5
TToolBar5
TToolbox5
TToolsMenu5
TTrackbar5
TTranslate5
TTree5
TVLine5
TViewMenu5
TWebBrowser5
TWebServer5
TWebSite5
TWebSiteNet5
TWinMenu5
TWord5
TYesNo5
    Visits:  2825 (41 on line) Last Update: Dec 22, 2003  
    TFOne5    Printer Friendly  
 
Description   Inheritance   Example   Properties   Methods
 
 Description

The TFOne5 Object helps you use the Tidestone Formula One ActiveX control
in your APL+Win applications.  Formula One can be downloaded for a trial period and/or
purchased at http://www.tidestone.com.  The Formula One ActiveX control is nice because it is
almost 100% compatible with Excel but has a much smaller memory footprint.  With Formula One
you may load Excel spreadsheets in your APL+Win application, create new ones, print them,
format them, etc.  

See also: TDundasGrid5 TExcel5 TFlexGrid5 TFormOne5 TGrid5 TSpread5

Description   Inheritance   Example   Properties   Methods
 
 Inheritance

Inherits from:  TObject5

Description   Inheritance   Example   Properties   Methods
 
 Example
 
 

The above form is generated by the following APL+Win Objects™ code:


      'ff'Œwi'*Create' 'TForm5'('*caption' 'TFOne5 Example')('*size'300 400)'DemoShow'
      'ff.ss'Œwi'*Create' 'TFOne5'('wherelc'0 0'>>' '>>')('attach'1 2 3 4)
      'ff.ss'Œwi'Add'(2 2)(10 4½'This' 'is' 'Formula' 'One'123 19991231 '0,1234' '78999')
      'ff.ss'Œwi'rowtext'(1+¼10)((›'Row '),¨•¨1+¼10)
      'ff.ss'Œwi'coltext'(2 3 4 5)((›'Column '),¨•¨1+¼4)
      'ff.ss'Œwi'hdralign'(0 0 1)'right'
      'ff.ss'Œwi'Select'2 2 11 5
      'ff.ss'Œwi'FontName' 'Arial Black'
      'ff.ss'Œwi'FontSize'12
      'ff.ss'Œwi'BackColor'(192 192 255)
      'ff.ss'Œwi'GetValues'
                               
   This       is Formula   One 
    123 19991231  0.1234 78999 
   This       is Formula   One 
    123 19991231  0.1234 78999 
   This       is Formula   One 
    123 19991231  0.1234 78999 
   This       is Formula   One 
    123 19991231  0.1234 78999 
   This       is Formula   One 
    123 19991231  0.1234 78999 

      'ff.ss'Œwi'*SetSelection'1 1 1 1
 
Description   Inheritance   Example   Properties   Methods
 
 Properties
 
class    
Description:  Return current object class 
Syntax:  class„'obj' Œwi 'class' 
coltext    
Description:  Get or Set column headings 
Syntax:  'obj' Œwi 'coltext' indices {column headings} 
indices:  column indices or Ð for all columns 
column headings: nested vector of column headings 
hdralign    
Description:  Get or Set the row headings alignments 
Syntax: {res„'} 'obj' Œwi 'hdralign' (A B C){alignment} 
A B C: booleans representing top_leftheader row_headers column_headers 
alignment:  any of 'left' 'center' or 'right' 
help    
Example: 
0 0½'ff' Œwi '*Create' 'TForm5' ('*caption' 'TFOne5 Example') ('*size'300 400) 'DemoShow' 
0 0½'ff.ss' Œwi '*Create' 'TFOne5' ('wherelc'0 0'>>' '>>') ('attach'1 2 3 4) 
0 0½'ff.ss' Œwi 'Add' (2 2) (10 4½'This' 'is' 'Formula' 'One'123 19991231 '0,1234' '78999') 
'ff.ss' Œwi 'rowtext' (1+¼10) ((›'Row '),¨•¨1+¼10) 
'ff.ss' Œwi 'coltext' (2 3 4 5) ((›'Column '),¨•¨1+¼4) 
'ff.ss' Œwi 'hdralign' (0 0 1) 'right' 
'ff.ss' Œwi 'Select'2 2 11 5 
'ff.ss' Œwi 'FontName' 'Arial Black' 
'ff.ss' Œwi 'FontSize'12 
'ff.ss' Œwi 'BackColor' (192 192 255) 
'ff.ss' Œwi 'GetValues' 
'ff.ss' Œwi '*SetSelection'1 1 1 1 
rowtext    
Description:  Get or Set row headings 
Syntax:  'obj' Œwi 'rowtext' indices {row headings} 
indices:  row indices or Ð for all rows 
row headings: nested vector of row headings 
sheets    
Description:  Get or set the number of sheets in an Formula One book 
Syntax:  'obj' Œwi 'sheets'nbsheets 
Description   Inheritance   Example   Properties   Methods
 
 Methods
 
Add    
Description:  Installs an APL nested array in the Formula One grid at specified location 
Syntax:  res„'obj' Œwi 'Add' (row col)nested_array 
row,col:  row and column where to start installing nested array 
nested_array:  any depth 2 APL nested matrix 
res:  row1,col1,row2,col2: next available cell at bottom and at right of nested array 
AddAcross    
Description:  Installs a title above a group of columns 
Syntax:  res„'obj' Œwi 'AddAcross'row(startcol,endcol)title 
res:  row1,col1,row2,col2: next available cell at bottom and at right of nested array 
AdjustHdrWidth    
Description:  Automatically adjusts the row headings width 
Syntax:  'obj' Œwi 'AdjustHdrWidth' 
AutoSize    
Description:  Auto sizes column width and row height for all selected cells 
Syntax:  'obj' Œwi 'AutoSize' 
AutoSizeWithHeaders    
Description:  Auto sizes column width and row height for all selected cells 
the columns are made wide enough for the column headers as well as the specified cells. 
BackColor    
Description:  Sets the background color for all selected cells 
Syntax:  'obj' Œwi 'BackColor' (specs){selection} 
specs: (256ƒR G B) or (R G B) 
selection: optional selection specification 
BorderColor    
Description:  Sets the border colors for all selected cells 
Syntax:  'obj' Œwi 'BorderColor' (color1 color2 color3){selection} 
color1,color2,color3: (256ƒR G B) or (R G B) 
color1: outline border color 
color2: vertical line border color 
color3: horizontal line border color 
selection: optional selection specification 
BorderStyle    
Description:  Sets the border for all selected cells 
Syntax:  'obj' Œwi 'BorderStyle' (specs){selection} 
specs: border type for outline vertical sep lines and horizontal sep lines 
may include: no thin medium dashed dotted thick double hairline 
             medium_dashed dashed_dotted medium_dashed_dotted dash_dot_dot 
             medium_dash_dot_dot slanted_dashed_dotted 
selection: optional selection specification 
Clear    
Description:  Empties the spreadsheet 
Syntax:  'obj' Œwi 'Clear' 
FontName    
Description:  Request or change the font name for selected cells 
Syntax:  'obj' Œwi 'FontName'fontname{selection} 
FontSize    
Description:  Request or change the font size for selected cells 
Syntax:  'obj' Œwi 'FontSize'fontsize{selection} 
Get    
Description:  Gets part of whole of currently selected sheet and return nested array 
Syntax:  'obj' Œwi 'Get' {selection} 
selection: numeric or character selection 
Use: 'obj' Œwi 'Get' ('obj' Œwi '*Selection') to return current selection 
GetSelections    
Description:  Returns a numeric matrix of current selected ranges 
Syntax:  'obj' Œwi 'GetSelections' 
GetValues    
Description:  Gets part of whole of currently selected sheet and return nested array 
Same as Get method but transforms formatted numeric cells into numerics 
Syntax:  'obj' Œwi 'GetValues' {selection} 
selection: numeric or character selection 
Use: 'obj' Œwi 'GetValues' ('obj' Œwi '*Selection') to return current selection 
HAlign    
Description:  Sets the horizontal alignment for all selected cells 
Syntax:  'obj' Œwi 'HAlign' (specs){selection} 
specs: one of: 'general' 'left' 'center' 'right' 'fill' 'justify' 'across' 
selection: optional selection specification 
MyFooter    
Description:  Returns my standard print footer as a suitable argument to PrintFooter method 
Syntax:  'obj' Œwi 'MyFooter' 
NOTE: adapt this method to your own needs or better copy it and adapt it 
MyHeader    
Description:  Returns my standard print header as a suitable argument to PrintHeader method 
Syntax:  'obj' Œwi 'MyHeader' 
NOTE: adapt this method to your own needs or better copy it and adapt it 
New     Description: Create a new instance of TFOne5
Example:
      'obj' Œwi '*Create' 'TFOne5'

PaletteIndex    
Description:  Returns the color palette index of a given RGB color 
Example:  'obj' Œwi 'PaletteIndex' (2 3½192 192 192 0 0 255) 
     or:  'obj' Œwi 'PaletteIndex' (256ƒ255 255 0) 
Print    
Description:  Prints the specified range or whole worksheet now 
'Print'0  „… print with no initial dialog box 
'Print'1  „… first displays a print dialog box 
You may use the following methods before printing: 
'obj' Œwi '*PrintArea' 'A1:C3;A11:C13'    © to define the print area 
'obj' Œwi '*PrintBottomMargin'.5          © to define the print bottom margin in inches 
'obj' Œwi '*PrintColHeading'1             © to say if column headings are to be printed 
'obj' Œwi '*PrintCopies'3                 © to define the number of copies printed by default 
'obj' Œwi 'PrintFooter'footer             © to define the page footer printed on each page 
'obj' Œwi '*PrintFooterMargin'inches      © to define the distance from bottom of page to footer 
'obj' Œwi '*PrintGridLines'1              © to say if grid lines are to be printed 
'obj' Œwi '*PrintHCenter'1                © to say if page must be horizontally centered 
'obj' Œwi 'PrintHeader'header             © to define the page header printed on each page 
'obj' Œwi '*PrintHeaderMargin'inches      © to define the distance from top of page to header 
'obj' Œwi '*PrintLandscape'boolean        © to say if page must be printed in lansdcape mode 
'obj' Œwi '*PrintLeftMargin'inches        © to define the left margin in inches 
'obj' Œwi '*PrintLeftToRight'boolean      © to define if pages are to be printed left to right 
'obj' Œwi '*PrintNoColor'boolean          © to say if the workbook has to be printed in color 
npages„'obj' Œwi 'PrintPreview'page       © to preview page N before printing 
'obj' Œwi '*PrintRightMargin'inches       © to define the right margin in inches 
'obj' Œwi '*PrintRowHeading'1             © to say if row headings are to be printed 
'obj' Œwi '*PrintScale'scale              © to define the print scale (between 10 and 400) 
'obj' Œwi '*PrintScaleFitHPages'N         © to fit the print job to N pages horizontally 
'obj' Œwi '*PrintScaleFitToPage'boolean   © indicate whether to use FitHPages and FitVPages 
'obj' Œwi '*PrintScaleFitVPages'N         © to fit the print job to N pages vertically 
'obj' Œwi '*PrintTitles'formula           © 'A1:IV2,A1:A16384' prints 1st 2 rows and 1st col on every page 
'obj' Œwi '*PrintTopMargin'inches         © to define the print top margin in inches 
'obj' Œwi '*PrintVCenter'1                © to say if page must be vertically centered 
PrintDefault    
Description:  Uses various methods to set up my default print parameters 
Syntax:  'obj' Œwi 'PrintDefault' 
PrintLandscape    
Description:  Indicates whether printing must be made in landscape mode or portrait mode 
Syntax:  'obj' Œwi 'PrintLandscape'boolean 
Protect    
Description:  Protects or unprotects selected cells 
Syntax:  'obj' Œwi 'Protect'boolean' 
boolean:  1 if cells are to be protected 
Read    
Description:  Reads a file into the Formula One control 
Syntax:  'obj' Œwi 'Read'filetype filename 
filetype for version 6: excel5 excel7 excel95 excel8 excel97 fone3 fone4 fone5 fone6 tabbed tabbedv 
filetype for version 5: excel4 excel5 fone3 fone5 tabbed tabbedv 
filename: full DOS path name with extension 
ReadTextFile    
Description:  Read a comma delimited ASCII text file into the spreadsheet 
Syntax:  'obj' Œwi 'ReadTextFile' textfilename 
textfilename:  complete ASCII file name 
Example: 'ff.ss' Œwi 'ReadTextFile' 'c:\temp\sales.txt'  
Select    
Description:  Selects one or more cells 
Syntax:  'obj' Œwi 'Select' {selection} 
selection:  a numeric argument suitable for the SetSelection method 
       or:  a character argument suitable for the Selection property 
       or:  omitted to select the whole spreadsheet 
Sort    
Description:  Sorts lines according to values in 1, 2 or 3 columns 
Syntax:  'obj' Œwi 'Sort'col1 {col2} {col3} 
col1,col2,col3: column numbers (use negative numbers for descending sorts) 
VAlign    
Description:  Sets the vertical alignment for all selected cells 
Syntax:  'obj' Œwi 'VAlign' (specs){selection} 
specs: one of: 'top' 'center' 'bottom' 
selection: optional selection specification 
Validation    
Description:  Set validation rule for selected cells 
Syntax:  'obj' Œwi 'Validation'rule text 
rule: an expression involving a Xn cell name. Example:  ' (A1 > 100) ' 
text: the error message text in case rule validation fails 
Version    
Description:  Returns Formula One control majopr and minor version numbers 
Syntax:  'obj' Œwi 'Version' 
Write    
Description:  Writes the current Formula One control into a file 
Syntax:  'obj' Œwi 'Write'filename filetype 
filetype for version 6: excel5 excel7 excel95 excel8 excel97 fone3 fone4 fone5 fone6 html htmldata tabbed tabbedv 
filetype for version 5: excel4 excel5 fone3 fone5 html htmldata tabbed tabbedv 
filename: full DOS path name with extension 
Description   Inheritance   Example   Properties   Methods
 
 This entire Web site has been dynamically generated by APL+Win Objects™ 6.0
 For all questions contact:  info@lescasse.com
 Copyright © 2003-2005 Lescasse Consulting. All rights reserved.