[Modules] ListEx (all OS / DPI)
Re: [Modules] ListEx (all OS / DPI)
If I use ModuleEx with ListEx:
ListEx: 5025
ListEx()\ScrollBar\Color\Focus = ModuleEx::ThemeGUI\FocusBack
FocusBack does not exist
ListEx: 5025
ListEx()\ScrollBar\Color\Focus = ModuleEx::ThemeGUI\FocusBack
FocusBack does not exist
Re: [Modules] ListEx (all OS / DPI)
Oh... and another one
This, works great.
This doesn't draw gridlines and no row is selectable
Maybe with "UseExistingCanvas" the height of the gadget should be used, not the parameter
This, works great.
Code: Select all
Gadget(*dialog\_lstNotizen,0,0,0,0,"Titel",100,"",#GridLines|#UseExistingCanvas,*dialog\window)
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)
-
- Enthusiast
- Posts: 501
- Joined: Tue Oct 14, 2014 12:09 pm
Re: [Modules] ListEx (all OS / DPI)
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;;
in pbPDFmodule
#version also cause trouble
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;;
ligne 482Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
in pbPDFmodule
Ligne 500Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
#version also cause trouble
-
- Enthusiast
- Posts: 501
- Joined: Tue Oct 14, 2014 12:09 pm
Re: [Modules] ListEx (all OS / DPI)
#none also cause trouble, #right alsoloulou2522 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;;ligne 482Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
in pbPDFmoduleLigne 500Declare SetFont(ID.i, Family.s="", Style.s="", Size.i=#PB_Default)
#version also cause trouble
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 ?
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Modules] ListEx (all OS / DPI)
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.
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.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
- Enthusiast
- Posts: 501
- Joined: Tue Oct 14, 2014 12:09 pm
Re: [Modules] ListEx (all OS / DPI)
I know but all of these are declared like global and cause impossibility of compiing.
You can try and you will see
You can try and you will see
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Modules] ListEx (all OS / DPI)
I use this modules in my program and I have no problems:
There can actually only be problems if you use "UseModule" several times without calling first "UnuseModule".
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"
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Modules] ListEx (all OS / DPI)
Bug fixedCyllceaux wrote:FocusBack does not exist
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
- Enthusiast
- Posts: 501
- Joined: Tue Oct 14, 2014 12:09 pm
Re: [Modules] ListEx (all OS / DPI)
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
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)
Line 151: File not found
Re: [Modules] ListEx (all OS / DPI)
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
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)
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.
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.
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{Downloads}.:|:.{History Viewer Online}
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Modules] ListEx (all OS / DPI)
Bugfixes
@HeX0R
After a gadget event (#EventType_Row) you can use it to check the status of the line.
@HeX0R
After a gadget event (#EventType_Row) you can use it to check the status of the line.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Re: [Modules] ListEx (all OS / DPI)
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
I downloaded the last version, described bug with sorting the column ist still in. Sorting only when scrollbar is totally on top.
Regards
Rainer
- Thorsten1867
- Addict
- Posts: 1366
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Re: [Modules] ListEx (all OS / DPI)
I tested it again and uploaded it.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]