Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reversing text in editbox in a grid
Message
De
01/08/2006 02:55:22
 
 
À
31/07/2006 21:18:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01141577
Message ID:
01142034
Vues:
16
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform