at 5/4/2009 Tom Liehr starts this Thread in old webboard. It is about how the cursor should be positioned after clicking in a dcget. Did you found time to look into this?
I think you could/should make two improvements:
1. Clicking in "space" after real characters should bring the cursor after the last "real" character.
2. Clicking at a position where are "real" characters should bring the cursor to this position. If focus come from another dcget this should the same. Now it seems to me, that this only works, if the dcget has the focus.
Behavior now:
1. Cursor is at mouse-click-position
2. Cursor is at position 1 or text is marked from first position to mouse-click-position (if you are "coming" from another dcget)
Both is not "windows standard" and not Xbase-Standard.
Test-Code:
Code: Select all
#include "dcdialog.ch"
function Appsys()
return NIL
procedure main()
local getlist := {}, getoptions := {}, lRet
local cVar1 := padr("Test 1", 20), cVar2 := padr("Test 2", 20)
readinsert(.t.)
@ 3, 3 DCGET cVar1
@ 4, 3 DCGET cVar2
DCGETOPTIONS TITLE "Test"
DCREAD GUI TO lRet OPTIONS getoptions ADDBUTTONS FIT
RETURN