This textbox (and others with different styles, but always multi-line)
does not permit modification of existing text without making one unholy
mess of it. Deleting a character in the middle of a line does work,
as is proven by Control Get Text to t$, and immediately thereafter
Control Set Text to t$, but this moves the cursor to position 0, and
should in any event not be necessary. Just deleting a character seems
to leave the previous position intact, with the new superimposed.
What can be the problem?
------------------
does not permit modification of existing text without making one unholy
mess of it. Deleting a character in the middle of a line does work,
as is proven by Control Get Text to t$, and immediately thereafter
Control Set Text to t$, but this moves the cursor to position 0, and
should in any event not be necessary. Just deleting a character seems
to leave the previous position intact, with the new superimposed.
What can be the problem?
Code:
t$=Trim$(InvNte$) Control Add TextBox, hDlg&, %CZivfTxt, t$, 16, 207, 192, 40, _ %ES_MULTILINE, %WS_EX_CLIENTEDGE Control Send hDlg&, %CZivfTxt, %EM_LIMITTEXT, 200, 0 Control Send hDlg&, %CZivfTxt, %WM_SETFONT, mnFont&, 1 hCtl&=GetDlgItem (hDlg&, %CZivfTxt) TxtWndProc& = SetWindowLong (hCtl&, %GWL_WNDPROC, CodePtr(TxtSubProc))
------------------
Comment