[Class] LV_Colors - 1.1.05.00 (2024-03-16)
Re: [Class] LV_Colors - update on 2015-03-27
Thanks for the update - AlternateRows() is a nice feature but I find it hard to find a combination that keeps the text colour good to read, so I wonder if an AlternateRowsBG() would be useful which would just alternate the background colours, that way you can keep the text black and alternate the background color in muted tones for example. Of course easy to make using Row() but as you now have the framework for AlternateRows() in place already you might consider it.
Lintalist: website - source (github)
Re: [Class] LV_Colors - update on 2015-03-27
Hello list,
if you don't want to change the text color, just omit the TxColor parameter.
if you don't want to change the text color, just omit the TxColor parameter.
Re: [Class] LV_Colors - update on 2015-03-27
Thanks, that works perfectly.
Lintalist: website - source (github)
Re: [Class] LV_Colors - update on 2015-03-27
Updated to newest version of Class_LV_Colors (1.1.00.00), and now I get this error:
But your test example doesn't have this issue.
Win 7 64
AHK v1.1.21.00
Any clue?
Dank U
Code: Select all
Error: Call to nonexistent function.
Specifically: ObjBindMethod(This, "On_WM_Notify")
Line#
---> 1419: This.OnMessageFunc := ObjBindMethod(This, "On_WM_Notify")
Win 7 64
AHK v1.1.21.00
Any clue?
Dank U
Re: [Class] LV_Colors - update on 2015-03-31
Guest, seems like the script you're running doesn't run with AHK 1.1.20+.
*minor update*
*minor update*
Re: [Class] LV_Colors - update on 2015-03-31
Hehe, I was running it under the latest version of ahk, it's just that I auto-compile and the bin file was old.
By the way, you're using item as variable name in your class, such words are too common to be used in a class/lib, I'm using it as a global variable, it took me 30 minutes to figure out why my script doesn't work after updating to the new version of your class. Can you please consider using unique variable names?
thanks
By the way, you're using item as variable name in your class, such words are too common to be used in a class/lib, I'm using it as a global variable, it took me 30 minutes to figure out why my script doesn't work after updating to the new version of your class. Can you please consider using unique variable names?
thanks
Re: [Class] LV_Colors - update on 2015-03-31
Nevermind, new version seems to be too buggy, now my GUI keeps getting stuck, I think it's the critical issue you mentioned in your comment.
Reverting to the old version.
Reverting to the old version.
Re: [Class] LV_Colors - update on 2015-03-31
I think that you shouldn't use common words for your Global vars if you want to use third party classes.Guest wrote:By the way, you're using item as variable name in your class, such words are too common to be used in a class/lib, I'm using it as a global variable, it took me 30 minutes to figure out why my script doesn't work after updating to the new version of your class. Can you please consider using unique variable names?
Did you set Critical? The old version was using Critical := 100 as default.
Re: [Class] LV_Colors - update on 2015-03-31
StaticMode not working.
Test code:
Tested on:
Edit: Seems another bug: CLV := New LV_Colors(HLV2, False, True, NoSizing := False) can't make the listview header resizable.
Test code:
Code: Select all
#Include, <Class_LV_Colors>
Gui, Add, ListView, w600 r15 Grid -ReadOnly vVLV hwndHLV, Column 1
LV_Add("", "11111111")
Gui, Show
CLV := New LV_Colors(HLV, True) ; StaticMode not working.
CLV.OnMessage()
CLV.Row(1, 0xFAF305)
Return
GuiClose:
ExitApp
Thanks.LV_Colors: 2015-03-31 (v1.1.01.00)
AutoHotkey: v1.1.21.02 U32
OS: Win7 x64
Edit: Seems another bug: CLV := New LV_Colors(HLV2, False, True, NoSizing := False) can't make the listview header resizable.
Re: [Class] LV_Colors - update on 2015-03-31
Hi tmplinshi, thanks for reporting. Should be fixed now.
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Thank you, works now.
...Found another small issue : When dragging the LV header, the listview becomes unstable (row data and color will disappear).
See gif image below (Click the image to play). You may not able to reproduce this issue, since it won't appear often.
...Found another small issue : When dragging the LV header, the listview becomes unstable (row data and color will disappear).
See gif image below (Click the image to play). You may not able to reproduce this issue, since it won't appear often.
Test code
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
You might need to set CLV.Critical, because the new default is Critical := "Off".
Also, CLV.OnMessage() isn't required any more.
Also, CLV.OnMessage() isn't required any more.
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Thanks! CLV.Critical := 500 works for me.
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
I've been using the last few versions and now v1.1.02.00 as well, I do tend to notice that at random (meaning I can't reproduce it) the listview control either: 1 - freezes (refuses to update), 2 - completely disappears (where the LV should be there is just a gray rectangle) 3 - and sometimes (not all the time) when 1 & 2 happen Gui hotkeys (#IfWinActive) stop responding (e.g esc to close the gui or scrolling don't work) - when 3 happens I have to kill the script - if 1 or 2 happens I can redraw the gui (gui, destroy) and it will work again.
I have tried with and without .critical
It happens on win7/32 bit and Win8/64
Like I said I can't reproduce it consistently but it does happen from time to time, not that the above helps but I thought I report it anyway - not saying it is your class either, it could very well be a combination of factors including poor coding skills on my part.
I have tried with and without .critical
It happens on win7/32 bit and Win8/64
Like I said I can't reproduce it consistently but it does happen from time to time, not that the above helps but I thought I report it anyway - not saying it is your class either, it could very well be a combination of factors including poor coding skills on my part.
Lintalist: website - source (github)
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Hello list,
this is a known problem with ListViews and also TreeViews, last discussed here and not solved until now. It seems to be related to the way AHK is 'buffering' messages/events.
this is a known problem with ListViews and also TreeViews, last discussed here and not solved until now. It seems to be related to the way AHK is 'buffering' messages/events.
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Thank you for the additional info!
Lintalist: website - source (github)
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Bug report: Cell color goto wrong row number, when using 'StaticMode'.
Code: Select all
Gui, Add, ListView, w300 Grid HwndHLV, Column 1|Column 2|Column 3
Loop, 3
LV_Add("", 111, 222, 333)
Gui, Show
#Include, <Class_LV_Colors>
CLV := New LV_Colors(HLV, True) ; StaticMode
CLV.Cell(2, 2, 0x000000) ; <--- color should in row 2, but the result is in row 3.
Return
GuiClose:
ExitApp
Last edited by tmplinshi on 11 Apr 2015, 09:00, edited 1 time in total.
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Hello tmplinshi,
thanks for reporting.
It's a missing dot in the Cell() method:It will be fixed soon.
thanks for reporting.
It's a missing dot in the Cell() method:
Code: Select all
Cell(Row, Col, BkColor := "", TxColor := "") {
If !(This.HWND)
Return False
If ThisIsStatic ; <<<<< has to be This.IsStatic
Re: [Class] LV_Colors - 1.1.02.00 (2015-04-07)
Thanks! works after adding a dot.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
*update 1.1.03.00*
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 135 guests