Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Troubles with edit box in grid - bugs in VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00417849
Message ID:
00418029
Vues:
33
The problem is that memo field used to show short description for items in grid. Will you appreciate application where you should double click or press keys just to read that description? It will be much better to show it just in the line of grid instead of user-confusing 'Memo' word.

>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?
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform