Recent

Author Topic: TListBox does not show its TScrollbar  (Read 4583 times)

Mangafreak1995

  • New Member
  • *
  • Posts: 25
TListBox does not show its TScrollbar
« on: January 27, 2011, 12:17:53 am »
Hey guys,

I'm filling my Listbox but there is no horizontal or vertical Scrollbar appearing when the size does not fit. I tried to search for this but I got only sites where the Scrollbar shall disappear (via WindowsMessages, I'm using Linux). I also tried to put the ListBox into a Scrollbox and everytime I add an item I changed the Listbox.Height to Listbox.ItemHeight * ListBox.Items.Count, but I do not see any Scrollbars.

Hope you can solve my problem.

Thanks in regards
    Mangafreak

Dibo

  • Hero Member
  • *****
  • Posts: 1055
Re: TListBox does not show its TScrollbar
« Reply #1 on: January 27, 2011, 12:23:16 am »
Hm, I have scrollbars (see attachment).
Please add more details (interface, lazarus version). I am using Linux with GTK (maybe your issue is QT widget problem) and latest lazarus 0.9.31 from SVN

Regards
« Last Edit: January 27, 2011, 12:24:58 am by Dibo »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: TListBox does not show its TScrollbar
« Reply #2 on: January 27, 2011, 12:54:44 am »
I just tried with Qt 4.7.1 and works well. Note that I added long line at design time.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Mangafreak1995

  • New Member
  • *
  • Posts: 25
Re: TListBox does not show its TScrollbar
« Reply #3 on: January 30, 2011, 02:15:40 pm »
Sorry for late reply.

my Lazarus information:
Quote
Lazarus 0.9.28.2-8ubuntu1 r22277 FPC 2.4.0 i386-linux-gtk 2 (beta)

but I just recognized that my Listbox was wider than its parent control so I just could not see the Scrollbar  :-\ Sorry for this dumb thread but thanks for your help.

 

TinyPortal © 2005-2018