Method | Description | |
---|---|---|
Display ( IVwEnv vwenv, int hvo, int frag ) : void |
All our display method does is to display the name of each item in the fake virtual property. If it is the active object we are editing, at the relevant position in the relevant owner, we display the name using the special marker property.
|
|
InitDefault ( ) : void |
This is the default initialization of the VC. It is adequate if 1. A list of possible values for the real property can be obtained from FDO by calling ReferenceTargetCandidates Enhance JohnT: support the following also: 2. The signature of the real property is CmPossibility (or a subclass), and the actual list can be obtained from the ListRootId.
|
|
Insert ( IVwEnv vwenv, int hvo ) : void |
Insert a display of the relevant property for the indicated object, which is atomic.
|
|
InsertSeq ( IVwEnv vwenv, int hvo ) : void |
Insert a display of the relevant property for the indicated object, which is a sequence or collection.
|
|
OnGotFocus ( IVwRootBox rootb ) : void | ||
OnKeyPress ( EditingHelper ehelp, |
This is the real guts of type-ahead. It is called by the client whenever a key is pressed. It returns true if it handled the key press, which it does if the current selection is in a type-ahead name property.
|
|
OnLostFocus ( IVwRootBox rootb ) : void | ||
SelectionChanged ( IVwRootBox rootb, IVwSelection sel ) : void |
Receives a notification that the selection in the root box has changed.
|
|
TypeAheadSupportVc ( int tag, SIL.FieldWorks.FDO.FdoCache cache ) : System |
Method | Description | |
---|---|---|
Lookup ( ITsString tssTyped, ICmObject &objNew ) : ITsString |
Given the string the user typed, generate the best available guess as to which of the options he intended. Set hvoNew to 0 (and return tssTyped) if it doesn't match any option. It is assumed that he is setting an object in property m_tag of object m_hvoParent.
|
Method | Description | |
---|---|---|
SelectedObject ( IVwRootBox rootb, IVwSelection sel, int &hvoParent, int &ihvo ) : int |
Determine whether the current selection is at a place suitable for type-ahead. If not, answer 0. (In this case the values of hvoParent and ihvo should not be relied on.) If so, indicate the object whose property may be set by type-ahead (hvoParent), the object in the relevant property that is selected (return result), and its index within the property (0 if atomic).
|
|
SwitchTagAndFixSel ( int newTagName, IVwRootBox rootb ) : void |
public Display ( IVwEnv vwenv, int hvo, int frag ) : void | ||
vwenv | IVwEnv | |
hvo | int | |
frag | int | |
return | void |
public Insert ( IVwEnv vwenv, int hvo ) : void | ||
vwenv | IVwEnv | |
hvo | int | |
return | void |
public InsertSeq ( IVwEnv vwenv, int hvo ) : void | ||
vwenv | IVwEnv | |
hvo | int | |
return | void |
protected Lookup ( ITsString tssTyped, ICmObject &objNew ) : ITsString | ||
tssTyped | ITsString | |
objNew | ICmObject | |
return | ITsString |
public OnGotFocus ( IVwRootBox rootb ) : void | ||
rootb | IVwRootBox | |
return | void |
public OnKeyPress ( EditingHelper ehelp, |
||
ehelp | EditingHelper | |
e | ||
modifiers | Keys | |
vwGraphics | IVwGraphics | |
return | bool |
public OnLostFocus ( IVwRootBox rootb ) : void | ||
rootb | IVwRootBox | |
return | void |
public SelectionChanged ( IVwRootBox rootb, IVwSelection sel ) : void | ||
rootb | IVwRootBox | |
sel | IVwSelection | |
return | void |
public TypeAheadSupportVc ( int tag, SIL.FieldWorks.FDO.FdoCache cache ) : System | ||
tag | int | |
cache | SIL.FieldWorks.FDO.FdoCache | |
return | System |