It is currently Mon Sep 23, 2019 5:00 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 156 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next
Author Message
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 8:06 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 700
Location: Spain
Good morning! And thank you for updates :D

There seems to be a small bug with the mouse scroll button when resizing the gadget.

With the vertical bar activated everything works correctly, but when resizing the gadget, this bar disappears (as it should be) but the scroll button of the mouse continues scrolling the list (although it already appears full on the screen).

Image

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 9:24 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Bug fixed

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 9:47 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 700
Location: Spain
Thorsten1867 wrote:
Bug fixed

Thank you!!, but I think you forgot to update Github file :) (last modification was 14 hours ago)

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 10:00 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Bugfix: brain memory error :wink:

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 10:12 am 
Offline
Enthusiast
Enthusiast
User avatar

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

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 10:33 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Try it again.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 11:58 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 130
Location: NL
@zikitrake
What you use to create those small screen captures¿


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 12:45 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Rinzwind wrote:
@zikitrake
What you use to create those small screen captures¿

Windows: Snipping Tool

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 1:11 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1017
Location: Amphibios 9
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

_________________
Can't decide if i need a hug, an XXL coffee, 6 shots of vodka or 2 weeks of sleep.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Mon Aug 19, 2019 3:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

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

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Aug 25, 2019 8:22 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1013
Location: Portugal
Having just a little problem.

Using this code

Code:
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Aug 25, 2019 9:56 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
I tried it with the current version of ListEx and couldn't find any problem.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Aug 25, 2019 1:15 pm 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1013
Location: Portugal
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Aug 25, 2019 3:52 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
If there is no popup menu attached, you can query an event:

Code:
Case ListEx::#Event_Gadget
  Select EventType()
    Case #PB_EventType_RightClick
      Debug "RightClick: " + Str(EventData())
  EndSelect

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Modules] ListEx (all OS / DPI)
PostPosted: Sun Aug 25, 2019 4:37 pm 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1013
Location: Portugal
Hi Just tried:-

Code:

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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 156 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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