JavaScript Editor js editor     Web development 



Main Page

When used on a project or form, this class provides a simple text editor in a dialog box that also contains buttons to format or save text, and to close the editor.

Category Reporting

Default Catalog

VisualВ FoxProВ Catalog\FoundationВ Classes\Output

Class

_showtext

Base Class

Form

Class Library

_reports.vcx

Parent Class

_form

Sample

...\Samples\Solution\Ffc\output.scx

Remarks

The main purpose of this class is to provide a controllable preview window to other classes in _reports.vcx. Therefore this dialog box has no button to load a new file (though you can add one in a subclass) and it defaults to read only for its edit box.

To use,drop the class on a project or, from the Component Gallery Item shortcut menu, select Add to Project. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. When you choose Create a new form from the selected class, Visual FoxPro opens a builder so you can specify the name of the form, then creates and opens the form in the Form Designer.

See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.

Properties, Events, Methods Description

cFixedFontName property

The font name for contents of the edit box.Default: Courier New

nFixedFontSze property

The font size for contents of the edit box.

Default: 9

cSourceFile property

The name of the source file to view or edit.

Default: ""

cTargetFile property

The name of the file to which you save the contents of the edit box.

Default: ""

lFixedFontBold property

Specifies a bold font for contents of the edit box.

Default: .F.

lFixedFontiItalic property

Specifies an italic font for contents of the edit box.

Default: .F.

lSuppressCaptionChange property

Prevents the dialog box caption from changing as the source file changes. This is useful for displaying the contents of a temporary file.

Default: .F.

SetFonts method

Applies the current font property characteristics to the edit box displaying the file.

Syntax: SetFonts(В )

Return: none

Arguments: none

GetFixedFont method

Uses a common dialog box to display fonts. Restricted to fixed font items.

Syntax: GetFixedFont(В )

Return: none

Arguments: none

cTargetfile_access method

Internal to the class.

cSourcefile_assign method

Internal to the class.

See Also



JavaScript Editor js editor     Web development