[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 »

I'm afraid I forgot the clip output for the header.
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: 834
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Hi, Thorsten1867

With last version I have 2 issues:

1) It rise an error when you execute the included sample

Image

I Solved it temporaly adding a If CountItems(ListEx()) codition


2) When you export to CSV a list, first column is ignored
Try change in the included Sample:
If ListEx::Gadget(#List, 10, 10, 395, 230, "", 25, "", ListEx::#GridLines|ListEx::#CheckBoxes|ListEx::#AutoResize|ListEx::#MultiSelect|ListEx::#ResizeColumn, #Window)
to
If ListEx::Gadget(#List, 10, 10, 395, 230, "testcol", 25, "", ListEx::#GridLines|ListEx::#AutoResize|ListEx::#MultiSelect|ListEx::#ResizeColumn, #Window)



On the other hand, do you have a Paypal account where you can receive donations?

Thank you for your work!
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 »

Bugfixes

@zikitrake
You will find what you are looking for under " Tea & Pizza Ware" in the module. :wink:
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: 834
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Thorsten1867 wrote:Bugfixes

@zikitrake
You will find what you are looking for under " Tea & Pizza Ware" in the module. :wink:
All works fine, now.
Thank you! :D
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:
- Bugfixes
- ResetSort() added
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Hi Thorsten1867, I have a problem with export - import csv ... is not correctly imported or may be exported ... or I do some thing wrong .. can you help me ?

https://pasteboard.co/IS1iteo.png

Code: Select all

...
Case #Export
    ListEx::ExportCSV(#List, "Export.csv", ListEx::#HeaderRow)
Case #Import
    ListEx::ImportCSV(#List, "Import.csv") ;; with ListEx::#HeaderRow - get Error.
...
Thank you! Nice Lib!


Update:

I fixed code in my way ... quickly fix

Code: Select all

    Procedure.i Import_CSV_Header(String.s, Separator.s, DQuote.s)
      Define.i idx = 1 ;; FIX  set to '1'
      Define.s Column$
      
      String = ReplaceString(DQuote + Trim(String, DQuote), DQuote + Separator + DQuote, #LF$) ;; FIX  added 'DQuote +' 
      
      ForEach ListEx()\Cols()    
        
        Column$ = StringField(String, idx, #LF$)
        
        If Column$
          ListEx()\Cols()\Header\Title = Column$
        EndIf  
        
        idx + 1
      Next
      
    EndProcedure
    
    Procedure.i Import_CSV_Row(String.s, Separator.s, DQuote.s)
      
      ; My FIX
      String = RemoveString(String, DQuote + Separator + DQuote, #PB_String_CaseSensitive, 1, 1)  ; remove unnecessary  ";"    ??~!
      
      String = ReplaceString(String, DQuote + Separator + DQuote, #LF$)
      String = Trim(String, DQuote)
      
      ProcedureReturn AddItem_(-1, String, "", #False)
    EndProcedure


but checkbox state not saved ..

please fix in your style .. thx.
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:
- Bugfixes and updates for CSV
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Thorsten1867 wrote:Update:
- Bugfixes and updates for CSV
working! thank you!
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 »

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

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Code: Select all

        ListEx::AddColumn(#List, 5, "Progress", 60, "progress", ListEx::#ProgressBar)
        
        ListEx::SetColumnAttribute(#List, 5, ListEx::#Font, #Font_Arial9B)
Bug!? if is set #ProgressBar font, will apply to all items and colums ... except first row ...

https://prnt.sc/r0qhi7
https://prnt.sc/r0q6z6
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 »

Cannot reproduce the error.

Code: Select all

ListEx::SetFont(#List, FontID(#Font_Arial9B), #False, 5)
Try this!
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
ruslanx
User
User
Posts: 46
Joined: Mon Jun 06, 2011 8:28 am

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

Post by ruslanx »

Hi, no effect on progress bar, on other columns font is applied font.

.. I want to change progress bar (percent) font size .. tried 2 methods not work correctly
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: SetColumnImage()
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: 501
Joined: Tue Oct 14, 2014 12:09 pm

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

Post by loulou2522 »

HI Thorsten,
In my #list i don't want to export in csv column
and the last column (type button) of each row.
How can i do to make that ?
Have you an idea or may i have to developp something
Example
Which is exported actually
"";"RUM";"IBAN";"ICS";"MONTANT";"LIBELLE";""
"0";"0012020220152331";"FR76";"FR";"100,00";" ";""
and i want only to export
"RUM";"IBAN";"ICS";"MONTANT";"LIBELLE"
"0012020220152331";"FR76";"FR";"100,00;""
Thanks in advance
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:
  • Flag #NoButtons for CSV
@loulou2522
Please try it.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

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