[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Hello again!
Is it possible to resize the columns as in a standard Purebasic Listicon?
I've tried several options but none of them let me.

Image

Thousands of thanks in advance.
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Bugfixes

@zikitrake
Try it again! (#ResizeColumn)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Thorsten1867 wrote:Bugfixes

@zikitrake
Try it again! (#ResizeColumn)
Thank you!
Now the resizing works, but strange effects appear :shock:
Image
Sorry for the inconvenience
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

new attempt
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Now works much better, but it happens that when it reaches the minimum width of the column the mouse is released, so to resize to a wider width need to make an extra click

Image

PS: I hope I've explained (I'm sorry for my bad English)
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Fixed
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Now much better!
I continue with the problems (if you get tired of me, you send me away! :D )

If I disable the SetAutoResizeColumn command, and scroll the list horizontally, the possibility of resizing is lost.

Image

:idea: On the other hand, could it be possible to add the option so that when resizing one column all the others would be moved? (as in the standard ListiconGadget)
Image

Thank you for your patience!
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: Flags #ResizeColum / #AdjustColumns
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Thank you, but it's still a problem :(
When you re-dimension the columns, the position for resizing the columns does not coincide with the point of union between two columns.

Image
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

I hope the problem is solved now.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Thorsten1867 wrote:I hope the problem is solved now.
I'm sorry to say no :cry:
Image
PB 6.21 beta, PureVision User
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

It was AutoResizeColumn(). It adjusted the magnification again to the total width.
When AutoResizeColumn() is defined, the #ResizeColumn flag is now removed.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

@Thorsten1867,
Re: Resizing Columns:
Your demo code, now, works fine on my MacBook.
Thank you.
DE AA EB
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Thorsten1867 wrote:It was AutoResizeColumn(). It adjusted the magnification again to the total width.
When AutoResizeColumn() is defined, the #ResizeColumn flag is now removed.
:oops: Sorry It was my fault. Now it's working perfectly!
PB 6.21 beta, PureVision User
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1282
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

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

Post by Paul »

Just a note...
when resizing Columns, your Columns don't follow the scrollbar so if you move the scrollbar you can no longer select the column to resize it.
Image Image
Post Reply