Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Yes, this discussion again...
There are times when a disabled item is most user-intuitive. For instance, the old Filer would disable a file name that was in use. That told me that fact while still confirming the existence of the file. Can you imagine the panic had it been done as you suggest???
But I must acknowledge that the VFP teams seems to think along your lines, what with all of the functionality they have given us in this regard (virtually none).
Cheers,
Jim N
>>What is the best way to disable an item from a listbox in VFP5. I have found if you insert "\ " at the beginning of the item contents, it will disable the text. In NT4-SP5, you must include the space after the "\".
>>
>>Example:
>>
>>thisform.LIST1.additem("\ "+alltrim(TESTPATH))
>>
>>This will disable this item as it is inserted, but this seems flakey.
>>
>>Thanks!
>>Daryl F
>
>Daryl,
>
>That is how it is done. Although I find disabled items in a list sort of counter productive to the whole idea of a list. If we are adding the items and know to disable one, why not leave it out of the list altogehter?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement