ListView scroll bar

Linux specific forum
harkon
Enthusiast
Enthusiast
Posts: 217
Joined: Wed Nov 23, 2005 5:48 pm

ListView scroll bar

Post by harkon »

If I run the following code;

Code: Select all

  If OpenWindow(0, 0, 0, 270, 140, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    ListViewGadget(0, 10, 10, 250, 120)
    For a = 1 To 12
      AddGadgetItem (0, -1, "Item " + Str(a) + " of the Listview") ; define listview content
    Next
    SetGadgetState(0, 9) ; set (beginning with 0) the tenth item as the active one
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf
This is the ListView gadget help example.

In Windows the vertical scrollbar for the ListView Gadget has arrow buttons that will allow me to select forward or backward one item at a time.
In Linux we have no such buttons appearing. How do I get the same functionality in Linux for the ListView?
Missed it by that much!!
HK
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: ListView scroll bar

Post by Shardik »

harkon wrote:In Linux we have no such buttons appearing.
That's not quite correct because it depends on the desktop manager your Linux distro is utilizing. For a direct comparison I have made snapshots of the ListViewGadget demo on 10 different Linux distributions each with a different desktop manager. As you can see, 4 desktop managers (Enlightenment, Gnome 3, KDE and Mate) display the up/down buttons like Windows does. Pantheon and Unity are somewhat special: they blend in a bar with up/down arrows and a scroll position indicator only when the cursor (not shown) is positioned at the right edge of the ListViewGadget. Only the remaining 4 desktop managers (Cinnamon, LXDE, PearOS with a modified Gnome 3 and Xubuntu) don't display up/down arrows at all... :wink:

Bodhi Linux 0.3.0 with Enlightenment
Image

Debian 7 with Gnome 3
Image

ElementaryOS 0.2 with Pantheon
Image

Kubuntu 14.04 with KDE 4
Image

Linux Mint 17 with Cinnamon
Image

Lubuntu 14.04 with LXDE
Image

PearOS 8 with a heavily modified Gnome 3
Image

Ubuntu 14.04 with Unity
Image

Ubuntu MATE 14.04 with Mate (a Gnome 2 fork)
Image

Xubuntu 14.04 with Xfce
Image
Post Reply