TEdit on the RibbonBar

TEdit on the RibbonBar

Postby Natter » 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: Select all  Expand view
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) ?
Natter
 
Posts: 1221
Joined: Mon May 14, 2007 9:49 am

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests