[Class] LV_Colors - 1.1.05.00 (2024-03-16)
-
- Posts: 104
- Joined: 07 Aug 2015, 15:53
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
How to check single click? Want to run a method on a single click basis. Thanks.
-
- Posts: 104
- Joined: 07 Aug 2015, 15:53
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Just added AltSubmit to the options and it solved. Thank you.
Anyway to disable highlight (blue color) row? When i select a row i want no highlight. Or better; I want to highlight only the cell i just selected. Not full row. Just the cell. Any idea to achive this? Thanks.
Anyway to disable highlight (blue color) row? When i select a row i want no highlight. Or better; I want to highlight only the cell i just selected. Not full row. Just the cell. Any idea to achive this? Thanks.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
No, the highlight color is not drawn by the script.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
I have been getting this error when I finally updated my Autohotkey
Error at line 55.
Line Text: New(HWND, StaticMode : = False, NoSort := True, NoSizing := True)
Error: Missing comma
The program will exit.
WHAT comma is missing? I didn't change your LV_Colors.ahk file.
Error at line 55.
Line Text: New(HWND, StaticMode : = False, NoSort := True, NoSizing := True)
Error: Missing comma
The program will exit.
WHAT comma is missing? I didn't change your LV_Colors.ahk file.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Are you sure? I cannot find this space in the original script:rpboulan wrote:I didn't change your LV_Colors.ahk file.
New(HWND, StaticMode : = False, NoSort := True, NoSizing := True)
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Can you tell me why this isn't working?
http://pastebin.com/PjUYJKjj
I have tried moving "CLV := New LV_Colors(HLV, True)" from places , but it doesn't work , it doesn't change the rows color
http://pastebin.com/PjUYJKjj
I have tried moving "CLV := New LV_Colors(HLV, True)" from places , but it doesn't work , it doesn't change the rows color
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
If you create a local object within a function, the object will be destroyed when the function finishes.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
I'm new but i got what you mean. Adding Global to SetUpColors fixed tks
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
I have manually removed the selection every time the user clicks on a row.murataygun wrote: Anyway to disable highlight (blue color) row? When i select a row i want no highlight. Or better; I want to highlight only the cell i just selected. Not full row. Just the cell. Any idea to achive this? Thanks.
Code: Select all
LV_Modify(CurrentRow, "-Select")
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
In another thread, I found a script that you wrote for changing the highlight color. Considering the age of that thread, I was wondering if there is an easy way to include this functionality in LV_Colors? Possibly a better way. Thanks!just me wrote:No, the highlight color is not drawn by the script.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
The other script uses owner drawing.
LV_Colors() is using custom drawing. These are totally different concepts. So no!LVS_OWNERDRAWFIXED
The owner window can paint items in report view. The list-view control sends a WM_DRAWITEM message to paint each item; it does not send separate messages for each subitem. The iItemData member of the DRAWITEMSTRUCT structure contains the item data for the specified list-view item.
Source
- JoeWinograd
- Posts: 2203
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Hi just me,
Just a quick note to thank you for this excellent solution. I used your LV_Colors to solve the issue discussed in this thread — works great! Thanks again, Joe
Just a quick note to thank you for this excellent solution. I used your LV_Colors to solve the issue discussed in this thread — works great! Thanks again, Joe
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Static Mode doesn't appear to be working in Windows 10 64bit (using ANSI version)
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
First off, let me just say that LV_Colors works great and i use it extensively!!
Now, my questions....if i have no background color set, and i want to color an individual column(lets assume only 1 column exists in the LV) there is a slight space before the text starts that remains thebackgrouund color of the LV (white in this case) is there a way to make the cell coloring extend FULLY between the left and right edges of the listview? This would be extremely helpful to me!
Thanks so much for all your works m8!
Now, my questions....if i have no background color set, and i want to color an individual column(lets assume only 1 column exists in the LV) there is a slight space before the text starts that remains thebackgrouund color of the LV (white in this case) is there a way to make the cell coloring extend FULLY between the left and right edges of the listview? This would be extremely helpful to me!
Thanks so much for all your works m8!
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Oops...my comment above, i meant color an individual ROW, not column...but only 1 column exists, so essentially just a list.
- JoeWinograd
- Posts: 2203
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Hi treashunter,
Sounds as if I'm using LV_Colors like you — a single column, so essentially a list (I call it the Processing Console — gives the user feedback as the program is processing). Here's the code snippet I'm using to change the background color and text color on a row:
I don't know if that will solve your problem, as I don't know what you mean by "a slight space before the text starts", but the code snippet above colors the whole row for me. Regards, Joe
Sounds as if I'm using LV_Colors like you — a single column, so essentially a list (I call it the Processing Console — gives the user feedback as the program is processing). Here's the code snippet I'm using to change the background color and text color on a row:
Code: Select all
ColorBackground:="0xRRGGBB" ; hex RGB of background color
ColorText:="0xRRGGBB" ; hex RGB of text color
RowNumber:=LV_Add("",ConsoleRecord)
LV_Modify(RowNumber,"Vis") ; scroll LV so newly added last row is visible
ColorConsole.Row(RowNumber,ColorBackground,ColorText)
GuiControl,+Redraw,%ConsoleHandle%
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Hi treashunter,
all ListView items are slightly indented on the left side. Therefore the background color remains in this area.
all ListView items are slightly indented on the left side. Therefore the background color remains in this area.
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
just me - is Static Mode working for you in Win 10 Pro (x64) using ANSI?
Re: [Class] LV_Colors - 1.1.03.00 (2015-04-12)
Thanks for the reply, Just me!
I found a workaround
I simply created column 1 and 'Hide' it. When column 2 is the first 'visible' column...the background spans the complete listview width, especially when using option -E0x200...perfectly colored backgrounds!
Thanks again for all your hard work!!!!
~treas
I found a workaround
I simply created column 1 and 'Hide' it. When column 2 is the first 'visible' column...the background spans the complete listview width, especially when using option -E0x200...perfectly colored backgrounds!
Thanks again for all your hard work!!!!
~treas
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 82 guests