SavoyLog ActiveX Control User Guide

Similar documents
SavoySecsI ActiveX Control User Guide

SavoySecsII ActiveX Control User Guide

SavoyGem ActiveX Control User Guide

Savoy ActiveX Control User Guide

GWXSlider ActiveX Control

How to Design Programs

Using Microsoft Excel

GWXGauge ActiveX Control

The Direct Excel Connection plugin PRINTED MANUAL

Xerox Versant 3100 Press Stock Library Manager

Beijer Electronics Data Collector. Manual. English MAEN826B,

3B2 Word. User Manual

ME10 - Solid Edge - Converter

Included with the system is a high quality speech synthesizer, which is installed automatically during the SymWord setup procedure.


Starting Microsoft Visual Studio 6.0 And Exploring Available Controls Tools

CS 200. Lecture 02 Structured Word Processing Styles. 02 Styles. CS 200 Spring Friday, May 9, 2014

Agilent MassHunter Workstation Software Report Designer Add-in

Creating a Multi-line Plate

DATA WAREHOUSE BASICS

Custom Import Client User Guide

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

EXPRESSCLUSTER X Integrated WebManager

Budget Exercise for Intermediate Excel

Hotmail Documentation Style Guide

Quick Reference Guide 8 Excel 2013 for Windows Keyboard Shortcut Keys

Datastore Model Designer

Word Training - Maintaining Consistency Supporting Handout Designing Styles within a Word Template Version: Mac

Microsoft Access 2010

See Types of Data Supported for information about the types of files that you can import into Datameer.

Windows 7. More Skills 11 Manage Fonts. To complete this project, you will need the following file: You will save your file as: CHAPTER 7

New ini file entries COMMAND WAIT TIMEOUT This command should only be changed from the default if instructed by Lantica Technical Support.

Working with Charts Stratum.Viewer 6

Fall 2016 Exam Review 3 Module Test

1. Step-by-Step: Change Fonts and Font Sizes a. Before you begin these steps, be sure to LAUNCH Microsoft Word. b. Connect your USB flash drive to

Enhanced Financial Reporting. Overview

CE 4.1 (MP) to Vista Enterprise Migration Guide for Designers and Instructors

AASHTO Materials Standard Template Users Guide

Full file at Chapter 2: Creating a User Interface

Table of Contents. Part I Introduction 3 Part II Installation 3. Part III How to Distribute It? 3 Part IV Office 2007 &

myinsight for Documentum User Guide Documentum Administrator, Webtop, Taskspace

Easy Windows Working with Disks, Folders, - and Files

Kean University. System Guide. cougar.kean.edu. Your window to the world

DB-EA4D Printer Driver Manual

Welcome to Calendar ActiveX Control, this ActiveX Control for Access, Visual Basic,Visual Foxpro,Delph

Folders Projects, Folders and Menus. Table of Contents. 1.0 Folder Types. 2.0 Folder Menu Commands

KeyWallPRO QuickStart Guide - File Management and Saving -

JavaScript: More Syntax and Using Events

FA-B30 Version 1.0 Basic Label Printing Software

Importing Closed Caption Files into QuickScan Revised: 1/12/07

Chapter 3 Syntax, Errors, and Debugging. Fundamentals of Java

TTWeb Quick Start Guide

PowerCenter Repository Maintenance

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

POS Designer Utility

Using Custom Number Formats

Word 1 Module 3. Word 1. Module 3

Windows NT Server Printer Driver Upgrade Instructions

1. Introduction to Microsoft Excel

Excel 2016 Basics for Windows

MSOffice WORD Microsoft Office 20 13

Section 1-3A: Creating a hierarchically numbered list style

Midterm I - CSE11 Fall 2013 CLOSED BOOK, CLOSED NOTES 50 minutes, 100 points Total.

Using Advanced Options 14

JavaScript: More Syntax

Ocean Wizards and Developers Tools in Visual Studio

Our first program is a simple calculator, which will carry out the arithmetic operations of adding, subtracting, multiplying and dividing numbers.

Excel & Business Math Video/Class Project #28 IF Function, ISBLANK function and Building a Check Register

Full file at Excel Chapter 2 - Formulas, Functions, Formatting, and Web Queries

MAIL MERGE LABELS USE THE MAIL MERGE WIZARD

Introduction. Create a New Project. Create the Main Form. Assignment 1 Lights Out! in C# GUI Programming 10 points

Getting Started. Custom Reports Software

Adding Distribution Settings to a Job Profile (CLUI)

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Office Administrator

Visitor Management Host User Guide

