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.
@Altar, the
TStatusBarcomponent, draw the text using theSB_SETTEXTWindows message, this is limited to draw 127 characters in WinXP.As workaround you can draw the text of the statusbar yourself using the
OnDrawPanelevent.see this sample wich draw a 200 char text in the second panel of an
TStatusBar, don’t forget set the propertyStyleof the panel topsOwnerDraw