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
# OnKeyDown (KeyEventArgs) Raises the KeyDown event
# PopulateBufferFields (handle, 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
+ HANDLE DatasetHandle Gets and sets the handle of the Dataset used for code-completion


Method Detail
Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

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 PopulateBufferFields (handle, character)

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

Parameters:
phBufferHandle HANDLE
The handle of the buffer to add fields to the list
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 HANDLE DatasetHandle

Purpose: Gets and sets the handle of the Dataset used for code-completion
Notes:

Returns HANDLE


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:47:45