Notifications
Clear all

[Closed] How expand colums in a max window

Hi,

I’m trying to find a way to expand all the columns of a window with maxscript, because when I open the window it always comes with small columns.

aaaa|690×292

4 Replies

what windows and columns are you talking about?

1 Reply
(@nathanwk)
Joined: 10 months ago

Posts: 0

oops, I tried to load the image but without success, here is the image that explains the columns in question.

actionMan.executeAction -43434444 "4096"

(
	data = windows.getChildHWND 0 "Batch Render"
	hwnd = data[1]
	rect = windows.getWindowPos hwnd
	resize = 300
	rect.w += resize
	windows.setWindowPos hwnd rect on
	lv = for c in windows.getChildrenHWND hwnd where c[4] == "SysListView32" do exit with c[1]
	LVM_GETCOLUMNWIDTH = 0x101D -- (LVM_FIRST + 30)
	LVM_SETCOLUMNWIDTH = 0x101E -- (LVM_FIRST + 30)
	column_index = 2 -- zero based
	width = windows.sendmessage lv LVM_GETCOLUMNWIDTH column_index 0  
	windows.sendmessage lv LVM_SETCOLUMNWIDTH column_index (width + resize)
)

thanks, I changed some variables to fixed values because I was increasing the window every time I updated, but it helped a lot, your help is being the most useful to increment my script. thanks!!![quote=“denisT, post:4, topic:2068801, full:true”]

actionMan.executeAction -43434444 "4096"

(
	data = windows.getChildHWND 0 "Batch Render"
	hwnd = data[1]
	rect = windows.getWindowPos hwnd
	resize = 300
	rect.w += resize
	windows.setWindowPos hwnd rect on
	lv = for c in windows.getChildrenHWND hwnd where c[4] == "SysListView32" do exit with c[1]
	LVM_GETCOLUMNWIDTH = 0x101D -- (LVM_FIRST + 30)
	LVM_SETCOLUMNWIDTH = 0x101E -- (LVM_FIRST + 30)
	column_index = 2 -- zero based
	width = windows.sendmessage lv LVM_GETCOLUMNWIDTH column_index 0  
	windows.sendmessage lv LVM_SETCOLUMNWIDTH column_index (width + resize)
)