v5: How to restore Exchange databases

This is the empty form we will be working with in this game. Look under the properties window and find the following and change them.

Boxoft PDF Stamper does NOT require Adobe Acrobat, and produces documents compatible with Adobe Acrobat Reader Version 5 and above.

Microsoft Excel 2010 Handout

CS 200. Lecture 02 Structured Word Processing Styles. 02 Styles. CS 200 Winter 2018

Variables, Constants, and Data Types

CE221 Programming in C++ Part 1 Introduction

Lesson 1: Creating and formatting an Answers analysis

ONLY IF YOU HAVE VISTA: If you are using Windows Vista, you will need to download the driver from link on the web version of this KB article.

Identifying Updated Metadata and Images from a Content Provider

CIS 3260 Intro. to Programming with C#

User manual of VeryDOC AutoCAD to PDF Converter. User Brochure

Technical Bulletin Elixir PrintDriver (NT)/ Windows 2000

CSCI 135 Programming Exam #1 Fundamentals of Computer Science I Fall 2014

Excel 2016 Basics for Mac

Sample Only Back Office User Guide Last Updated: September 2007

Introduction to CS Page layout and graphics. Jacek Wiślicki, Laurent Babout,

Vanguide Application Set Installation Guide. Overview. Introduction

ECDL Module 4 REFERENCE MANUAL

Generating/Updating code from whole project

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

11_Mitchell_indexFinal.qxd 8/25/06 10:18 AM Page 195 Index

Creating Codes with Spreadsheet Upload

Transcription:

ActiveX Control User Guide Jazz Soft, Inc.

Revision History 1 Revision History Version Date Name Description 1.00 Nov, 13 th, 2009 Hikaru Okada Created as new document - 2 -

Table of Contents 2 Table of Contents 1 Revision History...2 2 Table of Contents...3 3 SavoyLog...4 3.1 Properties...5 3.1.1 Appearance...5 3.1.2 BorderStyle...6 3.1.3 Date...7 3.1.4 DateFormat...8 3.1.5 FontBold...9 3.1.6 FontFaceName...10 3.1.7 FontItalic...11 3.1.8 FontSize...12 3.1.9 IniFileName...13 3.1.10 IniSection...14 3.1.11 LastLine...15 3.1.12 LineMax...16 3.1.13 Log...17 3.1.14 LogBakCount...18 3.1.15 LogFileName...19 3.1.16 LogSize...20 3.1.17 SelectedLine...21 3.1.18 Time...22 3.2 Methods...23 3.2.1 AboutBox...23 3.2.2 Clear...24 3.2.3 LoadIniFile...25 3.2.4 Setup...26 3.2.5 Trace...29-3 -

3 SavoyLog SavoyLog control is an assistant product to add logging feature to the application software. Text message will be displayed on the screen, too. If log file size exceeds specified size limit, SavoyLog creates backup file. Properties Name Appearance BorderStyle Date DateFormat FontBold FontFaceName FontItalic FontSize IniFileName IniSection LastLine LineMax Log LogBakCount LogFileName LogSize SelectedLine Time Description Gets or sets the value that determines the appearance of a SavoyLog control. Gets or sets whether the SavoyLog control has a border. Gets or sets whether date is displayed on the screen Gets or sets the format of date expression. Gets or sets whether font is normal or bold. Gets or sets font face name for list box. Gets or sets whether font is normal or italic. Gets or sets the font height. Gets or sets INI file name to read/write settings. Gets or sets section name in INI file to read/write settings. Gets or sets whether SavoyLog always selects last line in the list box. Gets or sets the maximum number of lines in list box. Gets or sets whether logging is enabled. Gets or sets the number of back-up file for logging. Get or sets the log file name. Gets or sets the log file size in kilobyte. Gets or sets the selected line number. Gets or sets whether time is displayed on the screen Methods Name AboutBox Clear LoadIniFile Setup Trace Description Opens version information dialog box on the screen. Clears all the text in the list box. Loads settings from INI file and initialize properties. Opens setup dialog box on the screen. Append text message to screen and log file. - 4 -

3.1 Properties 3.1.1 Appearance Gets or sets the value that determines the appearance of a SavoyLog control. Value Description 0 Flat 1 Etched Appearance As Integer short GetAppearance() void SetAppearance(short).Appearance = 0.Appearance = 1 ' flat ' sunken m_ctrl.setappearance(0); m_ctrl.setappearance(1); // flat // sunken - 5 -

