Page 31 of 33

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

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

@Paul
Please test it. It works with DPI 175% !?!

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

Posted: Sat May 14, 2022 2:55 pm
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.

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

Posted: Sat May 14, 2022 7:53 pm
by Thorsten1867
Bugfixes: Resizing Gadget & Scrollbars

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

Posted: Sun May 15, 2022 12:56 pm
by Thorsten1867
Update: Scrollbar buttons scroll line-by-line or column-by-column

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

Posted: Wed May 18, 2022 10:19 am
by Thorsten1867
Bugfix: Resize Column

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

Posted: Mon May 23, 2022 1:49 pm
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')

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

Posted: Mon May 23, 2022 3:41 pm
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

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

Posted: Mon May 23, 2022 4:11 pm
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.

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

Posted: Mon May 23, 2022 4:24 pm
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 :?:

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

Posted: Mon May 23, 2022 4:25 pm
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?

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

Posted: Mon May 23, 2022 4:27 pm
by Thorsten1867
Resolution: 1920x1080

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

Posted: Mon May 23, 2022 4:29 pm
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

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

Posted: Mon May 23, 2022 4:34 pm
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.

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

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

Code: Select all

DesktopScaledX()
DesktopScaledX()

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

Posted: Mon May 23, 2022 5:06 pm
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.