[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update:
DPI adjustment & Bugfixes

@Paul
Please test it. It works with DPI 175% !?!
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Thorsten1867 wrote: Sat May 14, 2022 10:38 am Update:
DPI adjustment & Bugfixes

@Paul
Please test it. It works with DPI 175% !?!
Sorry, still has bugs.
Bottom scrollbar doesn't really work and boxes can be selected by clicking on scrollbar. Also selection is messed up if columns are resized and size scrollbar is moved.

I PM'd you a video.
Image Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Bugfixes: Resizing Gadget & Scrollbars
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: Scrollbar buttons scroll line-by-line or column-by-column
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Bugfix: Resize Column
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update:
  • several bugfixes
  • Examples completely revised and more clearly arranged
Examples with different lists:

Code: Select all

- Numbering in column 0
- Checkboxes in column 0
- Checkboxes (#ThreeState)
- Without row header
- Change column width with the mouse (resizes the table width)
- Adjust column width with the mouse (without changing the table width)
- Edit with a single click
- Multiple selection for rows
- Automatically adjust row height
Combinable function examples:

Code: Select all

- Customise header
- Customise columns
- Change list fonts
- Change list colors
- Use a color theme
- Use images
- Change row height
- Set the focus on a row
- Change the status of checkboxes (needs example 2)
- Sort column with a click on the header
- Column with progress bar
- Maximum number of characters for editable cells
- Format content
- Mark content in accordance With certain rules
- Allow only valid entries when editing
- Horizontal scrollbar
- Add pop-up menu
- Hide a column
- Tooltips for columns
- Adjust column width when resizing
- Change resizing
- Export table content as CSV
- Use Markdown as text (needs 'MarkdownModule.pbi')
- Use GUI theme        (needs 'ModuleEx.pbi')
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Sorry but nothing seems to have changed from the videos I sent you earlier.
There are still DPI issues :(

1. Example 4 allows you to change column width. As soon as the column width is changed and the sliders are moved, everything is out of alignment.
2. You can mess everything up by simply making the Window smaller, move the sliders, then try and click on a cell.
3. When releasing the mouse button after using a slider, the slider also seem to 'stick' to the mouse pointer as if you have not released the mouse button.
4. Once the Window is resized or column sizes are changed, the horizontal slider is unable to show the entire table when sliding to the right.

Here is another video demonstrating the issues...
https://youtu.be/oT41urMXxk8
Image Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Paul wrote: Mon May 23, 2022 3:41 pm Sorry but nothing seems to have changed from the videos I sent you earlier.
There are still DPI issues :(
I'm sorry, but I can't relate to most of the problems with my computer. I have tried some of the procedures described and it worked.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
blueb
Addict
Addict
Posts: 1037
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

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

Post by blueb »

Looking through ...

Download of PureBasic - Modules
Download of PureBasic - Programs


I find that ListEx hasn't changed since May 12th

Perhaps you didn't update the file :?:
- It was too lonely at the top.

System : PB 6.10 Beta 7 (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Thorsten1867 wrote: Mon May 23, 2022 4:11 pm
Paul wrote: Mon May 23, 2022 3:41 pm Sorry but nothing seems to have changed from the videos I sent you earlier.
There are still DPI issues :(
I'm sorry, but I can't relate to most of the problems with my computer. I have tried some of the procedures described and it worked.
Are you testing with a 4K monitor?
Image Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Resolution: 1920x1080
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

blueb wrote: Mon May 23, 2022 4:24 pm Looking through ...

Download of PureBasic - Modules
Download of PureBasic - Programs


I find that ListEx hasn't changed since May 12th

Perhaps you didn't update the file :?:
https://u.pcloud.link/publink/show?code ... oyJQ56HXg7
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Thorsten1867 wrote: Mon May 23, 2022 4:27 pm Resolution: 1920x1080
1920x1080 would be just an HD monitor.
If you are not using a 4K monitor then you won't be getting the high DPI that comes with it (and where DPI Aware is most needed).
4K monitor would give resolutions of 3840x2160 or higher.
Image Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

I use these PB functions, which actually also output the appropriate values on 4K?!?

Code: Select all

DesktopScaledX()
DesktopScaledX()
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Thorsten1867 wrote: Mon May 23, 2022 4:43 pm I use these PB functions, which actually also output the appropriate values on 4K?!?

Code: Select all

DesktopScaledX()
DesktopScaledX()
Yes those PB commands work on a 4K monitor but there seems to be issues with how you calculate positions and offsets and I guess you are not going to see them without using a high DPI 4K monitor. The issues I recorded in the video are on a 4K monitor 3840x2160 with 100% scaling but they appear the same at 150% or 175% as well.
Image Image
Post Reply