3.1.2 BorderStyle Gets or sets whether the SavoyLog control has a border. Value Description 0 No border 1 Fixed single border BorderStyle As Integer short GetBorderStyle() void SetBorderStyle(short).BorderStyle = 0.BorderStyle = 1 ' no border ' with border m_ctrl.setborderstyle(0); m_ctrl.setborderstyle(1); // no border // with border - 6 -

3.1.3 Date Gets or sets whether date is displayed on the screen. If this property is True, date information will be inserted at the beginning of each line. Value True False Description Date information will be inserted. No date information will be inserted. Date As Boolean BOOL GetDate() void SetDate(BOOL).Date = True m_ctrl.setdate(true); - 7 -

3.1.4 DateFormat Gets or sets the format of date expression. User can select one of the followings: Value Description 0 YYYY/MM/DD 1 MM/DD/YYYY 2 DD/MM/YYYY 3 MMM, DDth, YYYY Format 0 is used in Japan. Format 1 is popular in USA. Format 2 is used in most of the countries in Europe. Since sometimes people get confused among such numbers, format 3 is very effective to eliminate ambiguities. Format 3 uses first 3 letters of month in English expression, append st, nd, rd or th to the day, and 4-digit year expression. DateFormat As Integer short GetDateFormat() void SetDateFormat(short).DateFormat = 3 m_ctrl.setdateformat(3); - 8 -

3.1.5 FontBold Gets or sets whether font is normal or bold. Value True False Description Bold Normal weight FontBold As Boolean BOOL GetFontBold() void SetFontBold(BOOL).FontFaceName = Arial.FontSize = 12.FontBold = False.FontItalic = False m_ctrl.setfontfacename( Arial ); m_ctrl.setfontsize(12); m_ctrl.setfontbold(false); m_ctrl.setfontitalic(false); - 9 -

3.1.6 FontFaceName Gets or sets font face name for list box. FontFaceName As String CString GetFontFaceName() void SetFontFaceName(LPCTSTR).FontFaceName = Arial.FontSize = 12.FontBold = False.FontItalic = False m_ctrl.setfontfacename( Arial ); m_ctrl.setfontsize(12); m_ctrl.setfontbold(false); m_ctrl.setfontitalic(false); - 10 -

3.1.7 FontItalic Gets or sets whether font is normal or italic. Value True False Description Italic Normal FontItalic As Boolean BOOL GetFontItalic() void SetFontItalic(BOOL).FontFaceName = Arial.FontSize = 12.FontBold = False.FontItalic = False m_ctrl.setfontfacename( Arial ); m_ctrl.setfontsize(12); m_ctrl.setfontbold(false); m_ctrl.setfontitalic(false); - 11 -

3.1.8 FontSize Gets or sets the font height. FontSize As Long long GetFontSize() void SetFontSize(long).FontFaceName = Arial.FontSize = 12.FontBold = False.FontItalic = False m_ctrl.setfontfacename( Arial ); m_ctrl.setfontsize(12); m_ctrl.setfontbold(false); m_ctrl.setfontitalic(false); - 12 -

3.1.9 IniFileName Gets or sets INI file name to read/write settings. If INI file name is either full path name or containing relative reference of folder name, INI file will be created and read in such location. Otherwise, INI file will be created in Windows OS system folder. For this reason, it is highly recommended using with folder name. If current directory is the location, add./ at the beginning. Either / (slash) or (back slash) can be used for separator of folder name. IniFileName As String CString GetIniFileName() void SetIniFileName(LPCTSTR).IniFileName =./Savoy.ini m_ctrl.setinifilename(./savoy.ini ); - 13 -

3.1.10 IniSection Gets or sets section name in INI file to read/write settings. If multiple SavoyLog control were embedded in one project, it is possible to share same INI file by changing section name. Default setting is SavoyLog. IniSection As String CString GetIniSection() void SetIniSection(LPCTSTR).IniSection = "Host" [Host] section m_ctrl.inisection("host"); // [Host] section - 14 -

3.1.11 LastLine Gets or sets whether SavoyLog always selects last line in the list box. LastLine As Boolean BOOL GetLastLine() void SetLastLine(BOOL).LastLine = True m_ctrl.setlastline(true) - 15 -

3.1.12 LineMax Gets or sets the maximum number of lines in list box. If actual number of lines in the list box exceeded this number, SavoyLog will remove older lines. LineMax As Integer short GetLineMax() void SetLineMax(short).LineMax = 5000 m_ctrl.setlinemax(5000); - 16 -

3.1.13 Log Gets or sets whether logging is enabled. If this property is enabled, processing information will be written in log file. If this property is disabled, nothing will be written in log file. Value True False Description Write to log file Do not write log file Log As Boolean BOOL GetLog() void SetLog(BOOL).Log = True m_ctrl.setlog(true); - 17 -

