Page 12 of 33
Re: [Modules] ListEx (all OS / DPI)
Posted: Wed Oct 02, 2019 3:41 pm
by Everything
Now it works like a charm
Thx.
Re: [Modules] ListEx (all OS / DPI)
Posted: Mon Oct 14, 2019 7:03 pm
by davido
@Thorsten1867,
Do you know if it is possible to setup Drag/Drop on:
Rows or Columns or even Cells (single or multiple)?
Re: [Modules] ListEx (all OS / DPI)
Posted: Tue Oct 15, 2019 3:22 pm
by Thorsten1867
I don't have much experience with Drag & Drop yet, but it should be possible. With EventDropX() and EventDropY() it should be possible to determine the row or column.
Re: [Modules] ListEx (all OS / DPI)
Posted: Tue Oct 15, 2019 7:49 pm
by davido
@
Thorsten1867,
Thank you, very much, for your rapid and very helpful response.
I have checked your suggestion and it appears to work.
I apologise for not having taken enough care to find this in the manual.

Re: [Modules] ListEx (all OS / DPI)
Posted: Wed Oct 16, 2019 3:56 pm
by Thorsten1867
Update: Drag & Drop for editable cells (text)
Re: [Modules] ListEx (all OS / DPI)
Posted: Wed Oct 16, 2019 7:10 pm
by davido
@
Thorsten1867,
An unexpected gift! Thank you.
Works fine for me.
You've made it
so easy to set-up. Brilliant!
Re: [Modules] ListEx (all OS / DPI)
Posted: Thu Oct 17, 2019 7:08 am
by Thorsten1867
Update:
- Bugfix: Font
- Drag & Drop: Insert a space if the cell already contains text.
@davido
Sounded like a good idea, which could be integrated without much effort.
Re: [Modules] ListEx (all OS / DPI)
Posted: Fri Oct 18, 2019 8:06 am
by Cyllceaux
some HARD-Performance-Tweaks for FitColumn
In AddItem
Code: Select all
If ListEx()\FitCols : FitColumns_() : EndIf
To
Code: Select all
If ListEx()\ReDraw
If ListEx()\FitCols : FitColumns_() : EndIf
UpdateRowY_()
Draw_()
EndIf
In DisableReDraw
Code: Select all
Else
ListEx()\ReDraw = #True
If ListEx()\FitCols : FitColumns_() : EndIf
UpdateRowY_()
UpdateColumnX_()
Draw_()
EndIf
SetItemText (on both positions)
Code: Select all
If ListEx()\ReDraw
If ListEx()\Cols()\Flags & #FitColumn : FitColumns_() : EndIf
Draw_()
EndIf
Re: [Modules] ListEx (all OS / DPI)
Posted: Fri Oct 18, 2019 8:13 am
by Cyllceaux
Another Question...
How to set #FitColumn for Column 0?
Re: [Modules] ListEx (all OS / DPI)
Posted: Fri Oct 18, 2019 9:21 am
by Cyllceaux
fond this

#Enable_ProgressBar = #False
Code: Select all
CompilerIf #Enable_ProgressBar
Declare SetProgressBarAttribute(GNum.i, Attrib.i, Value.i)
Declare SetProgressBarFlags(GNum.i, Flags.i)
CompilerEndIf
Re: [Modules] ListEx (all OS / DPI)
Posted: Fri Oct 18, 2019 9:36 am
by Cyllceaux
_SynchronizeScrollCols()
Code: Select all
If ScrollPos < ListEx()\Col\OffsetX
ListEx()\Col\OffsetX = ScrollPos; - dpiX(20)
ElseIf ScrollPos > ListEx()\Col\OffsetX
ListEx()\Col\OffsetX = ScrollPos; + dpiX(20)
EndIf
After I changed this... it's not flickering anymore
Re: [Modules] ListEx (all OS / DPI)
Posted: Sun Oct 20, 2019 8:21 pm
by Cyllceaux
Oh... I have an EditGadget and a ListEx in the same window.
The ListEx takes the Returnkey so there is no Linebreak in the EditorGadget.

Re: [Modules] ListEx (all OS / DPI)
Posted: Mon Oct 21, 2019 7:38 am
by Thorsten1867
See if it works now.
Re: [Modules] ListEx (all OS / DPI)
Posted: Tue Oct 22, 2019 5:02 pm
by Cyllceaux
Thorsten1867 wrote:See if it works now.
The EditorGadget workes fine

thx
Re: [Modules] ListEx (all OS / DPI)
Posted: Sat Oct 26, 2019 11:16 am
by kinglestat
First of all, I quite like your grid. I am a heavy grid user!
I have 4 questions
Q1 is it possible to have rows of different sizes?
Q2 Is it possible to have only certain cells editable? For example only 1 cell in a whole grid
Q3 Is it possible to have a individual/different types in same column? For example column 2 row 1 string, column 2 row 2 combobox etc
Q4 If there is an image + edit/string in cell, is it possible to detect image click?