Theo Derks
Cursor at the end of an edit-field September 27, 2008 11:03PM |
Sohan
Re: Cursor at the end of an edit-field September 28, 2008 01:23AM |
myself..cursor = Length(MySelf)+1
myself..cursor = Length(MySelf+1)
IF Myself..Type = typText _and_ Myself..State = Active THEN ...
Sohan
Re: Cursor at the end of an edit-field September 28, 2008 02:37AM |
PostMessage(Handle(MySelf),WM_KEYDOWN,VK_END,0)I always wondered why Windev never implemented a PostKey command.
Louis Verbraak
Re: Cursor at the end of an edit-field September 28, 2008 12:50PM |
DW
Re: Cursor at the end of an edit-field September 28, 2008 03:32PM |
Theo Derks
Re: Cursor at the end of an edit-field September 28, 2008 07:52PM |
Theo Derks
Re: Cursor at the end of an edit-field September 28, 2008 07:58PM |
Theo Derks
Re: Cursor at the end of an edit-field September 28, 2008 08:06PM |
DW
Re: Cursor at the end of an edit-field September 29, 2008 12:27AM |
Sohan
Re: Cursor at the end of an edit-field September 29, 2008 03:43AM |
Myself..Cursor = Length(MySelf)+1 Trace(Myself..Cursor) Myself..Cursor = 1 Trace(Myself..Cursor) SendKey("{END}") Trace(Myself..Cursor)As you can see, the commands *are* effective; the cursor *is* being moved by them. But when the trapping procedure returns Windev takes over again, and does the things that it is supposed to: emulate CTRL-A etc, effectively undoing your stuff.
Theo Derks
Re: Cursor at the end of an edit-field September 30, 2008 04:26PM |