3.1.14 LogBakCount Gets or sets the number of back-up file for logging. If actual file size of log file exceeded LogSize property, SavoyLog control will rename the file name and make a new empty log file. If number of back-up file reached to the value of LogBakCount property, SavoyLog control will delete oldest back-up file. LogBakCount As Integer short GetLogBakCount() void SetLogBakCount(short).LogBakCount = 10 m_ctrl.setlogbakcount(10); - 18 -

3.1.15 LogFileName Get or sets the log file name. Log file will be created in current directory. LogFileName As String CString GetLogFileName() void SetLogFileName(LPCTSTR).LogFileName =./Savoy m_ctrl.setlogfilename(./savoy ); - 19 -

3.1.16 LogSize Gets or sets the log file size in kilobyte. If actual file size of log file exceeded LogSize property, SavoyLog control will rename the file name and make a new empty log file. If number of back-up file reached to the value of LogBakCount property, SavoyLog control will delete oldest back-up file. LogSize As Long long GetLogSize() void SetLogSize(long).LogSize = 1024 m_ctrl.setlogsize(1024); - 20 -

3.1.17 SelectedLine Gets or sets the selected line number. If this number is 0, the first line (top line) will be selected. If it is negative number, the last line (bottom line) will be selected. However, if LastLine property was True, the setting of SelectedLine property will be ignored and the last line will be always selected. SelectedLine As Integer short GetSelectedLine() void SetSelectedLine(short).SelectedLine = -1 m_ctrl.setselectedline(-1); - 21 -

3.1.18 Time Gets or sets whether time is displayed on the screen. If this property is True, time information will be inserted at the beginning of each line. Value True False Description Time information will be inserted. No time information will be inserted. Time As Boolean BOOL GetTime() void SetTime(BOOL).Time = True m_ctrl.settime(true); - 22 -

3.2 Methods 3.2.1 AboutBox Opens version information dialog box on the screen. Sub AboutBox() void AboutBox() Return Value None..AboutBox m_ctrl.aboutbox(); - 23 -

3.2.2 Clear Clears all the text in the list box. Sub Clear() void Clear() Return Value None..Clear m_ctrl.clear(); - 24 -

3.2.3 LoadIniFile Loads settings from INI file and initialize properties. If loading was failed, values in persistent resource will be set. LoadIniFile method probably is called at the beginning of application, since it retrieves saved parameters by Setup method. Function LoadIniFile() As Boolean BOOL LoadIniFile() Return Value Return true if loading was successful. Otherwise return false. If false was returned, IniFileName property or IniSection property might be incorrect. Private Sub Form_Load() SavoyLog1.LoadIni End Sub void CxxxView::OnInitialUpdate() {... m_ctrl.loadini();.... } - 25 -

3.2.4 Setup Opens setup dialog box on the screen. If user modified parameter and press OK button, data will be written in INI file. Log Tab Item Enable logging File name Number of backup files Maximum size of each file Description Checked if logging is enabled. Log file name. Number of backup files. Size of log file. Font Tab - 26 -

Item Font list box Size Bold Italic Description All available fonts are displayed in this list box. Height of the font. Checked if font is bold. Checked if font is italic. List Box Tab Item Date Date format Description Checked if date information is inserted in list box. Date format. Choose from followings: YYYY/MM/DD (Japan) MM/DD/YYYY (USA) DD/MM/YYYY (Europe) MMM, DDth, YYYY (strict expression) - 27 -

Time Maximum lines Always select last line Checked if time information is inserted in list box. Maximum number of lines in list box. Checked if last line is always selected. Function Setup(lpszCaption As String) As Boolean BOOL Setup(LPCTSTR lpszcaption) Argument lpszcaption Description Caption title of dialog box. If this value is NULL or (empty) string, the string of IniSection property will be used for caption tile. Return Value If user pressed OK button and parameters were saved in INI file successfully, Setup method returns true. If user pressed Cancel button or parameter saving was failed, Setup method returns false..setup "Savoy Logging Settings" m_ctrl.setup("savoy Logging Settings"); - 28 -

3.2.5 Trace Append text message to screen and log file. Sub Trace(lpszText As String) void Trace(LPCTSTR lpsztext) Argument lpsztext Description Message to be displayed and logged into file. Return Value None..Trace Copyright(C) 2009 Jazz Soft, Inc. m_ctrl.trace( Copyright(C) 2009 Jazz Soft, Inc. ); - 29 -