Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reorder and resize "COLUMNHEADER" elements
#1
Question 
Hello All,

I am trying to figure out if it is possible to reorder and resize "COLUMHEADER" elements


I am able to find all of the "COLUMHEADER" elements and store them in an array with the following code
Code:
Copy      Help
 
{
var w = wnd.find(1, "Network Signal Paths", "Afx:*");
elm[] header = (w.Elm["COLUMNHEADER", "*", "class=SysHeader32"].FindAll());
print.it(header);
}

which returns 
Code:
Copy      Help
 
  COLUMNHEADER,  n="SDP A",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=910 T=170 W=112 H=24},  e=1,  w="SysHeader32"
  COLUMNHEADER,  n="Signal Path Name",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1022 T=170 W=218 H=24},  e=2,  w="SysHeader32"
  COLUMNHEADER,  n="VM",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1240 T=170 W=64 H=24},  e=3,  w="SysHeader32"
  COLUMNHEADER,  n="Layer",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1304 T=170 W=123 H=24},  e=4,  w="SysHeader32"
  COLUMNHEADER,  n="Moor",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1427 T=170 W=58 H=24},  e=5,  w="SysHeader32"
  COLUMNHEADER,  n="Label",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1485 T=170 W=100 H=24},  e=6,  w="SysHeader32"
  COLUMNHEADER,  n="Bandwidth",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1585 T=170 W=72 H=24},  e=7,  w="SysHeader32"
  COLUMNHEADER,  n="Host A",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1657 T=170 W=97 H=24},  e=8,  w="SysHeader32"
  COLUMNHEADER,  n="Multicast A",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1754 T=170 W=136 H=24},  e=9,  w="SysHeader32"
  COLUMNHEADER,  n="Interface A",  s=(READONLY, FOCUSABLE, SELECTABLE),  a="Click",  r={L=1890 T=170 W=275 H=24},  e=10,  w="SysHeader32"
  COLUMNHEADER,  n="SDP B",  s=(READONLY, INVISIBLE, OFFSCREEN, FOCUSABLE, SELECTABLE),  a="Click",  r={L=2165 T=170 W=112 H=24},  e=11,  w="SysHeader32"
  COLUMNHEADER,  n="Host B",  s=(READONLY, INVISIBLE, OFFSCREEN, FOCUSABLE, SELECTABLE),  a="Click",  r={L=2277 T=170 W=97 H=24},  e=12,  w="SysHeader32"

But I am not sure how I can reorder and resize these elements within the window. My guess is that it would be achieved with a command similar to the code below but I am not sure.
Code:
Copy      Help
findlayer.WndContainer.Send(0x1013, findlayer.Item-1); //LVM_ENSUREVISIBLE

Does anyone know how this could be achieved?

Thank you 

P.S the "Cookbook/Recipe" feature in the new version is a great help for me!


Messages In This Thread
Reorder and resize "COLUMNHEADER" elements - by mattmc81 - 03-25-2022, 08:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)