Not necessarily. Only some internal functions may change (for example, PureRESIZE seems to work).byo wrote:Hmm... Will every lib made for 4.02 have to be changed for PB 4.10?
I haven't tested all libs yet ...
Moderator: gnozal
Not necessarily. Only some internal functions may change (for example, PureRESIZE seems to work).byo wrote:Hmm... Will every lib made for 4.02 have to be changed for PB 4.10?
Looks like column type #PureLVSORT_DateDDMMYYYYHHMMSS ?dige wrote:do you have also a PureLVSORT_SetColumnType() for DateTime
like this: "24.12.2007 12:00:00" ?
No, but you can use your own sorting procedure with #PureLVSORT_UserCallbackdige wrote:Or better, is it possible to change the DateTime mask?
I use #PB_Any at library initializationdige wrote:And which image id to you use for #PureLVSORT_ShowClickedHeader_Icon?
coz, I see my own icon id = 55 and not the arrow
Code: Select all
PureLVSORT_IconArrowUp = ImageID(CatchImage(#PB_Any, ?IconArrowUp))
Code: Select all
AddToImageList(PureLVSORT_IconArrowUp)
Library recompiled with PB4.20 beta 1 : http://freenet-homepage.de/gnozal/PureLVSORT___.zip (not tested).Amnesty wrote:it's not working with V 4.20, ...
You can open the installer like a zip file and then extract the files where you want.nicolaus wrote:Your libs are very nice but i have one prob if i want install the libs.
Your installer is not so nice for users wat have installet more then one version of PB
Code: Select all
#Window_0 = 0
#ListIcon_0 = 0
;
Procedure Open_Window_0()
If OpenWindow(#Window_0, 216, 0, 602, 302, "PureLVSORT Test", #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(#Window_0))
ListIconGadget(#ListIcon_0, 5, 5, 590, 285, "String", 110)
AddGadgetItem(#ListIcon_0, -1, "ABCDE" )
AddGadgetItem(#ListIcon_0, -1, "ACDEF" )
AddGadgetItem(#ListIcon_0, -1, "ZABCD" )
AddGadgetItem(#ListIcon_0, -1, "DEFGH" )
AddGadgetItem(#ListIcon_0, -1, "AFFGH" )
AddGadgetItem(#ListIcon_0, -1, "ZSFZI" )
AddGadgetItem(#ListIcon_0, -1, "ZEKZH" )
AddGadgetItem(#ListIcon_0, -1, "ZFFGH" )
AddGadgetItem(#ListIcon_0, -1, "AZFHI" )
AddGadgetItem(#ListIcon_0, -1, "AEZGH" )
AddGadgetItem(#ListIcon_0, -1, "DZFKH" )
AddGadgetItem(#ListIcon_0, -1, "DEFGI" )
AddGadgetItem(#ListIcon_0, -1, "DSFKH" )
EndIf
EndIf
EndProcedure
;
Open_Window_0()
;
If PureLVSORT_SelectGadgetToSort(#ListIcon_0, #PureLVSORT_ShowClickedHeader_IconLeft) = #PureLVSORT_Ok
PureLVSORT_SetColumnType(#ListIcon_0, 0, #PureLVSORT_String) ; default, not necessary
EndIf
;
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
Yes, you need 2 or more columns.Vladi wrote:And another issue: Any idea why sorting is not working here?
Did you try the filtering callback set with PureLVSORT_DefineFilterCallback() ?Xombie wrote:Now I have filtering question. Would it be difficult to add some functionality to the filtering part? It would be awesome if the user had the ability to control how a column is filtered.
Code: Select all
PureLVSORT_DefineFilterCallback(*UserCallbackAddress)
Define user filtering callback for #HDN_FILTERCHANGE or #HDN_FILTERBTNCLICK events.
The callback is a procedure called when a listicon header filter changes (#HDN_FILTERCHANGE) or a header button is pressed (#HDN_FILTERBTNCLICK).
The filter mode is activated with the PureLVSORT_SetFilter() function.
The callback procedure is like this :
Procedure MyFilterCallback(GadgetNumber.l, FilterString.s, ListIconColumn.l, EventID.l)
; ...
EndProcedure
declared like that :
PureLVSORT_DefineFilterCallback(@MyFilterCallback())
where :
GadgetNumber is the purebasic gadget ID
FilterString is the header filter text
ListIconColumn is the header column
EventID is the trigger event (#PureLVSORT_FilterBtnClick or #PureLVSORT_FilterChange)