TStaticText lazarus / 13-General ---------------------------------------------------------------------- Spribo · 2009-11-12 19:31 I have some text that I want to appear in a TStaticText control, but part of it isn't displayed. How can I increase the amount of text the TStaticText displays? ---------------------------------------------------------------------- alter · 2009-11-12 20:30 TStaticText.AutoSize? ---------------------------------------------------------------------- Spribo · 2009-11-12 20:41 Well, its size has to remain constant. ---------------------------------------------------------------------- Spribo · 2009-11-13 08:46 Please, I do need advice! ---------------------------------------------------------------------- theo · 2009-11-13 10:28 Quote from: Spribo on November 13, 2009, 09:46:18 amPlease, I do need advice! I think we don't understand what you mean. How can you increase the amount of text with constant dimensions? Problably decrease the Font.Size? ;-) ---------------------------------------------------------------------- alter · 2009-11-13 14:52 Quote from: theo on November 13, 2009, 11:28:19 amQuote from: Spribo on November 13, 2009, 09:46:18 amPlease, I do need advice! I think we don't understand what you mean. How can you increase the amount of text with constant dimensions? Problably decrease the Font.Size? ;-) I think he means word wrapping but I don't think that this class supports it. If that is the case then maybe TLabel would be better choice if possible. ---------------------------------------------------------------------- theo · 2009-11-13 15:03 Quote from: alter on November 13, 2009, 03:52:01 pmI think he means word wrapping but I don't think that this class supports it. It does, at least on GTK2. I think Spribo is using Linux. ---------------------------------------------------------------------- Spribo · 2009-11-13 15:36 Yes, that's right! I use Linux Ubuntu 9.10. ---------------------------------------------------------------------- theo · 2009-11-13 16:19 Quote from: Spribo on November 13, 2009, 04:36:28 pmYes, that's right! I use Linux Ubuntu 9.10. Good. But I guess we still don't know what your problem is. You could describe it better or attach a screenshot or..... ---------------------------------------------------------------------- Spribo · 2009-11-13 16:24 Well, I want 70 characters to be displayed in a TStaticText that has to have a constant size. But only 50 of them are displayed. So I want to make it display 70 characters, with its size unchanged! ---------------------------------------------------------------------- theo · 2009-11-13 16:32 Quote from: Spribo on November 13, 2009, 05:24:14 pmWell, I want 70 characters to be displayed in a TStaticText that has to have a constant size. But only 50 of them are displayed. So I want to make it display 70 characters, with its size unchanged! Please attach a screenshot. I don't know what you mean. You have 70 chars of non-wrappable text on one line? Or is height the problem? What if you decrease font size as mentioned above? How should the result look (in your dreams) ? Scrollbars? Which widgetset are you using? GTK2? Please make a decent description of your problem, this is getting boring ;-) ---------------------------------------------------------------------- Spribo · 2009-11-13 16:58 *Yes, GTK2. *I have attached an attachment: in the central textbox, only part of my text is displayed. ---------------------------------------------------------------------- theo · 2009-11-13 17:14 Quote from: Spribo on November 13, 2009, 05:58:19 pmI have attached an attachment: in the central textbox, only part of my text is displayed. I don't know. I can't reproduce this. Does it work with english only text? Does it work with standard font? ---------------------------------------------------------------------- theo · 2009-11-13 17:39 What if you try a TLabel (WordWrap=true, Autosize=false)? I think it should work better. ---------------------------------------------------------------------- theo · 2009-11-13 17:54 Yes there is a problem in this area. I don't know if it is exactly what you are experiencing, but might be related. I wrote a bug report: http://bugs.freepascal.org/view.php?id=15078 In the meantime use TLabel. ---------------------------------------------------------------------- Spribo · 2009-11-14 11:50 Yes, that's my problem. Thank you very much for your help!