Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 928251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:58:52+00:00 2026-05-15T19:58:52+00:00

I have a TStatusBar that contains two status panels. The first one is about

  • 0

I have a TStatusBar that contains two status panels. The first one is about 100 pixels long. The second one fills the rest of the status bar width. If I try to display in this second panel strings longer than about 140 chars, it truncates them to this value.

There is any way to get over this bug?

D7, Win XP


Edit: is 126 chars.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:58:53+00:00Added an answer on May 15, 2026 at 7:58 pm

    @Altar, the TStatusBar component, draw the text using the SB_SETTEXT Windows message, this is limited to draw 127 characters in WinXP.

    lParam

    Pointer to a null-terminated string that specifies the text to set.
    

    If wParam is SBT_OWNERDRAW, this
    parameter represents 32 bits of data.
    The parent window must interpret the
    data and draw the text when it
    receives the WM_DRAWITEM message. In
    Windows XP and earlier
    , the text for
    each part is limited to 127
    characters
    . This limitation has been
    removed in Windows Vista.

    As workaround you can draw the text of the statusbar yourself using the OnDrawPanel event.

    see this sample wich draw a 200 char text in the second panel of an TStatusBar, don’t forget set the property Style of the panel to psOwnerDraw

    procedure TForm1.StatusBar1DrawPanel(StatusBar: TStatusBar;
      Panel: TStatusPanel; const Rect: TRect);
    var
     MyLongText: string;
     i         : Integer;
    begin
    
      //fill an string with 200 chars
      MyLongText:= StringOfChar('-', 199)+'X';
    
      If Panel = StatusBar1.Panels[1] Then
          With StatusBar1.Canvas Do
            TextOut(Rect.left, Rect.top + 2, MyLongText) ;
    End;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a statusbar in a Swing application that continuously prints status. All objects
I have a macro that loops across two sheets comparing words in each cell.
I've got a small Cocoa problem. I have a StatusBar application that has an
I have a form with a statusbar that has 2 ToolStripStatusLabel s followed by
Have deployed numerous report parts which reference the same view however one of them
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have an app that sets the statusbar color like this - (BOOL)application:(UIApplication *)application
I have the following that I execute inline on a number of screens: tinyMCE.init({
I have made an application that can render and save a given element. With
I have the following situation: I have an event handler, that displays small messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.