Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Descriptive File Types with PUTFILE()
Message
 
 
À
29/10/2001 17:06:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00574248
Message ID:
00574837
Vues:
47
See my comments below.

>If user clicks on the vfp main window caption during this dialog,
>dialogso disappears (visible only in taskbar). However, VFP window
>ignores all mouse clicks. From users point of view, application is hang.
>IMHO this bug makes _comdlg class totally useless.


Maybe somebody from fox team can comment on this.

>I encountered also the following problems trying to replace putfile() with _comdlg class:
>
>1. _comdlg class moves and hides the mouse cursor. After dialog invocation, user must move the mouse to show mouse cursor again. However, mouse cursor is placed initially to different place without user interaction. This looks VERY stange to users. I need that only user may change mouse cursor placement, not dialog.

>2. Dialog is placed to upper left corner to screen, no way to center it.

>3. How user can change .ccustomfilter property? It is always empty.

One more bug. Add highlighted line to the dialoghandler method.
	_FFC_MEMCPY2(@lcUserCustomFilter, lpUserCustomFilter, nMaxCustomFilter)
	<b>lcUserCustomFilter = Substr(lcUserCustomFilter, AT(CHR(0), lcUserCustomFilter) + 1)</b>
	THIS.cCustomFilter= LEFT(lcUserCustomFilter, AT(CHR(0), lcUserCustomFilter) - 1)

>4. Dialog displays always last filter set by .AddFilter(). Is it possible
>to display other filter initially ?


Try to change nFilterIndex Property.

>5. If file exists, overwrite promp does not occur. There is
>#DEFINE OFN_OVERWRITEPROMPT 0x00000002
>in dialoghandler, but it seems that it is impossible to use it.


Add property lOverwritePrompt to the class and following code to the dialoghandler method
IF THIS.lOverwritePrompt AND THIS.lSaveDialog
	nFlags = nFlags + OFN_OVERWRITEPROMPT
ENDIF
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform