jbuszkie
01-13-2006, 02:45 PM
I'm looking through the widget API's and I don't see anything that will return the widget position number.
say you have
a
b
c
d
e
f
g
h
i
and I want to insert a widget between G and H. I can search for A and make a child widget for it and specify 0 for the index.. but I want it between G and H. I can search for G... but how do I get it's index number so I can bump the index by one and insert my widget there using InsertWidgetChild?
Am I going to have to GetAllChildren and seach until I find G and remember how many I went through? That seems like a pain. Am I missing an API that will do this?
Thanks,
Jim "In STVi hell"
say you have
a
b
c
d
e
f
g
h
i
and I want to insert a widget between G and H. I can search for A and make a child widget for it and specify 0 for the index.. but I want it between G and H. I can search for G... but how do I get it's index number so I can bump the index by one and insert my widget there using InsertWidgetChild?
Am I going to have to GetAllChildren and seach until I find G and remember how many I went through? That seems like a pain. Am I missing an API that will do this?
Thanks,
Jim "In STVi hell"