Cursor position in a get memo

Cursor position in a get memo

Postby MGA » Fri Mar 08, 2024 8:46 pm

how can I get the cursor position in a "get memo"?

ex:

xxxxx
yyyyy|(CURSOR POSITION)

oGet:GetCol() return 6

the correct one would be 11
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: Cursor position in a get memo

Postby Willi Quintana » Fri Mar 08, 2024 11:10 pm

Hola, prueba esto:
Code: Select all  Expand view

       REDEFINE GET oObs ;
                VAR cObs MEMO ;
                ID 119 OF oDlg
                oObs:bGotFocus = { || oObs:SetSel( 0, 0 )} //,;

 
User avatar
Willi Quintana
 
Posts: 1002
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: Cursor position in a get memo

Postby Antonio Linares » Sat Mar 09, 2024 6:55 am

oMGet:GetRow()
oMGet:GetCol()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests