Predict Text UDF Working
It sub classes the edit control and matches the current word through the Database
& sets selection in accordance. Functions
Predicts Text from an User-Defined Database.
Sets the Predicted Text when Enter is pressed. *
Pressing Backspace deletes the current selection.
Support Editing, Overwriting, Updating, Deleting the List.
Has the Feature to add New words the user types in the control, to the List.
Supports Sensitive and In-Sensitive Prediction.
Supports Auto-completion and Auto-Suggestion.
Edit and Input controls supported
>Support RichEdit Controls.
Automatically limit the New Words.
Supports Phrase (Post-Space) Prediction
Future Updates
Support Auto-suggestion. [Coming soon]Done
Note That if you set a Password Char for the Edit Box the Prediction will automatically get Unregistered.
* Enter is supported Only in Edit Controls.
For Input Control the user can use GuiSetAccelerators [Thanks to M23].Check Example 3
; #CURRENT# =====================================================================================================================
;_RegisterPrediction
;_UpdatePredictList
;_UnRegisterPrediction
;_RegisterListingSpaceWords
;_RegisterListingNewWords
;_GetSelectedText
;_GetListCount
;_GetCurrentWord
;_GetCaretOffset
; SetSuggestion_Dimensions
; ===============================================================================================================================
; #INTERNAL_USE_ONLY# ===========================================================================================================
;_New_WndProc
; AddToArray
; MakeArray
;_Edit_SubClass
;_AutoExit
;_PredictText
;_GetSpaceText
;_SetSelection
;_CtrlSetStyle
;_CtrlGetStyle
;_RemoveBit
; GetLineHeight
; Suggest_Show
; Suggest_PopuplateItems
; Suggest_SetPos
; ===============================================================================================================================
Screen Shots Example 1 - Multiple Edits and Basic Functionality Example 2 - Adding New Words Example 3 - Password Char & Input Controls Example 4 - Supports Post-Space Prediction
Example 5 - AutoSuggestion
Please Notify for any other Updates and Bugs. ChangeLog V1.0
-First Release V1.1
-Now Supports New Words added by Pressing Enter
-Supports Input Controls for Enter Key [Thanks to M23] V1.2
-Now Supports Prediction after Space
-New Words are now Automatically Limited V1.3
-Converted to Iterative
-Now is more faster
V1.4
-Rewritten the UDF with Regular expressions.
-Added support for Auto-Suggestion
-Bug for incorrect insertion when inbetween typing is now cleared
V1.5
-Fixed the bug for which MouseMove wasn't detected.
V1.6
-Fixed: Scroll Bar unaccessible.
-Fixed: Suggestion doesn't hide when space is typed in non-space text suggestion.
V1.7
-Changed: Searching is now done with regular expressions. Lot of speed is increased.
PredictText V1.7
v1.7 PredictText(UDF).7z Previous Downloads: 890
Regards
Phoenix XL