Sign in Join
Wiki copytemporary

Howto Use TOpenDialog/sk

Deutsch · English · Español · Français · Polski · Slovenčina · Suomi · Русский · 日本語

Jednoduchý (a veľmi krátky) návod:

1. Umiestnite ikonku OpenDialog na váš formulár (hocikam, nakoľko za behu programu je aj tak neviditeľná).

text
  Image:Component_Palette_Dialogs.png
 
  (Je to tá najlavejšia ikonka v paneli Dialogs)

2. Do vašeho kódu umiestnite niečo takéto:

pascal
   var filename : string;

   if OpenDialog1.Execute then
   begin
     filename := OpenDialog1.Filename;
     ShowMessage(filename);
   end;

Metóda Execute zobrazí dialógové okno "Otvor súbor". Vráti true ak užívateľ vybral nejaký súbor, alebo false ak užívateľ okno zrušil. Vlastnosť Filename potom obsahuje celý názov súboru, vrátane disku a kompletnej cesty.

Prečítajte si tiež


From the Free Pascal wiki, page "Howto Use TOpenDialog/sk", 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.

Revision 4, last changed by WikiArchive .

Edited on wiki.freepascal.org by 3 people, 2008–2020

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
AdammVytvorene - Preklad z angl. originalu
Adamm
VincentText replace - "pascal>" to "syntaxhighlight>" (minor)
TrevFixed syntax highlighting; deleted category included in page template (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.