It is currently Sat Feb 29, 2020 4:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 368 posts ]  Go to page Previous  1 ... 19, 20, 21, 22, 23, 24, 25  Next
Author Message
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Jan 22, 2020 2:10 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
I'm afraid I forgot the clip output for the header.

_________________
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 23, 2020 4:11 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 717
Location: Spain
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!

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Jan 23, 2020 7:37 pm 
Offline
Addict
Addict
User avatar

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

@zikitrake
You will find what you are looking for under " Tea & Pizza Ware" in the module. :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: Thu Jan 23, 2020 8:49 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 717
Location: Spain
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

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Jan 27, 2020 4:50 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Update:
- Bugfixes
- ResetSort() added

_________________
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 Jan 28, 2020 7:58 am 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 27
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:
...
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:
    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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Tue Jan 28, 2020 3:57 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Update:
- Bugfixes and updates for CSV

_________________
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 Jan 28, 2020 4:28 pm 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 27
Thorsten1867 wrote:
Update:
- Bugfixes and updates for CSV


working! thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Fri Jan 31, 2020 8:09 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: Tue Feb 11, 2020 2:22 pm 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 27
Code:
        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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Wed Feb 12, 2020 1:19 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Cannot reproduce the error.

Code:
ListEx::SetFont(#List, FontID(#Font_Arial9B), #False, 5)

Try this!

_________________
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: Wed Feb 12, 2020 6:24 pm 
Offline
User
User

Joined: Mon Jun 06, 2011 8:28 am
Posts: 27
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


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Feb 13, 2020 2:53 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Update:
  • Added: SetColumnImage()

_________________
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 Feb 13, 2020 3:56 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Oct 14, 2014 12:09 pm
Posts: 262
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
Quote:
"";"RUM";"IBAN";"ICS";"MONTANT";"LIBELLE";""
"0";"0012020220152331";"FR76";"FR";"100,00";" ";""

and i want only to export
Quote:
"RUM";"IBAN";"ICS";"MONTANT";"LIBELLE"
"0012020220152331";"FR76";"FR";"100,00;""

Thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Thu Feb 13, 2020 4:39 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 1127
Location: Germany
Update:
  • Flag #NoButtons for CSV
@loulou2522
Please try it.

_________________
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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 368 posts ]  Go to page Previous  1 ... 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