; Module/File: LIG_HScrollbarTop.pb ; Function: ListIcon-/ListView-Gadget: set the hor. scrollbar at the top side - Linux ; Author: Omi ; Date: Sep. 15, 2016 ; Version: 0.1 ; Target Compiler: PureBasic 5.22/5.31/5.40 ; Target OS: Linux: (X/K/L)ubuntu, Mint, 32/64, Ascii/Uni ;-------------------------------------------------------------- ;works also for EditorGadget, ListViewGadget, TreeGadget, ExplorerListGadget, ExplorerTreeGadget EnableExplicit ;Window Variablen #Win_Main= 0 #LIG = 0 Global.l gEvent, gQuit Global *gScrolledwindow.GtkScrolledWindow Procedure CreateWindow_Main() Protected.i I If OpenWindow(#Win_Main, 200, 200, 300, 300, "H-Scrollbar @ top", #PB_Window_SystemMenu) ListIconGadget(#LIG, 5, 5, 290, 290, "Column1", 400) For I= 0 To 19 AddGadgetItem(#LIG, -1, "This is LIG-line " + Str(I)) Next I *gScrolledwindow= gtk_widget_get_parent_(GadgetID(#LIG)) gtk_scrolled_window_set_placement_(*gScrolledwindow, #GTK_CORNER_BOTTOM_LEFT) EndIf EndProcedure CreateWindow_Main() Repeat gEvent= WaitWindowEvent() Select gEvent Case #PB_Event_CloseWindow gQuit= #True EndSelect Until gQuit ; IDE Options = PureBasic 5.45 LTS (Linux - x86) ; CursorPosition = 3 ; Folding = - ; EnableUnicode ; EnableXP