Sign in Join
Wiki copytemporary

TEdit/fi

Deutsch · English · Français · Suomi · Русский · 日本語

TEdit on muokattava tekstin syöttöruutu. Se löytyy komponenttipaletin Standard-välilehdeltä.

Käyttö

TEdit voidaan lisätä lomakkeelle klikkaamalla sen kuvaketta Standard komponenttipaletilla ja sijoittaa se lomakkeelle yhdellä klikkauksella. Tätä yksirivistä tekstikenttää voi muokata ohjelman suorituksen aikana.

Tähän sijoitetun tekstin voi lukea ohjelmassa, kuten kaikki muutkin merkkijonot (string).

Esimerkiksi kun TEdit-komponentti nimeltään Edit1 on lomakkeelle sijoitettu niin siinä olevan tekstin voi lukea:myString: = Edit1.Text;. Jos halutaan muuttaa esitettyä tekstiä niin siihen voidaan sijoittaa merkkijono: myString: = Edit1.Text; .

Jos halutaan näyttää oletustekstin (esim Edit1) sijasta toinen oletusteksti niin voidaan toimia myös seuraavasti:

Salasanan lukeminen

Helposti voidaan käyttää TEdit-komponenttia salasanan lukemiseen. Siinähän näytetään salasanamerkki aina kirjoitetun merkin sijasta

Pieni esimerkki:

Katso myös


From the Free Pascal wiki, page "TEdit/fi", as it stood on 2016-08-17 after a change by Djzepi, 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 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 1 person, 2016

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
DjzepiCreated page

Talk about this page

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