Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with function
#2
I would rather download a specialized program.

This code highlights the first difference. You should also set ES_NOHIDESEL style for both Edit controls.

Code:
Copy      Help
...
sel wParam
,case 5
,int h1=id(3 hDlg)
,int h2=id(4 hDlg)
,int i
,int minlen=iif(texto1.len<texto2.len texto1.len texto2.len)
,for i 0 minlen
,,if(texto1[i]!=texto2[i])
,,,SetFocus h1
,,,SendMessage h1 EM_SETSEL i i+1
,,,SendMessage h1 EM_SCROLLCARET 0 0
,,,SetFocus h2
,,,SendMessage h2 EM_SETSEL i i+1
,,,SendMessage h2 EM_SCROLLCARET 0 0
,,,break

,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)