Page 28 of 33

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

Posted: Sun Mar 15, 2020 9:00 pm
by Cyllceaux
If I use ModuleEx with ListEx:

ListEx: 5025
ListEx()\ScrollBar\Color\Focus = ModuleEx::ThemeGUI\FocusBack

FocusBack does not exist

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

Posted: Mon Mar 16, 2020 6:48 am
by Cyllceaux
Oh... and another one :)

This, works great.

Code: Select all

Gadget(*dialog\_lstNotizen,0,0,0,0,"Titel",100,"",#GridLines|#UseExistingCanvas,*dialog\window)
This doesn't draw gridlines and no row is selectable

Code: Select all

Gadget(*dialog\_lstNotizen,0,0,0,0,"",0,"",#GridLines|#UseExistingCanvas,*dialog\window)
SetItemText(*dialog\_lstNotizen,#Header,"Titel",0)
SetColumnAttribute(*dialog\_lstNotizen,0,#Width,100)
Maybe with "UseExistingCanvas" the height of the gadget should be used, not the parameter

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

Posted: Mon Mar 16, 2020 10:43 am
by loulou2522
Hi Thorsten,
I found a problem when you use Listex and pBPDFMODULE.pbi in the same programm because setfont() is defined in global module in each module and that's cause trouble when compiling
Can you see what to do ?


in listex;;
Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
ligne 482
in pbPDFmodule
Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
Ligne 500
#version also cause trouble

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

Posted: Mon Mar 16, 2020 12:09 pm
by loulou2522
loulou2522 wrote:Hi Thorsten,
I found a problem when you use Listex and pBPDFMODULE.pbi in the same programm because setfont() is defined in global module in each module and that's cause trouble when compiling
Can you see what to do ?


in listex;;
Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
ligne 482
in pbPDFmodule
Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
Ligne 500
#version also cause trouble
#none also cause trouble, #right also
I change SetFONT to SETFONTEX
#version to #versionex , #none to #nonex , #right to #rightex in listex and aftur the conflict was solved.
Can you see for rectifying the module to avoid these problems ?

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

Posted: Mon Mar 16, 2020 1:01 pm
by Thorsten1867
That really can't be. (I also use many modules simultaneously)

In the pbPDFModule you have #PDF::SetFont and in ListExModule you have #ListEx::SetFont() and these are two different commands because they are modules.
The same is true for #Version: #PDF::#Version and #ListEx::Version.

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

Posted: Mon Mar 16, 2020 1:03 pm
by loulou2522
I know but all of these are declared like global and cause impossibility of compiing.
You can try and you will see

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

Posted: Mon Mar 16, 2020 1:10 pm
by Thorsten1867
I use this modules in my program and I have no problems:

Code: Select all

XIncludeFile "Module\AppRegistryModule.pbi"
XIncludeFile "Module\SecureFileContainer.pbi"
XIncludeFile "Module\EditorExModule.pbi"
XIncludeFile "Module\ItemDataModule.pbi"
XIncludeFile "Module\ListExModule.pbi"
XIncludeFile "Module\MarkDownModule.pbi"
XIncludeFile "Module\ResizeExModule.pbi"
XIncludeFile "Module\ResourcesModule.pbi"
XIncludeFile "Module\StatusBarExModule.pbi"
XIncludeFile "Module\TextExModule.pbi"
XIncludeFile "Module\ToolBarExModule.pbi"
XIncludeFile "Module\pbPDFModule.pbi"
XIncludeFile "Module\ViewerExModule.pbi"
XIncludeFile "Module\MessageExModule.pbi"
There can actually only be problems if you use "UseModule" several times without calling first "UnuseModule".

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

Posted: Mon Mar 16, 2020 1:40 pm
by Thorsten1867
Cyllceaux wrote:FocusBack does not exist
Bug fixed

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

Posted: Mon Mar 16, 2020 1:48 pm
by loulou2522
o be precise, I use the PDF and lIstex modules from a module I created. The problem is most certainly due to this programming.
These three modules are loaded from the main module
Main module
in these main programm the three module are created
!!
Mymodule
!!
Listex -- PDF

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

Posted: Tue Mar 17, 2020 5:47 pm
by Cyllceaux
Line 151: File not found ;)

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

Posted: Sat Mar 28, 2020 6:22 pm
by PB_Rainer
Hi Thorsten,

maybe I found a little bug.

When you click inside the header column 2 it sorts the entries, only when the scrollbar on the right side is on top. If you move the scrollbar down just for 1 row, the click in the header column 2 will not sort the list.
If you move the scroll bar up again totally on top sorting is OK.

I tried it with your eaxmple and with my own code.

Regards Rainer

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

Posted: Mon Mar 30, 2020 9:29 pm
by HeX0R
1.)
SetItemColor(... #BackColor... Column) is not only coloring the background of the informed Column, but also all following.

2.)
What exactly is the purpose of EventState?
I thought it could help to find out if a checkbox has been ticked or unticked without the need to call GetItemState(), but it seems the state is always 0?

3.) Using the integrated example in ListExModule.pbi:
Start it up, doubleclick on a combobox, resize the whole gadget => the combobox is not moved (also some tooltipps showing "Export", "Blue", "Green" are popping up all over the gadget now).

4.) SetCellFlags() should be renamed to AddCellFlags(), because in fact it only adds flags.
Or keep the name and do a real Set, then you could also remove the RemoveCellFlags() procedure.


Question:
Is it possible to change single cells to editable/non editable or do I have to make the whole column editable?
I guess it is not possible, then I would throw it in as a feature request.

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

Posted: Tue Mar 31, 2020 2:04 pm
by Thorsten1867
Bugfixes

@HeX0R
After a gadget event (#EventType_Row) you can use it to check the status of the line.

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

Posted: Tue Mar 31, 2020 2:30 pm
by PB_Rainer
Hi Thorsten,
I downloaded the last version, described bug with sorting the column ist still in. Sorting only when scrollbar is totally on top.
Regards
Rainer

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

Posted: Tue Mar 31, 2020 3:36 pm
by Thorsten1867
I tested it again and uploaded it.