Uneditable Text Area

BlitzPlus Forums/BlitzPlus Programming/Uneditable Text Area

MattVonFat(Posted 2004) [#1]
I want to make a text area unedible but readable. Someone said there was a lib for this that someone had made but i can't seem to find it.

Can anyone help?


Eikon(Posted 2004) [#2]
Credit goes to Nullmind:
; lib "user32.dll"
; SendMessage%(hWnd%,Msg%,wParam%,lParam%):"SendMessageA"
Const EM_SETREADONLY = $CF
Global win=CreateWindow("Readonly textbox",64,64,320,240)
Global Txt=CreateTextArea(0,0,1,1,win)
SendMessage QueryObject(Txt,1),EM_SETREADONLY,True,0



GfK(Posted 2004) [#3]
Slightly OT: I find it astounding that you should have to resort to userlibs to achieve such basic functionality. Just when I think B+ can't possibly become any more of a joke, it does.


Wiebo(Posted 2004) [#4]
b+ is userlib jungle, atm... I hope the next update adds some more basic stuff it already should've had.


code(Posted 2004) [#5]
Same here We definately need right click menus and full status bar support.


Rimmsy(Posted 2004) [#6]
.


MattVonFat(Posted 2004) [#7]
Thanks for that.


MattVonFat(Posted 2004) [#8]
Is there anyway to get to the top of a text area? I tried using the SetSliderValue but that didn't work.

Does any one know how to do it?


WolRon(Posted 2004) [#9]
Thanks for the code Eikon.


Eikon(Posted 2004) [#10]
You're welcome. Had to dig this one up earlier, myself.


aab(Posted 2004) [#11]
em. I usually just set its text again every loop and so any changes are negated. although this would be too slow if there was alot of text...