Namespace: Consultingwerk.Windows.Controls
Class 
DatasetCodeAssistTextEditor Copy to Clipboard
Parent classes:
Inherits: System.Windows.Forms.TextBox

File:DatasetCodeAssistTextEditor
Purpose:WinForm TextBox derived Control that provides content
assist for ProDataset buffer and field names
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed May 04 15:22:02 CEST 2016
Notes:The handle of the Dataset that provides the source schema
for the content assist needs to be assigned to DatasetHandle
property of the control instance



Top Method Summary
Options Name Purpose
- InitializeComponent () Initializes the Visual Design
# InsertNewLine (KeyEventArgs) Handles insert of a new line in the Editor
# OnKeyDown (KeyEventArgs) Raises the KeyDown event
# OpenContentAssist (integer) Opens the Content Assist
# PopulateBufferFields (character, character) Populates the the list with the fields of a buffer
# LOGICAL PopulateListBox (character, logical) Populates the the list with the fields of a buffer
# PopulateTables (character) Populates the the list with the names of matching buffers
- ultraListView1_KeyDown (Object, KeyEventArgs) Event handler for the KeyDown event of the ultraListView1

Top Constructor Summary
Options Name Purpose
+ DatasetCodeAssistTextEditor () Constructor for the DatasetCodeAssistTextEditor class

Top Property Summary
Options Name Purpose
+ Consultingwerk.Windows.Controls.ICodeAssistSchemaProvider SchemaProvider


Method Detail
Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PROTECTED InsertNewLine (KeyEventArgs)

Purpose: Handles insert of a new line in the Editor
Notes:

Parameters:
args System.Windows.Forms.KeyEventArgs
The KeyEventArgs with the data for this event
Top

PROTECTED OnKeyDown (KeyEventArgs)

Purpose: Raises the KeyDown event
Notes:

Parameters:
args System.Windows.Forms.KeyEventArgs
The KeyEventArgs with the data for this event
Top

PROTECTED OpenContentAssist (integer)

Purpose: Opens the Content Assist
Notes:

Parameters:
piKeyValue INTEGER
The args:KeyValue of the KeyDown event arg or ?
Top

PROTECTED PopulateBufferFields (character, character)

Purpose: Populates the the list with the fields of a buffer
Notes:

Parameters:
pcTableName CHARACTER
The name of the table to return the fields from
pcFieldName CHARACTER
The pattern that buffer fields need to match (BEGINS)
Top

PROTECTED LOGICAL PopulateListBox (character, logical)

Purpose: Populates the the list with the fields of a buffer
Notes:

Parameters:
pcWord CHARACTER
The current word entered in the text editor when the content assist was opened
plPeriod LOGICAL
Logical value indicating if the period was pressed
Returns LOGICAL
Logical value indicating if the list was populated
Top

PROTECTED PopulateTables (character)

Purpose: Populates the the list with the names of matching buffers
Notes:

Parameters:
pcTableName CHARACTER
The pattern that buffer names need to match (BEGINS)
Top

PRIVATE ultraListView1_KeyDown (Object, KeyEventArgs)

Purpose: Event handler for the KeyDown event of the ultraListView1
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.KeyEventArgs
The KeyEventArgs with the data for this event


Constructor Detail
Top

PUBLIC DatasetCodeAssistTextEditor ()

Purpose: Constructor for the DatasetCodeAssistTextEditor class
Notes:



Property Detail
Top

PUBLIC Consultingwerk.Windows.Controls.ICodeAssistSchemaProvider SchemaProvider


Returns Consultingwerk.Windows.Controls.ICodeAssistSchemaProvider


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:41:25