show line number in memo edit
show line number in memo edit
hi, i need show line and columm with an memoedit, i already make this in format get, but in memo normal i dont know, someone can help me?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: show line number in memo edit
TryNop wrote:hi, i need show line and columm with an memoedit, i already make this in format get, but in memo normal i dont know, someone can help me?
Code: Select all
oGet:GetRow()
oGet:GetCol()
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
This is a sample but it is not working properly. Antonio?
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL oGet, cVar := "This is a test"
LOCAL oRow, oCol
DEFINE DIALOG oDlg;
SIZE 400, 400
@ 0, 0 GET oGet VAR cVar MEMO;
SIZE 100, 100
oGet:bKeyDown = { || ShowRowPos( oGet, oRow, oCol ) }
@ 10, 0 SAY oRow PROMPT "nRow = " + LTrim( Str( oGet:GetRow() ) )
@ 11, 0 SAY oCol PROMPT "nCol = " + LTrim( Str( oGet:GetCol() ) )
oDlg:bStart = { || oGet:SetPos( 0 ) }
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
STATIC FUNCTION SHOWROWPOS( oGet, oRow, oCol )
oRow:SetText( "nRow = " + LTrim( Str( oGet:GetRow() ) ) )
oCol:SetText( "nCol = " + LTrim( Str( oGet:GetCol() ) ) )
RETURN NIL
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: