I seem to remember a single line edit box in WPTools 4, didn't use it then but now I'd like to in order to provide live spell checking for data entry. I can't find it on the components installed. Has it disappeared and if so is it possible to emulate it with the WPRichText/DBWPRichText?
Single line edit box (Version 4's WPTEdit)
-
-
- Offizieller Beitrag
This object does it: (copy&paste!)
Codeobject WPRichText1: TWPRichText LayoutMode = wplayNormal ScrollBars = ssNone EditOptions = [wpActivateUndo, wpActivateUndoHotkey, wpNoVertScrolling] XOffset = 15 Width=300 Height = 22end
now add this:
Codeprocedure TForm1.WPRichText1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = VK_RETURN then key := 0; end;
and you have a one line edit control.