TStatusBar i onDrawPanel

0

Nie znalazłem an forum więc pytam. Dlaczego po przypisaniu tekstu w jakimś panelu z StatusBara nie jest wykonywane zdarzenie onDrawPanel ?

StatusBar1.Panels[0].Text := 'Tekst';
0
OnDrawPanel event (TStatusBar) description napisał(a)

The OnDrawPanel event occurs when a status panel needs to be redisplayed—for example, when the user resizes the status bar. The Rect parameter gives the (new) dimensions of the status panel. OnDrawPanel occurs only if the status panel’s Style property is set to psOwnerDraw.

Wystarczyło zaglądnąć do pomocy.

0

A utworzyłeś chociaż z jeden panel na statusie?

1 użytkowników online, w tym zalogowanych: 0, gości: 1