>>>I closed ALL other windows (including the command and others) and it still happens that way.
>>
>>it is the Form's PAINT that reset the editbox's SelStart.
>>
>>Try to scroll the grid with MouseWheel,scroller ...
>>
>>With Sparse = .T. it don't happen.
>>
>>It is a bug for me.
>
>Definitely. And even weirder - I added a parameter to my column class (.prg based) to not kill the original .text1, unbound the column, set the .text1.controlsource="=(alltrim(alias.memofield))", and now I'm getting blanks outside the current cell, and in the current cell it types blanks whatever I type in the editbox, but when I come back to the cell, what I typed is actually there.
>
>Well, still not too late to just rearrange the table and have just character fields instead of the memos... but I'll surely be on the watch for this behavior, if I ever happen to need an editbox in the grid.
Of course, a workaround exists:
- add two editboxes to the column: EBEdit and EBShow
- on the active row, set CurrentControl="EB1" ( uses DynamicCurrentControl ... )
But, it is not so simple as it appears.
I wish this:
Allow to set a Column's control for the active row,
with a new SparseControl ( or ActiveControl or FocusControl, or use Sparse ... ) text property,
and others controls into the not active row ( with DynamicCurrentControl )
like a native VFP's feature.
This boost the VFP's grid a lot.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only