Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reversing text in editbox in a grid
Message
From
01/08/2006 10:33:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
01/08/2006 02:55:22
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01141577
Message ID:
01142098
Views:
6
>>>>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.

You mean the inactive current control should be a readonly editbox? I can try that, no problem.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform