FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TEdit on the RibbonBar
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
TEdit on the RibbonBar
Posted: Sat Jun 10, 2023 12:09 PM
Hi,

I put the TEdit control on the RibbonBar. Everything works fine as long as the mouse cursor is on the RibbonBar, otherwise TEdit is cleared. To protect myself from this I do:
Code (fw): Select all Collapse
oEdt:bChange:={|nKey,flfg,oEdt|oEdt:VarPut(oEdt:cText())}
However, Var Put (oEdt:text()) takes the text without the last pressed character.
I know the code of this symbol, but I don't know in which position to enter it.
How to find out the number of the current position in the line in TEdit (a la oGet:nPos) ?

Continue the discussion