[Modules] ListEx (all OS / DPI)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

@Thorsten1867,
Thorsten1867 wrote:
davido wrote:Would it be possible for me to display a rectangle of thumbnails with ListEx, or have you designed this facility for small symbols only?
This should only depend on the row height.
I was hoping that you might say something like this. :D
Thank you.
DE AA EB
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

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

Post by doctorized »

Is there a way to have editable combo boxes?
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

doctorized wrote:Is there a way to have editable combo boxes?
The ComboBoxes are already editable??? :?
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

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

Post by doctorized »

Thorsten1867 wrote:
doctorized wrote:Is there a way to have editable combo boxes?
The ComboBoxes are already editable??? :?
If I add the flag ListEx::#Editable to the column, then the combo box is transformed to text box, I do not see the down arrow on the right.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

#Editable or #Strings use the StringGadget to edit the contents of the cell.

Code: Select all

ListEx::AddColumn(#List, ListEx::#LastItem, "Combo",   78, "combo",  ListEx::#ComboBoxes)
Please take a look at the example code, there you can see what which command does.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

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

Post by doctorized »

Thorsten1867 wrote:#Editable or #Strings use the StringGadget to edit the contents of the cell.

Code: Select all

ListEx::AddColumn(#List, ListEx::#LastItem, "Combo",   78, "combo",  ListEx::#ComboBoxes)
Please take a look at the example code, there you can see what which command does.
So, how can I make combo box editable? I checked your example but didn't find the answer I need.
By saying "Editable" I mean to have "male" and "female" (in your example) but also the user to be able to write their own words.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

doctorized wrote:So, how can I make combo box editable? I checked your example but didn't find the answer I need.
  • Click in the field with the selected item to the left of the selection button.
  • Use the Delete or Backspace key to delete the content.
  • Enter a new word with the letter keys.
PS: Always use the latest version of ListEx before posting, otherwise I can't reproduce problems.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

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

Post by doctorized »

Thorsten1867 wrote:PS: Always use the latest version of ListEx before posting, otherwise I can't reproduce problems.
You are publishing new version almost every day. I was using a version downloaded two days ago. This version is already outdated. It's amazing! Thank you very much!!
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

doctorized wrote:
Thorsten1867 wrote:You are publishing new version almost every day. I was using a version downloaded two days ago. This version is already outdated. It's amazing! Thank you very much!!
As soon as I hear about a bug, I try to fix it as soon as possible. (e.g. I noticed today that the ComboBoxes sometimes ignore the changed entry.)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

Thorsten1867 wrote:
doctorized wrote:
Thorsten1867 wrote:You are publishing new version almost every day. I was using a version downloaded two days ago. This version is already outdated. It's amazing! Thank you very much!!
As soon as I hear about a bug, I try to fix it as soon as possible. (e.g. I noticed today that the ComboBoxes sometimes ignore the changed entry.)
Is this similar to the problem I posted regarding the inability of choosing drop-down entries in the ComboBox(es)?
DE AA EB
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

Update: multiline support
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

Mind Reader!!

@Thorsten1867,
I was going to ask if that was possible; that is why I logged on. :)
Thank you very much. :D
DE AA EB
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

@Thorsten1867,

Sorry to have to ask, but I am unable to discover how to invoke the multi-line text option.
Could you please explain? :oops:
DE AA EB
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

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

Post by Thorsten1867 »

davido wrote:@Thorsten1867,

Sorry to have to ask, but I am unable to discover how to invoke the multi-line text option.
Could you please explain? :oops:
If the text contains a #LF$, it will be output multiline if the line height allows it.
With AddItem() you can use the character '|' instead of #LF$.

Code: Select all

ListEx::AddColumn(#List, 1, "Text", 275, "text") 
ListEx::SetRowsHeight(#List, 40)
ListEx::AddItem(#List, ListEx::#LastItem, "Row 1|Row 2")
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

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

Post by davido »

@Thorsten1867,
Thank you, very much.
Works fine, now.
Would you be able to add those comments in your example code?
DE AA EB
Post Reply