Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Troubles with edit box in grid - bugs in VFP?
Message
From
18/09/2000 18:45:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Troubles with edit box in grid - bugs in VFP?
Miscellaneous
Thread ID:
00417849
Message ID:
00417849
Views:
51
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?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Next
Reply
Map
View

Click here to load this message in the networking platform