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

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
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  RUN

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

 
User avatar
Willi Quintana
 
Posts: 1021
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: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests