Board index » delphi » Sizing of TLabel by Font Size?
Gregory E. Jackson
![]() Delphi Developer |
Tue, 23 Feb 1999 03:00:00 GMT
|
Gregory E. Jackson
![]() Delphi Developer |
Tue, 23 Feb 1999 03:00:00 GMT
Sizing of TLabel by Font Size?
How can you size a TLabel object automatically regardless of font being gjack...@webstar.net |
Don M
![]() Delphi Developer |
Wed, 24 Feb 1999 03:00:00 GMT
Re:Sizing of TLabel by Font Size?"Gregory E. Jackson" <gjack...@webstar.net> wrote: Quote> How can you size a TLabel object automatically regardless of font being I ran into this same problem recently and devised the following solution, In a form, I have a TLabel component called "Comments" and an array of text The first thing to do is to assign the TLabel font to the TLabel's Canvas Comments.Canvas.Font.Assign(Comments.Font); In that section of code each line of text is appended to a string to be In the next section, "Comments" is adjusted according to those values. with Comments do begin This technique has worked 100% for me using Delphi-2.01 on both Win95 and Good luck, +--------------------------------------------------------+ |
dtho..
![]() Delphi Developer |
Thu, 25 Feb 1999 03:00:00 GMT
Re:Sizing of TLabel by Font Size?"Gregory E. Jackson" <gjack...@webstar.net> wrote: Quote>How can you size a TLabel object automatically regardless of font being to FALSE. The form will then scale all it's child controls by the ratio of the -Danny Thorpe |
Paul Motye
![]() Delphi Developer |
Sun, 28 Feb 1999 03:00:00 GMT
Re:Sizing of TLabel by Font Size?Dear Danny, Obviously, I'm missing something. I need a D1 and D2 solution. I have I design in Super VGA (800 x 600). My solution is complicated (I wrote a Unfortunately, I can't get it to work. The problem seems to be the Forms Does your method work? :-) Please give more details. -- dtho...@subliminal.com wrote in article <50vgmj$...@news.scruz.net>... Quote> "Gregory E. Jackson" <gjack...@webstar.net> wrote: |
Robert D. Jon
![]() Delphi Developer |
Thu, 04 Mar 1999 03:00:00 GMT
Re:Sizing of TLabel by Font Size?QuoteDon Moe (don...@ix.netcom.com) wrote: : > How can you size a TLabel object automatically regardless of font being : Gregory, <Don Moes ideas snipped to keep it short> I needed to do something similar back when I used VB. Heres what I did: Determine the ratio of FontSize to Label size (height & width). In my case Don't know if it'll work in Delphi. Lottsa Luck Robert ======================================================================== *Programming is an art form that fights back.* |
1. Window Size with different Res/Font sizes?
2. Sizing font to the size of TMemo
3. TListView, OwnerDraw, Font size is changed ,but the Items size doesn't change
4. Font size and component size
5. Relationship between font size and window size
6. Need help determining default font sizes for non-truetype fonts
7. Font size - larg fonts in windows messes up application
8. determining actual size of a TLabel
9. Need to allow end users to size and move TLabel on scrollable form