Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid & Memo and other problems...
Message
 
 
À
08/06/1999 16:47:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227549
Message ID:
00227713
Vues:
23
Hi Edward,


>Ok, I've read you message.
>'Editbox' is normal solution, and you may still show button in grid with code populating editbox. If you want to add this code in run-time and you create columns dynamically, then you should AddObject button (or any other column.control) from your own class.

In this case Create my own class txtMemo based on textbox with code in dblclick method modify memo, right? And if I don't want to allow a user change content of the memo, what do I need to do?

I'm still unsure why do you need in additional user's action (click or dblclick) to get 'memo window'. You may do it automatically, e.g. from Grid.AfterRowColChange event,

What do I need to do here? Could you please give me a code example?

or again populate Column.Textbox with memo field content, btw it will come up read-only as you request.


>>Now I don't like an idea to use "EditBox" after several attempts - it looks ugly. Now I turn to another idea, but I don't know how to realize it. My idea is - if the type of field is Memo, put some code in DblClick method of this column - modi memo... But, I don't know how to put this code, because I create my grid in grid Init method. So, how can I do this?


>>>Well, not real complex, but some changes would be needed...you could use a View based on the table, set the grid source to the view. In the view, you could add 3 char fields to display the Y/N based on the logical field values...then when a Y/N was changed, you would update the corresponding logical field...not real simple, but that's one idea...
>>
>> Actually, we decide that the grid is ReadOnly, so I just want to display Yes instead of T

How can I do this?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform