Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubles with edit box in grid - bugs in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00417849
Message ID:
00417939
Views:
25
Vlad,
Instead of putting the editbox into your grid why not have a 'popup form' with an editbox. You could use a textbox in the grid to show the first 1-10 words, then have users double-click (or right click, etc.) to bring up the popup form with a large editbox that's easy to work with.

Barbara

>I have troubles with different behavior of Edit Box when it is in grid.
> Assume you have rid with column and you want to show text of memo field instead of 'Memo' in grid column. Usually, I use edit box for this and set column property Sparse to .F. It works ok for read-only mode. Than, when I tried to use such edit box to edit data, I got a bunch of confusing problems that I don't know where they come from.
> First of all, any VFP command that cause edit box to repaint makes jumping of text cursor to the first position of edit box. Thisform.cls also cause jumping of cursor to first position (that is most confusing). When I try to set cursor position manually (SelStart = and SelLength = 0), it jumps to first position too. When I eliminated all such commands - all ok, when I typing something. Than, switch to another application, switch back - cursor on the first position again.
> Strange things also with background colors. Grid have highlighting feature of current row (exactly as described by MS - using record number). Its ok, and its work for edit box too. However, when such edit box receives focus, it should be white, same as textboxes. However, edit box got background color of highlighting color (current dynamic color), even when got focus. When I trying to set it explicitly to white color either in GotFocus or InteractiveChange - do not help, color remains different.
> Any suggestions about problem?
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform