Notifications
Clear all
[Closed] How expand colums in a max window
Aug 09, 2022 8:21 am
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.
4 Replies
1 Reply
oops, I tried to load the image but without success, here is the image that explains the columns in question.
Aug 09, 2022 8:21 am
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)
)
Aug 09, 2022 8:21 am
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)
)