Sign in Join
Wiki copytemporary

Howto Use TOpenDialog/fr: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Comment utiliser TOpenDialog
22
33Procédure rapide :
44
551\. Placer le composant **OpenDialog** sur votre fiche (n'importe où, puisqu'il ne sera pas visible).
66
7-` `![`Component_Palette_Dialogs.png`](/wiki-images/7/72/Component_Palette_Dialogs.png)\
8-` (C'est le dialogue le plus à gauche sous dialogue.)`
7+```text
8+ Image:Component_Palette_Dialogs.png
9+ (C'est le dialogue le plus à gauche sous dialogue.)
10+```
911
10122\. Dans le code, écrire quelque chose comme :
1113
1214``` pascal
1315 var filename : string;
1416
1517 if OpenDialog1.Execute then
1618 begin
1719 filename := OpenDialog1.Filename;
1820 ShowMessage(filename);
1921 end;
2022```
2123
2224La méthode [[doc:lcl/dialogs/tcommondialog.execute.html|Execute]] montre la boîte de dialogue d'ouverture de fichiers. Elle renvoie **True** quand l'utilisateur a sélectionné un fichier, **False** quand le choix a échoué.
2325
2426La propriété [[doc:lcl/dialogs/tfiledialog.filename.html|Filename]] renvoie le nom de fichier complet incluant l'unité de disque et le chemin.
2527
2628## Voir aussi
2729
2830- [[Howto Use TSaveDialog/fr]]
2931- [[Dialogs tab]]
3032
3133---
3234*From the Free Pascal wiki, page "Howto Use TOpenDialog/fr", as it stood on 2020-02-17 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history