| |
|
|
- Page 1 - |
|
Julian Schmidt | with whom Messages can The Cursorposition one Edits gesetzen and read go? I thought initially em_GetSel and em_SetSel wären The right. the was though one mistake. |
|
|
| |
|
|
|
« this Posting watts as Solution marked. » |
|
Thomas Freier | something older CompileMarkSeparationDef GetSysColor(1) !"USER32","GetSysColor"
declare edit%,Button2&,Pos&,Gesamt&
Proc Cursor2
parameters z%
setfocus(edit%)
sendmessage(edit%,$00B1,z%,z%)
Endproc
cls GetSysColor(15)
edit%=createedit(%hwnd,"Hallöchen",10,60,160,20)
Button2&=createbutton(%hwnd,"Cursor an pos. 4",10,90,160,24)
Pos&=CreateText(%hwnd,"",10,10,140,20)
SetFocus(edit%)
WHILE 1
waitinput 1
sendmessage(Edit%,176,addr(Gesamt&),0)
settext Pos&,str$(Gesamt&,sendmessage(Edit%,187,-1,0))
case getfocus(Button2&): Cursor2 4
Wend
|
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 08/09/12 ▲ |
|
|
|
|
|
Julian Schmidt | hmmm...there lying I well still correctly. with the Messages. Well. thanks that you yet so a middle-aged View source unearth konntest! was very helpful. |
|
|
| |
|
|