Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 9,660 times

Contents

Downloads

Related Categories

VB Syntax+ - Readme

VB Syntax+ 1
Free
Unknown Software Publisher
Requires SSubTmr.DLL
More Information & Purchase
Unknown Software Publisher

Readme

VB Syntax+ README file

About

The VB Syntax+ control allows you to add a VB Syntax Highlighter to your Application.

Installation

In order to install this application, please copy the file to your system directory. Then click Run on your start menu, and enter Regsvr32.exe vbwColour.ocx. To add the ocx control to your project, click Project|Properties. Then click browse, and select vbwColour. You will now see a new icon in your toolbox.

Properties

ALL properties can be set at both design time and run time.

Apart from the normal Rich Text Box properties, there are:

AutoIndent - Specifies whether to automattically indent text when the user presses the return key
CanCopy - Can we currently copy text?
CanPaste - Can we currently paste text?
Colour_Comment - Sets the comment colour
Colour_Keyword - Sets the keyword colour
Colour_Text - Sets the text colour
CurrentColumn - Returns the current column
CurrentLine - Returns the current line
GetFirstLineVisible - Returns the first visible line in the rich text box.
hWnd - Returns the rich text box's hWnd
Indent - Sets the indent value when the user presses the tab key.
LineCount - Returns the number of lines
Mode - Sets the mode. Either vbwText, vbwVB or vbwRTF

Methods

Clear - Clears the text box
ColourText - Colours the whole text box as plain text, regardless of the mode
ColourVB - Colours the whole text box as VB, regardless of the mode
Copy - Copies the selected text to the clipboard
Cut - Cuts the selected text to the clipboard
InsertCode - Inserts code at the cursor point. If you use .SelText property, the text will not be coloured.
Paste - Pastes the clipboard contents

Events

BeforeCut (Cancel As Boolean) - Occurs before cutting text. Setting Cancel to true cancels the action
BeforeCopy (Cancel As Boolean)
- Occurs before copying text. Setting Cancel to true cancels the action
BeforePaste (Cancel As Boolean)
- Occurs before pasting text. Setting Cancel to true cancels the action
ProgressChange - Occurs when the colouring progress changes
ProgressComplete - Occurs when colouring is complete

Examples

There is an example project (prjExample.vbp) included with this control.

Known Issues

ScrollBars property is not yet implemented (due to a VB bug)

Product Support

If you would like to report a bug, please email support@vbweb.co.uk . Please note that we will take no responsibility for any loss, however caused through using this or any other VB Web control.

Comments

  • Posted by James Crowley on 20 Jan 2003

    have you downloaded http://www.developerfusion.com/show/336/ ?

  • bug

    Posted by zaibatsu on 20 Jan 2003

    If you press BackSpace key when you have 3 or less characters you get "Run-time error '5' Invalid procedure call or argument."

    If I want to open the source, SSUBTMR.DLL is missing