Recent

Author Topic: StatusBar Panel item doesn't display text  (Read 13940 times)

andi456

  • New Member
  • *
  • Posts: 18
StatusBar Panel item doesn't display text
« on: April 22, 2005, 04:21:39 pm »
Hi everybody,
after having converted a Delphi project to lazarus, I found the StatusBar not displaying any text, i. e., I used the following line of code:

Code: [Select]
StatusBar1.Panels.Items[0].Text:='some text';

Furthermore the two Panels that I put in the object inspector don't seem to appear.

I'm using lazarus version 0.9.6 with fpc 1.9.8 on Linux with the default widget set gtk 1.2 which doesn't support multiple panels in the statusbar according to this thread from the mailing list
http://www.lazarus.freepascal.org/list_archives/lazarus/msg00090.html
Correct me if I'm wrong.

Thanks in advance.

Andreas

Reenen

  • New Member
  • *
  • Posts: 29
    • http://daringapprentice.wikispaces.com
StatusBar Panel item doesn't display text
« Reply #1 on: April 29, 2005, 09:29:09 am »
I remember that in Delphi when I had a long intricate file accessing application my VCL components also did not update until the actual procedure finished.

The answer was to put that procedure in a seperate thread.

My current Lazarus application I am creating is doing the same thing.  Or I want to test it.  But when I want to access my main form from within my threadunit, it says it can't find the frmMain variable.

Any suggestions?

andi456

  • New Member
  • *
  • Posts: 18
StatusBar Panel item doesn't display text
« Reply #2 on: April 29, 2005, 01:10:21 pm »
Well, my application doesn't have to deal with very big amounts of data, I guess it's just not working yet, because the statusbar displays text, if I use the following code:

Code: [Select]

StatusBar1.SimpleText:='some text';

Reenen

  • New Member
  • *
  • Posts: 29
    • http://daringapprentice.wikispaces.com
StatusBar Panel item doesn't display text
« Reply #3 on: April 29, 2005, 01:36:32 pm »
I dunno if this is why, but in my application
Code: [Select]

Statusbar1.Panels[0].text := IntToStr(pos div total*100) + '%';

gets some response, but it's not refreshing as I am updating my progress.  (Ie. Shows 0%, then shows 100%, doesn't display the increments).

-Reenen

 

TinyPortal © 2005-2018