Is it possible automatical activate the cell for editing direct after moving to it? (After selection I have to click on it , before I can insert text.)
When you say, moving to it, do you mean by clicking the cell only or are you including tabbing into the cell, using cursor keys etc?
It is easy to implement.
I may look like a mule, but I'm not a complete ass.
I mean tabbing or using cursor keys. ( but I like to activate a cell by one click, too)
I insert text in the first column, go to the next and insert the next text and so on.
But as soon as a cell is being edited, using the cursor key simply moves the caret within the cell -as it should do, so I wouldn't advise changing this.
However, try making the following adjustment:
Open the "egrid_KernelFunctions.pb" source file.
Navigate to the 'egrid_editproc' procedure and find this code
case #WM_KEYUP
if wParam = #VK_TAB
;Identify the underlying egrid,
ForEach egridList() ;Process all the elements...
If gadgetid(egridList()\stringid) = hWnd : Break : Endif
Next
*pointer = egridList() ;In case some other Windows event alters the linked list to point to another element.
egrid_tabcell(*pointer)
; sendmessage_(hWnd, #EM_SETSEL,len(getgadgettext(*pointer\stringid)),len(getgadgettext(*pointer\stringid)))
activategadget(*pointer\id)
case #WM_KEYUP
if wParam = #VK_TAB
;Identify the underlying egrid,
ForEach egridList() ;Process all the elements...
If gadgetid(egridList()\stringid) = hWnd : Break : Endif
Next
*pointer = egridList() ;In case some other Windows event alters the linked list to point to another element.
egrid_tabcell(*pointer)
sendmessage_(hWnd, #EM_SETSEL,len(getgadgettext(*pointer\stringid)),len(getgadgettext(*pointer\stringid)))
activategadget(*pointer\stringid)
Now, if you are editing a cell (not simply having selected the cell) and press the tab key, then the focus will move to the next cell and you can type straight into the newly selected cell.
I think the only other thing we might add is a similar behaviour with the return key.
I may look like a mule, but I'm not a complete ass.