Page 21 of 33

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

Posted: Sun Dec 29, 2019 9:56 am
by Thorsten1867
Bitblazer wrote:Nice module, but is it possible to create lines with different colors?
Why don't you try SetItemColor() ?
With ListIconGadget(), you would also need to use SetGadgetItemColor() and not SetGadgetColor(). :wink:

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

Posted: Sun Dec 29, 2019 11:26 am
by tatanas
It's almost good :?
It works well until you scroll to the right (in your example). Left-Right arrow cursor then stay even if the cursor is not on a separator or flickers again.

Thanks you for your time.

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

Posted: Sun Dec 29, 2019 3:25 pm
by Thorsten1867
I hope my changes will help.

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

Posted: Mon Dec 30, 2019 4:12 pm
by tatanas
Nice job !

Another small bug (just need a refresh I suppose)
In your example :
- Scroll the listview to the right at maximum
- Resize the window until scrollbars disappear
See the display problem ?

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

Posted: Mon Dec 30, 2019 6:21 pm
by Thorsten1867
Bugfix

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

Posted: Mon Dec 30, 2019 6:42 pm
by tatanas
Thanks, That's perfect ! :D

About the drag and drop functionality between rows, to reorganize them, do you think it's doable ?
It could be just one row at a time.

Edit : What do you think about closing the string edit field when escaping ?
Edit2 : I just tried to make 2 "button columns", when I apply an image to one of the 2 buttons, it applies to the other button too.

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

Posted: Mon Dec 30, 2019 8:14 pm
by Thorsten1867
tatanas wrote:About the drag and drop functionality between rows, to reorganize them, do you think it's doable ?
It could be just one row at a time.
I think this is very complicated and it would probably confuse the data.
tatanas wrote:Edit : What do you think about closing the string edit field when escaping ?
Fixed!
tatanas wrote: : I just tried to make 2 "button columns", when I apply an image to one of the 2 buttons, it applies to the other button too.
What order are you using? It works in my example.

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

Posted: Tue Dec 31, 2019 4:17 pm
by tatanas
I think this is very complicated and it would probably confuse the data.
I understand.

You're right, the problem I had with button in the columns was my fault.

Another question : is it possible to use ExtractIconEx_() to get an icon for the button ?
I use it then passed to SetItemImageHwnd() (I duplicate your SetItemImage() and remove the ImageId() part because I already got an handle from ExtractIconEx_) and it doesn't work.

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

Posted: Tue Dec 31, 2019 5:03 pm
by Thorsten1867
Update:
  • Changed: SetItemImage(GNum.i, Row.i, Column.i, Image.i, Align.i=#Left, Width.i=#PB_Default, Height.i=#PB_Default)
  • Added: SetItemImageID(GNum.i, Row.i, Column.i, Width.f, Height.f, ImageID.i, Align.i=#Left)

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

Posted: Fri Jan 10, 2020 12:56 am
by DK_PETER
That is some seriously nice work you've done.
Thank you for making your modules available.
Best regards
Peter

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

Posted: Sat Jan 11, 2020 4:28 am
by Oliver13
First, I want to thank you again for your hard work and the great controls.

I found following small bugs:

- if you compile the sample, the first row is not displayed.
You need to scroll down; if you then scroll upwards, the 1st row appears

- the sort routine seem not to work.

I added the following line to the sample:

Code: Select all

 ListEx::Sort(#list,2, #PB_Sort_Ascending,listex::#SortString|ListEx::#Deutsch) 
But there is no sorting, while sorting by headerclick works.

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

Posted: Sat Jan 11, 2020 10:59 am
by Thorsten1867
Bugfixes

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

Posted: Sun Jan 12, 2020 8:59 pm
by davido
@Thorsten1867,
Is it possible to make the text in a column header wrap rather than spill over into the column header on the right?

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

Posted: Wed Jan 15, 2020 9:56 am
by Thorsten1867
Do you use MacOS?

Gesendet von meinem Aquaris X2 mit Tapatalk

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

Posted: Thu Jan 16, 2020 8:49 pm
by davido
@Thorsten1867,
I did, actually, observe the problem on my MacBook.
However, upon checking on a Windows 10 machine, I observed the same problem.

The cells had the same height, sufficient for 3 lines of text.
The text spilled into an empty cell on the right.
It would overwrite text if present in the cell on the right. No text was erased.

Tested with PureBasic 5.70 x64.