It is currently Sat Feb 29, 2020 3:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 368 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24, 25  Next
Author Message
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Dec 29, 2019 9:56 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
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:

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Dec 29, 2019 11:26 am 
Offline
User
User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 48
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Dec 29, 2019 3:25 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
I hope my changes will help.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Dec 30, 2019 4:12 pm 
Offline
User
User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 48
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 ?


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Dec 30, 2019 6:21 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Bugfix

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Dec 30, 2019 6:42 pm 
Offline
User
User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 48
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Dec 30, 2019 8:14 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
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.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Dec 31, 2019 4:17 pm 
Offline
User
User

Joined: Wed Nov 06, 2019 10:28 am
Posts: 48
Quote:
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Dec 31, 2019 5:03 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
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)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Jan 10, 2020 12:56 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2011 10:06 am
Posts: 824
Location: Denmark
That is some seriously nice work you've done.
Thank you for making your modules available.
Best regards
Peter

_________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.”
— Benjamin Franklin
Current configurations: Windows 10, Intel 6800K, GeForce Gtx 1060, 32 gb ram.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sat Jan 11, 2020 4:28 am 
Offline
User
User

Joined: Thu Sep 30, 2010 6:40 am
Posts: 65
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:
 ListEx::Sort(#list,2, #PB_Sort_Ascending,listex::#SortString|ListEx::#Deutsch)


But there is no sorting, while sorting by headerclick works.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sat Jan 11, 2020 10:59 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Bugfixes

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Jan 12, 2020 8:59 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1737
Location: Uttoxeter, UK
@Thorsten1867,
Is it possible to make the text in a column header wrap rather than spill over into the column header on the right?

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Jan 15, 2020 9:56 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Do you use MacOS?

Gesendet von meinem Aquaris X2 mit Tapatalk

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Jan 16, 2020 8:49 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1737
Location: Uttoxeter, UK
@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.

_________________
DE AA EB


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 368 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24, 25  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye