[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by RSBasic »

Good work 8)
Image
Image
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Cyllceaux »

Works fine :)
thx
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by davido »

@Thorsten1867,
Thank you for adding 'alternate colours'. :D
DE AA EB
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Cyllceaux »

Hey there... it's me again :wink:

Just want to know how can I event a row change? I mean #PB_EventType_Change on the list.
Like:

Code: Select all

;....
if EventType()=#PB_EventType_Change and EventGadget()=#List
    protected idx=ListEx::GetState(#List)
    if idx>-1
       ;....
    endif
endif
;....
Oh... and a Bug:

GetState() returns 0 on first selected row and non selected row.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Thorsten1867 »

Depending on what has been edited, the following EventTypes will be sent:
  • String: #EventType_String
  • ComboBox: #EventType_ComboBox
  • Date: #EventType_Date
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Cyllceaux »

Thorsten1867 wrote:Depending on what has been edited, the following EventTypes will be sent:
  • String: #EventType_String
  • ComboBox: #EventType_ComboBox
  • Date: #EventType_Date

No Editing... just selecting a row. In my case, I don't need editing.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Thorsten1867 »

Update:

New EventType '#EventType_Row'

Code: Select all

If EventType() = ListEx::#EventType_Row
  Debug "Row: " + Str(EventData())
EndIf
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Cyllceaux »

Thank you :D
davebar
User
User
Posts: 82
Joined: Fri Aug 31, 2018 9:23 am
Location: Australia

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by davebar »

Is anyone else having difficulty getting the latest zip file for this?
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Kuron »

davebar wrote:Is anyone else having difficulty getting the latest zip file for this?
Downloads fine for me, but you are in OZ and they have cracked down and are banning access to many filehosts. I have temporarily uploaded it to my Google Drive. I will delete it later today, so grab it. This is the latest version, as I just downloaded it from Pcloud and uploaded it for you.


*file removed*
Last edited by Kuron on Thu May 09, 2019 3:41 pm, edited 1 time in total.
Best wishes to the PB community. Thank you for the memories. ♥️
davebar
User
User
Posts: 82
Joined: Fri Aug 31, 2018 9:23 am
Location: Australia

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by davebar »

At the present time I am in Europe not OZ. Not sure what the issue was, but I grabbed your copy from Google Drive.
Thanks very much.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Kuron »

davebar wrote:At the present time I am in Europe not OZ. Not sure what the issue was, but I grabbed your copy from Google Drive.
Thanks very much.

Glad to help. May be the same issue, lots of file hosts are getting blocked in Europe, too, even though they can be used for legit purposes. :c/
Best wishes to the PB community. Thank you for the memories. ♥️
User avatar
Ajm
Enthusiast
Enthusiast
Posts: 234
Joined: Fri Apr 25, 2003 9:27 pm
Location: Kent, UK

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Ajm »

I've just been tring to download Thorsten1867 modules from the UK and can't get any of them. I've even tried using a VPN via the US and Asia. Still just get a blank page back from pcloud.
Regards

Andy

Image
Registered PB & PureVision User
User avatar
Lord
Addict
Addict
Posts: 849
Joined: Tue May 26, 2009 2:11 pm

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Lord »

I also have trouble to get the module the "normal way".
I had to use the TOR browser to get the archiv.

Another thing:
Is it true, that ListEx::EventState(#List) in the example
always returns "0" when changing the three state checkbox?
Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Modules] Editable and sortable ListGadget (all OS / DPI

Post by Thorsten1867 »

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

Download of PureBasic - Modules
Download of PureBasic - Programs

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