Board index » off-topic » TStatusBar text limited to 127 or 157 characters?
Reinier Sterkenburg
Delphi Developer |
TStatusBar text limited to 127 or 157 characters?2006-10-14 06:28:32 PM off-topic13 Hi all, Once in a while, I run into this issue. It is not extremely important, so I ususally ignore it, but, it remains a bit frustrating. I've seen it reported before, e.g. by Thomas Schulz in Nov 2000. (using Google: search google newsgroups with the search text "*delphi* tstatusbar length text") However, I could not find an entry in QC about this. Curiously enough, Thomas reported a limit of 157 characters, and Rudy Velthuis answered that he didn't have this problem, so it seems not 100% reproducible. Here are steps to reproduce: Create a Form with a StatusBar and a Button. Set the StatusBar's SimplePanel property to True. Set the Form's Width to at least 900. Then attach the following handler to the Botton's OnClick handler: procedure TForm1.TestButtonClick(Sender: TObject); var s: string; Letter: Char; i: Integer; begin s := ''; for Letter := 'A' to 'Z' do begin s := s + Letter; for i := 1 to 9 do begin s := s + IntToStr(i); end; end; StatusBar.SimpleText := s; end; When I run this, what's shown in the statusbar terminates at "...M123456" and then there is some empty space left (if the form was wide enough, it should end with: "...Z123456789") Do more people see this behaviour? Is there an explanation or workaround for this? Cheers, Reinier Sterkenbu(r)g |