Reply To: Spinner in Goto Line/Column dialog box…

Product Compare Forums Multi-Edit Support Spinner in Goto Line/Column dialog box… Reply To: Spinner in Goto Line/Column dialog box…

#6416
deleyd
Participant

Ask and ye shall receive. Here’s a mod you can make to MeSys.s

1. In the Multi-Edit \src folder (e.g. "C:\Program Files\Multi-Edit\src") make a copy of file MeSys.s named MeSysDAVID.s

2. Edit MeSysDAVID.s

In macro GotoLine change the code:
[code:c9x3ruwm] // Integer control (line number)
DlgAddCtrl( Dlg, dlg_Integer, "",
dlg_PosOffset | 12, 1,
15, dlg_PosOffset | dlg_Units | 9,
Ctrl_Line_Id, 0, "/MIN=1" );
[/code:c9x3ruwm]
to
[code:c9x3ruwm] // Integer control (line number)
int TRefresh = Refresh;
Refresh = false;
Mark_Pos;
eof;
int NumLines = C_Line;
Goto_Mark;
Refresh = TRefresh;
DlgAddCtrl( Dlg, dlg_Integer, "",
dlg_PosOffset | 12, 1,
15, dlg_PosOffset | dlg_Units | 9,
Ctrl_Line_Id, 0, "/MIN=1/MAX="+str(NumLines) );
[/code:c9x3ruwm]
(This is for ME2006. ME9.10 has the same code but it’s formatted differently.)

Compile and Rebuild Macro Library.