[solved] Notepad?? - Change Width of syslistview321

Get help with using AutoHotkey and its commands and hotkeys
User avatar
PuzzledGreatly
Posts: 922
Joined: 29 Sep 2013, 22:18

[solved] Notepad?? - Change Width of syslistview321

17 Jan 2014, 20:09

I use Notepad++ and every time I open it the Doc Switcher syslistview sets the width of column 1 to a very narrow default. I can' find a setting in Notepad++ to adjust this (even looked in the registry). Now I'm wondering if I can use autohotkey to adjust the width of the syslistview in the Doc Switcher which I have docked. Anyone else noticed this annoyance with Notepad++. Thanks
Last edited by PuzzledGreatly on 18 Jan 2014, 03:29, edited 1 time in total.
User avatar
VxE
Posts: 44
Joined: 30 Sep 2013, 10:35
Location: Simi Valley, CA

Re: Notepad?? - Change Width of syslistview321

18 Jan 2014, 03:07

You can try LVM_SETCOLUMNWIDTH on that dastardly listview.
User avatar
PuzzledGreatly
Posts: 922
Joined: 29 Sep 2013, 22:18

Re: Notepad?? - Change Width of syslistview321

18 Jan 2014, 03:29

Great! Thanks for the tip, with it I managed to find this in the help file:

Code: Select all

 On a related note, the columns in a ListView can be resized via SendMessage as shown in this example:

SendMessage, 4126, 0, 80, SysListView321, WinTitle  ; 4126 is the message LVM_SETCOLUMNWIDTH.
; In the above, 0 indicates the first column (specify 1 for the second, 2 for the third, etc.)  Also, 80 is the new width.
; Replace 80 with -1 to autosize the column. Replace it with -2 to do the same but also take into account the header text width.
and this sets my desired width:

Code: Select all

settitlematchmode, 2
SendMessage, 4126, 0, 215, SysListView321, Notepad++
User avatar
PuzzledGreatly
Posts: 922
Joined: 29 Sep 2013, 22:18

Query about Sendmesage

18 Jan 2014, 23:26

Why does this work:

Code: Select all

run, C:\Program Files (x86)\Notepad++\notepad++.exe,,, PID
winwait, ahk_pid %PID%
settitlematchmode 2
SendMessage, 4126, 0, 215, SysListView321, Notepad++
But this doesn't?

Code: Select all

run, C:\Program Files (x86)\Notepad++\notepad++.exe,,, PID
winwait, ahk_pid %PID%
SendMessage, 4126, 0, 215, SysListView321,  ahk_pid %PID%
Thanks
User avatar
LazyMan
Posts: 26
Joined: 14 Jan 2014, 00:22
Location: peering out from behind my favorite rock

Re: [solved] Notepad?? - Change Width of syslistview321

19 Jan 2014, 21:36

Just guessing ... maybe notepad++ spawns a child process and then orphans it?

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], c7aesa7r, Google [Bot], mcl, svArtist, WOlfen, zKade and 54 guests