Page 9 of 33

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

Posted: Mon Aug 19, 2019 9:24 am
by Thorsten1867
Bug fixed

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

Posted: Mon Aug 19, 2019 9:47 am
by zikitrake
Thorsten1867 wrote:Bug fixed
Thank you!!, but I think you forgot to update Github file :) (last modification was 14 hours ago)

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

Posted: Mon Aug 19, 2019 10:00 am
by Thorsten1867
Bugfix: brain memory error :wink:

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

Posted: Mon Aug 19, 2019 10:12 am
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.

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

Posted: Mon Aug 19, 2019 10:33 am
by Thorsten1867
Try it again.

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

Posted: Mon Aug 19, 2019 11:58 am
by Rinzwind
@zikitrake
What you use to create those small screen captures¿

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

Posted: Mon Aug 19, 2019 12:45 pm
by Thorsten1867
Rinzwind wrote:@zikitrake
What you use to create those small screen captures¿
Windows: Snipping Tool

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

Posted: Mon Aug 19, 2019 1:11 pm
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

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

Posted: Mon Aug 19, 2019 3:13 pm
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/ :)

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

Posted: Sun Aug 25, 2019 8:22 am
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

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

Posted: Sun Aug 25, 2019 9:56 am
by Thorsten1867
I tried it with the current version of ListEx and couldn't find any problem.

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

Posted: Sun Aug 25, 2019 1:15 pm
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

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

Posted: Sun Aug 25, 2019 3:52 pm
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

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

Posted: Sun Aug 25, 2019 4:37 pm
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

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

Posted: Sun Aug 25, 2019 7:54 pm
by Thorsten1867
You need ListEx with "Last Update: 23.08.2019"