[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
ruslanx
User
User
Posts: 32
Joined: Mon Jun 06, 2011 8:28 am

Re: [Modules] ListEx (all OS / DPI)

Post by ruslanx »

hi, the scrolling is very unstable ...lagging
User avatar
lgb-this
User
User
Posts: 17
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: [Modules] ListEx (all OS / DPI)

Post by lgb-this »

I made some tests with the release from 21.05.2020 and i have the problem with the scrollbar too. It happens with screen scaling 100% or 200% on my Win10 pc. The behaviour is very erratic.

Any chance to fix this ?

Regards Matthias
User avatar
lgb-this
User
User
Posts: 17
Joined: Sat Aug 30, 2014 9:00 pm
Location: Switzerland
Contact:

Re: [Modules] ListEx (all OS / DPI)

Post by lgb-this »

If the table is bigger than the gadget, i detected 2 problems:

Code: Select all

XIncludeFile "listexmodule.pbi"

OpenWindow(0, 50, 50, 600, 500, "Test")

#lg_test1 = 2

ListEx::Gadget(#lg_test1,10,10,500,400,"Titel 1",200)
ListEx::DisableReDraw(#lg_test1,#True) 
ListEx::AddColumn(#lg_test1,1,"Titel 2",100)
ListEx::AddColumn(#lg_test1,2,"Titel 3",300)
  
For i = 0 To 100
  ListEx::AddItem(#lg_test1,ListEx::#LastItem,"Zeile " + Str(i) + #LF$ + "Zeile " + Str(i) + #LF$ + "Zeile " + Str(i))
Next i

ListEx::DisableReDraw(#lg_test1,#False)

Repeat
  EventID = WaitWindowEvent(1) 
Until EventID = #PB_Event_CloseWindow

CloseWindow(0)
Problem 1: I can't select a line higher than row 18. Only the visible lines 1..17 can be selected with the mouse.

Problem 2: If i make a right click => the program crashes.

If i change the width of the 3rd column to "100", the program is ok and the 2 problems are gone. In this case the table is smaller than the gadget.

Any idea ?

Regards Matthias
nicoh
User
User
Posts: 10
Joined: Thu Sep 19, 2019 10:44 am

Re: [Modules] ListEx (all OS / DPI)

Post by nicoh »

Hi,

the ListEx::#EventType_Row event is not fired when navigating with up and down keys.
Post Reply