Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing editboxes in grids when sparse is false
Message
De
07/12/2008 11:12:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Editing editboxes in grids when sparse is false
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01365831
Message ID:
01365831
Vues:
54
This is a bug report about editing EDITBOXES IN A GRID with the system menu edit items ( _MSM_EDIT) enabled. I have searched in the archives here and have only found associated (so, not equal) reports. Moreover, I haven't found a workaround in the archives.

The system menu edit items are:
_med_cut CTRL+X
_med_copy CTRL+C
_med_paste CTRL+V
_med_slcta CTRL+A
_med_undo CTRL+Z.

These do not work properly when SPARSE is False. For example, CTRL+A does not select at all and CTRL+C moves the cursor to the beginning of the text.

A workaround might be to put THIS.PARENT.SPARSE = .T. in the GotFocus() of the editbox and put THIS.PARENT.SPARSE = .F. in its LostFocus(). However, the consequence is that the very moment it's put to True all the other cells in the column change to Memo. Any other workaround available?

If your findings differ from mine, please share this too.

Update: I have removed the example code (retrieved from a viewcode.prg) because it didn't nicely run.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Répondre
Fil
Voir

Click here to load this message in the networking platform