I dit qui ya pas de police installer

cs_kut Messages postés 15 Date d'inscription mercredi 20 mars 2002 Statut Membre Dernière intervention 21 août 2002 - 6 juin 2002 à 12:47
Renfield Messages postés 17287 Date d'inscription mercredi 2 janvier 2002 Statut Modérateur Dernière intervention 27 septembre 2021 - 29 sept. 2006 à 04:40
j'utilise un commondialog pour choisir ma police mais lorsque je test il me dit qu'aucune police est instaaler faut il l'initialiser si oui comment

thx

4 réponses

cs_pepsi Messages postés 63 Date d'inscription mercredi 19 février 2003 Statut Membre Dernière intervention 6 janvier 2009
21 mars 2003 à 05:33
Pepsi

Ok ton problème est simple ! ...
faut juste que tu set les flags ...
po trop pire hein !
si t'as des questions .... gêne toi pas !
0
chapichapo09 Messages postés 4 Date d'inscription mercredi 30 juin 2004 Statut Membre Dernière intervention 28 septembre 2006
28 sept. 2006 à 22:17
j'ai le même problème et je suis débutant : je ne comprend pas "set les flags..."

pourriez vous m'aider?
0
cs_pepsi Messages postés 63 Date d'inscription mercredi 19 février 2003 Statut Membre Dernière intervention 6 janvier 2009
29 sept. 2006 à 03:07
Ok simplement les fags sont des contraintes que le commondialog devra respecter.

Tu dois les déclarer comme ca

commondialog1.flags = &H200
si tu veux faire propre, c'est recommander ....tu peu inscrire
commondialog1.flags = cdlOFNAllowMultiselect
Si tu veu mettre plusieur flags tu dois les séparer par or comme ca
commondialog1.flags = cdlOFNAllowMultiselect or cdlOFNCreatePrompt

Voici la liste des flags disponible... la source c'est MSDN dsl pour l'anglais !

Constant, Value, Description, ----
cdlOFNAllowMultiselect, &H200, Specifies that the File Name
<object id="alink_6" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object>list box allows multiple selections.
The user can select more than one file at
<object id="alink_7" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object>run time by pressing the SHIFT key and using the UP ARROW and DOWN ARROW keys to select the desired files. When this is done, the FileName property returns a string containing the names of all selected files. The names in the string are delimited by spaces., ----
cdlOFNCreatePrompt, &H2000, Specifies that the dialog box prompts the user to create a file that doesn't currently exist. This flag automatically sets the cdlOFNPathMustExist and cdlOFNFileMustExistflags., ----
cdlOFNExplorer, &H80000, Use the Explorer-like Open A File dialog box template. Works with Windows 95 and Windows NT 4.0., ----
CdlOFNExtensionDifferent, &H400, Indicates that the extension of the returned filename is different from the extension specified by the DefaultExt property. This flag isn't set if the DefaultExt property is Null, if the extensions match, or if the file has no extension. This flag value can be checked upon closing the dialog box., ----
cdlOFNFileMustExist, &H1000, Specifies that the user can enter only names of existing files in the File Name text box. If this flag is set and the user enters an invalid filename, a warning is displayed. This flag automatically sets the cdlOFNPathMustExistflag., ----
cdlOFNHelpButton, &H10, Causes the dialog box to display the Help button., ----
cdlOFNHideReadOnly, &H4, Hides the Read Only
<object id="alink_8" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object>check box., ----
cdlOFNLongNames, &H200000, Use long filenames., ----
cdlOFNNoChangeDir, &H8, Forces the dialog box to set the current directory to what it was when the dialog box was opened., ----
CdlOFNNoDereferenceLinks, &H100000, Do not dereference shell links (also known as shortcuts). By default, choosing a shell link causes it to be dereferenced by the shell., ----
cdlOFNNoLongNames, &H40000, No long file names., ----
CdlOFNNoReadOnlyReturn, &H8000, Specifies that the returned file won't have the Read Only attribute set and won't be in a write-protected directory., ----
cdlOFNNoValidate, &H100, Specifies that the common dialog box allows invalid characters in the returned filename., ----
cdlOFNOverwritePrompt, &H2, Causes the Save As dialog box to generate a message box if the selected file already exists. The user must confirm whether to overwrite the file., ----
cdlOFNPathMustExist, &H800, Specifies that the user can enter only valid paths. If this flag is set and the user enters an invalid path, a warning message is displayed., ----
cdlOFNReadOnly, &H1, Causes the Read Only check box to be initially checked when the dialog box is created. This flag also indicates the state of the Read Only check box when the dialog box is closed., ----
cdlOFNShareAware, &H4000, Specifies that sharing violation errors will be ignored.

Pepsi
0
Renfield Messages postés 17287 Date d'inscription mercredi 2 janvier 2002 Statut Modérateur Dernière intervention 27 septembre 2021 74
29 sept. 2006 à 04:40
Pour les polices, regarder les Flags cdlCF*   (dans l'explorateur d'objets, F2 )

Renfield
Admin CodeS-SourceS- MVP Visual Basic
0
Rejoignez-nous