User Tools

Site Tools


making_20a_20text_20window_20read-only_20_28lbb_29

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

making_20a_20text_20window_20read-only_20_28lbb_29 [2018/03/31 13:19]
127.0.0.1 external edit
making_20a_20text_20window_20read-only_20_28lbb_29 [2018/04/17 17:00] (current)
tbest3112 Added syntax highlighting
Line 2: Line 2:
  
 //by Richard Russell, September 2016//\\ \\  A TEXTEDITOR control (or a TEXTBOX) can easily be made read-only using the _ES_READONLY stylebit, but this doesn'​t work with a **Text Window**. You can achieve the desired result using the code below:\\ \\  //by Richard Russell, September 2016//\\ \\  A TEXTEDITOR control (or a TEXTBOX) can easily be made read-only using the _ES_READONLY stylebit, but this doesn'​t work with a **Text Window**. You can achieve the desired result using the code below:\\ \\ 
 +<code lb>
       open "Read Only Text Window"​ for text as #w       open "Read Only Text Window"​ for text as #w
       hw = hwnd(#w)       hw = hwnd(#w)
Line 8: Line 9:
       #w "The quick brown fox jumps over the lazy dog."       #w "The quick brown fox jumps over the lazy dog."
       wait       wait
 +</​code>​
making_20a_20text_20window_20read-only_20_28lbb_29.txt ยท Last modified: 2018/04/17 17:00 by tbest3112