I forgot FStatusbar.EndUpdate at the end. It is in the code. I am using Lazarus 0.9.8 Linux / GTK
On 11/22/05, Vincent Snijders <[EMAIL PROTECTED]> wrote: > Alexander Todorov wrote: > > Hi all, > > I made a simple test with OnButtonClick > > -------------------------------------------------------- > > var > > p : TStatusPanel; > > begin > > FStatusBar.BeginUpdate; > > > > P := FStatusBar.Panels.Add; > > with P do > > begin > > Width := 300; > > Alignment := taLeftJustify; > > Bevel := pbLowered; > > Style := psText; > > Text := 'test 1'; > > Index := 0; > > end; > > end; > > -------------------------------------------------------- > > > > The panel is added but it is not shown / visible. If I add it using OI > > in design time all is working fine. > > I am trying to create a custom component including Statusbar and need > > to set the number / size / text of the panels at run time. > > Is this a bug to be reported ? > > You don't mention the OS / widgetset your are using. If it is windows, > then it is a bug in your code. > > Add FStatusBar.EndUpdate at the end. > > Vincent. > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
