| To: | REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: DrawString |
| From: | Matteo Cortonesi <m_cortonesi at ticino dot com> |
| Date: | Fri, 23 Jun 2006 14:01:48 +0200 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug dot it at lists dot realsoftware dot com |
| References: | <5ED00EFF-EF1A-4CEC-842B-59EB5745473D at tiscali dot it> <5EB28F7E-38D7-47D6-9E4D-70F89928DC3B at cantoberon dot it> <B7F26892-8306-4601-B546-5E8DA769AAC4 at tiscali dot it> |
Utilizzi Graphics che viene istanziato appena apri il programma (è un
istanza della classe Graphics).
Per sapere quanto è larga una "i" scritta nel font di default a 14 punti di grandezza scrivi:
Graphics.TextSize=14
E poi ottieni la grandezza con la funzione Graphics.StringWidth("i")
Matteo.
On Jun 23, 2006, at 1:48 PM, Gualeni Giovanni wrote:
Il giorno 23/giu/06, alle ore 12:18, Giulio ha scritto:se ho capito bene la domanda,puoi sapere la misura che avra' una determinata stringa ( in base ai settaggi correnti di font size,bold etc ), usando la funzione stringwidth()Si ma come si fa prima d'aver dichiarato NewPicture? Giovanni |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: DrawString, Gualeni Giovanni |
|---|---|
| Next by Date: | Re: DrawString, Gualeni Giovanni |
| Previous by Thread: | Re: DrawString, Gualeni Giovanni |
| Next by Thread: | Re: DrawString, Gualeni Giovanni |
| Indexes: | [Date] [Thread] [Top] [All Lists] |