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

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

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

Post by zikitrake »

Thorsten1867 wrote:Bug fixed
Thank you!!, but I think you forgot to update Github file :) (last modification was 14 hours ago)
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 »

Bugfix: brain memory error :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 »

Thank you :D

But no, when scrolling and selecting an item from the last ones, if you resize until the vertical bar disappears, the items that were not visible disappear.

Image

Sincerely, thank you very much 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 »

Try it again.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

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

Post by Rinzwind »

@zikitrake
What you use to create those small screen captures¿
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 »

Rinzwind wrote:@zikitrake
What you use to create those small screen captures¿
Windows: Snipping Tool
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

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

Post by Kiffi »

Thorsten1867 wrote:
Rinzwind wrote:@zikitrake
What you use to create those small screen captures¿
Windows: Snipping Tool
@Thorsten1867: As far as I know, you can't create GIFs with the sniping tool.

@Rinzwind: I don't know which tool zikitrake uses, but I can recommend ScreenToGif.

Greetings ... Peter
Hygge
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:Try it again.
Yeah! It works fine now!
Rinzwind wrote:@zikitrake
What you use to create those small screen captures¿
Hi, I use http://gifrecorder.com/ :)
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

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

Post by collectordave »

Having just a little problem.

Using this code

Code: Select all

IncludeFile "ListExModule.pbi"

Define AddLine.s

  winAdminMain = OpenWindow(#PB_Any, 0, 0, 700, 410, "DB Admin", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
 
  
   TestList =  ListEx::Gadget(#PB_Any, 5, 5, 600, 350, "First Column", 80, "", ListEx::#GridLines|ListEx::#AutoResize) ; ListEx::#NoRowHeader|ListEx::#MultiSelect|ListEx::#NumberedColumn|ListEx::#CheckBoxes|ListEx::#SingleClickEdit|ListEx::#AutoResize 
    ListEx::AddColumn(TestList, 1, "Second", 75, "", ListEx::#Editable)
    ListEx::AddColumn(TestList, ListEx::#LastItem, "Third",100, "")
    ListEx::AddColumn(TestList, ListEx::#LastItem, "Fourth",100, "",ListEx::#FitColumn|ListEx::#Editable)
    ListEx::AddColumn(TestList, ListEx::#LastItem, "Fith",100, "", ListEx::#FitColumn|ListEx::#Editable)
    ListEx::AddColumn(TestList, ListEx::#LastItem, "Sixth",50, "",  ListEx::#FitColumn|ListEx::#Editable)
    
    AddLine = "Column 1" + #LF$ + "Column 2" + #LF$+ "Column 3" + #LF$+ "Column 4" + #LF$+ "Column 5" + #LF$+ "Column 6"
    
    
    ListEx::AddItem(TestList, 0, AddLine)
    
     AddLine = "Column 1" + #LF$ + "Column 2" + #LF$+ "Column 3" + #LF$+ "Column 4 Longer" + #LF$+ "Column 5" + #LF$+ "Column 6"
   
    ListEx::AddItem(TestList, 1, AddLine)
    
    Repeat
        
        Event = WaitWindowEvent()
        Select Event
          Case #PB_Event_CloseWindow
            End
    
        Case #PB_Event_Menu
          Select EventMenu()
          EndSelect
    
        Case #PB_Event_Gadget
          Select EventGadget()
          EndSelect
      EndSelect
      
I create the List but the first thing I notice is that when clicking column 6 the row does not highlight. Clicking earlier columns the row highlights but only so far.

Then if i double click in the right hand portion of column 4 Column 6 appears ready to be edited.

What am I missing?

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
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 tried it with the current version of ListEx and couldn't find any problem.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

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

Post by collectordave »

Downloaded again no bother.

Just one more question how to get the row number after a right click?

Want to add delete rows at the selected row.

Thanks

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
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 »

If there is no popup menu attached, you can query an event:

Code: Select all

Case ListEx::#Event_Gadget
  Select EventType()
    Case #PB_EventType_RightClick 
      Debug "RightClick: " + Str(EventData())
  EndSelect
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

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

Post by collectordave »

Hi Just tried:-

Code: Select all


Case ListEx::#Event_Gadget

  Debug "Listex Event"
  Select EventType()
    Case #PB_EventType_RightClick
      Debug "RightClick: " + Str(EventData())
    Case #PB_EventType_LeftClick
      Debug "LeftClick: " + Str(EventData())     
  EndSelect

I only get an event when I left click no event when I right click.

There is no popup menu defined at all.

And in both cases the second debug statement is never fired.

Regards

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
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 »

You need ListEx with "Last Update: 23.08.2019"
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

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