Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
line replacement in dialogs
#2
Two choices:

1. Use multiline edit controls. Then you don't have to use escape sequences like [] or ''. If closing the dialog using Enter is actual, remove ES_WANTRETURN style from edit boxes, and use Ctrl+Enter to add new line.

2. Use str.escape to unescape b and c:
Code:
Copy      Help
,,b.getwintext(id(5 hDlg))
,,c.getwintext(id(6 hDlg))
,,b.escape(0)
,,c.escape(0)
,,a.getclip
,,a.findreplace(b c)
,,a.setclip


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)