Applications, Games, Tools, User libs and useful stuff coded in PureBasic
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Fri Nov 22, 2019 8:40 pm
@
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.
Thank you.
DE AA EB
doctorized
Addict
Posts: 882 Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece
Post
by doctorized » Sat Nov 23, 2019 5:43 pm
Is there a way to have editable combo boxes?
Thorsten1867
Addict
Posts: 1372 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Sat Nov 23, 2019 8:05 pm
doctorized wrote: Is there a way to have editable combo boxes?
The ComboBoxes are already editable???
doctorized
Addict
Posts: 882 Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece
Post
by doctorized » Sat Nov 23, 2019 8:27 pm
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.
Thorsten1867
Addict
Posts: 1372 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Sat Nov 23, 2019 8:36 pm
#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.
doctorized
Addict
Posts: 882 Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece
Post
by doctorized » Sat Nov 23, 2019 9:03 pm
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.
Thorsten1867
Addict
Posts: 1372 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Sun Nov 24, 2019 10:16 am
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.
doctorized
Addict
Posts: 882 Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece
Post
by doctorized » Sun Nov 24, 2019 11:38 am
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!!
Thorsten1867
Addict
Posts: 1372 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Sun Nov 24, 2019 12:14 pm
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.)
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Sun Nov 24, 2019 3:22 pm
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
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Sat Nov 30, 2019 10:54 am
Mind Reader!!
@
Thorsten1867 ,
I was going to ask if that was possible; that is why I logged on.
Thank you very much.
DE AA EB
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Sat Nov 30, 2019 11:11 am
@
Thorsten1867 ,
Sorry to have to ask, but I am unable to discover how to invoke the multi-line text option.
Could you please explain?
DE AA EB
Thorsten1867
Addict
Posts: 1372 Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany
Post
by Thorsten1867 » Sat Nov 30, 2019 2:12 pm
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?
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")
davido
Addict
Posts: 1890 Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK
Post
by davido » Sat Nov 30, 2019 2:27 pm
@Thorsten1867 ,
Thank you, very much.
Works fine, now .
Would you be able to add those comments in your example code?
DE AA EB