tried your new lib but it did not solve the problem.
First run is normal like in screenshot 1.
And on the second run the list isn´t updated any more :
Regards Klaus
PS : i edited my example a little bit (delete Button)
Moderator: gnozal
Sorry for this, this subclassing stuff is a bit tricky ...ABBKlaus wrote:Hi Gnozal,
tried your new lib but it did not solve the problem.
First run is normal like in screenshot 1.
And on the second run the list isn´t updated any more :
Regards Klaus
PS : i edited my example a little bit (delete Button)
I'm afraid your bitmaps are not 16x16...gnozal wrote:my code doesn't work with bitmaps, your code also doesn't work if the bitmap is loaded with CatchImage().
Or am I missing something ?
Code: Select all
hImgList = ImageList_Create_(12, 12, #ILC_MASK | #ILC_COLOR32, 1, 1)
Yes !!!klaver wrote:I'm afraid your bitmaps are not 16x16...gnozal wrote:my code doesn't work with bitmaps, your code also doesn't work if the bitmap is loaded with CatchImage().
Or am I missing something ?
Code: Select all
onErrorGoto(?Fred)
No.AND51 wrote:is there a way to assign different userdefined-sorting-callbacks to different columns/listicons
Code: Select all
Procedure MySortingCallback(ListIconNumber.l, ListIconColumn.l, Item1.s, Item2.s)
Select ListIconNumber
Case #My1stListIcon
Select ListIconColumn
Case #My1stListIcon_Column0
; user defined sorting for 1st Listicon Column 0
Case #My1stListIcon_Column1
; user defined sorting for 1st Listicon Column 1
; etc ...
EndSelect
Case #My2ndListIcon
Select ListIconColumn
Case #My2ndListIcon_Column0
; user defined sorting for 2nd Listicon Column 0
Case #My2ndListIcon_Column1
; user defined sorting for 2nd Listicon Column 1
; etc ...
EndSelect
EndSelect
EndProcedure
I would use a user defined callback, like the one described in the first part of this post. The default setting (string) would also work if you rset the number of players (05/10 instead of 5/10)AND51 wrote:BTW, I must sort a column containing the amount of players on a game server:
12/32 (twelve of 32 players are online), 16/16 (16 of 16 are online), 0/12 (nobody), and so on.
Which sorting type do you recommend? PureLVSORT_DateMMDDYYYY![]()
I'm already using a userdefined-sorting-callback, but in another listicon. AFAIK, you allow only one callback for all columns/gadgets...
Code: Select all
onErrorGoto(?Fred)
Code: Select all
onErrorGoto(?Fred)
Code: Select all
onErrorGoto(?Fred)
Ok, will seeAND51 wrote:Create a normal window + listicongadget. Set the last column to "AutoResize when listicongadget is resized".
Now: Maximize and restore the window. A horizontal scrollbar appears (when XP skin off AND on)!!
Obviously, you make the last column some pixels too expanded.
Moreover, you forget to calculate a possible (vertical) scrollbar, I think.
I did not know ... Will see what I can doAND51 wrote:You know, that you can double click between two headers to resize the specified column depending on its content.
Iif you use the double click method, the last column is not being auto-resized.
Code: Select all
Entry Data
picture.jpg 1
apple.gif 2
pure.pb 3
Code: Select all
Entry Data
apple.gif 1
picture.jpg 2
pure.pb 3
Code: Select all
onErrorGoto(?Fred)
You are right.AND51 wrote:I have the slightly feeling that your library is not compatible with Set/GetGadgetItemData().
No.AND51 wrote:Can you correct this?