[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:
  • Added: ListEx::SetColumnFlags() / RemoveColumnFlag()
  • StringGadget() replaced by internal DrawString_()
  • Addded: ListEx::Hide()

Code: Select all

ListEx::SetColumnFlags(#List, 3, ListEx::#Strings|ListEx::#Center)
ListEx::RemoveColumnFlag(#List, 3, ListEx::#Strings)

ListEx::Hide(#List, #True)
Last edited by Thorsten1867 on Sun Nov 17, 2019 1:26 pm, edited 1 time in total.
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: Added: CSV - support

Code: Select all

ListEx::ClipBoard(#List, ListEx::#Checked|ListEx::#HeaderRow, ",", #DQUOTE$)

ListEx::ExportCSV(#List, "Export.csv", ListEx::#HeaderRow)
ListEx::ImportCSV(#List, "Import.csv", ListEx::#HeaderRow, ",", "'")
Last edited by Thorsten1867 on Sun Nov 17, 2019 1:20 pm, edited 1 time in total.
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,
I have two questions about Listex:

1. I would like to temporarily #Lockcell. I can do this with

Code: Select all

ListEx::SetCellFlags(#List,5,2,ListEx::#LockCell)
However, I would like to reset the originals but there is no ListEx::GetCellFlags()
Do you have a recommended way of doing Unlocking a Locked cell?

2. I have noticed that locked cells still allow Drag/Drop to take place. Is this intended?
DE AA EB
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 »

davido wrote:@Thorsten1867,
I have two questions about Listex:

1. I would like to temporarily #Lockcell. I can do this with

Code: Select all

ListEx::SetCellFlags(#List,5,2,ListEx::#LockCell)
However, I would like to reset the originals but there is no ListEx::GetCellFlags()
Do you have a recommended way of doing Unlocking a Locked cell?
1.

Code: Select all

RemoveCellFlag(#List,5,2,ListEx::#LockCell)
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 »

davido wrote:@Thorsten18672. I have noticed that locked cells still allow Drag/Drop to take place. Is this intended?
2. Bug fixed
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,
Thank you for the update.

Unfortunately it fails to compile. The error is:

ThemeGUI\BackColor = BlendColor_(OSX_NSColorToRGB(CocoaMessage(0, 0, "NSColor textBackgroundColor")), $FFFFFF, 80)
[14:13:15] [COMPILER] Line 987: BlendColor_() is not a function, array, list, map or macro.

Model Name: MacBook Pro
Model Identifier: MacBookPro12,1
Processor Name: Intel Core i7
System Version: macOS 10.14.6 (18G1012)
Kernel Version: Darwin 18.7.0
DE AA EB
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,

I have been using Listex [Last Update: 11.11.2019] on my Mac.
When entering text into an editable string by keyboard, the text appears in the header for column 0. The cell being edited is clear.

I checked this on my PC but that works perfectly.

I cannot recall if the problem exists with earlier versions, sorry.
DE AA EB
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 »

@davido
This is a bug in PureBasic under MacOS.
I have implemented a workaround.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Champ de structure introuvable Font

Post by loulou2522 »

Helo,
In the last version the instruction

Ligne 3327 ListEXModule.pbi
If IsFont(ModuleEx::ThemeGUI\Font\Num)
Champ de structure introuvable Font
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 »

@loulou2522

Update "ModuleEx.pbi"
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,

Thank you, very much, for the rapid response.
Editing strings works fine, now. :D

I just love your casual comment:
Thorsten1867 wrote: I have implemented a workaround.
I would just like to add:
ListEX is an excellent alternative to ListView and ListIcon gadgets.
It addresses all those annoying little omissions in those gadgets and
performs faster and cleaner.
It would be nice if such high quality gadgets could be added, in
some way, to PureBasic so that they would work natively with the
Dialog Library.

Thank you for all the hard work you have put into this project.
DE AA EB
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: Gadget number 'ListEx::#Theme' (#PB_Default) changes all gadgets for suitable commands

Code: Select all

ListEx::SetHeaderAttribute(ListEx::#Theme, ListEx::#Align, ListEx::#Center)
ListEx::SetColorTheme(#PB_Default, ListEx::#Theme_Blue)
This should significantly simplify the adjustments for a uniform design when using multiple lists.
Last edited by Thorsten1867 on Sun Nov 17, 2019 1:12 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

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

Post by Cyllceaux »

Hi,

Now I got an error on Line 5596

Code: Select all

      If #Version < ModuleEx::#Version : Debug "Please update ModuleEx.pbi" : EndIf 
#Version do not exist

I always do a "git pull". So I have the actual version. I always use the ModuleEx from the ModuleEx repository, not the "sidefile" from ListEx
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 »

Sorry, I must have uploaded the wrong version. (fixed)
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: new attribute '#MaxChars' (string gadget)

Code: Select all

ListEx::SetAttribute(#List, ListEx::#MaxChars, 10)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply