![]() |
|
|||||||
| SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
How do you determine index number of a widget?
I'm looking through the widget API's and I don't see anything that will return the widget position number.
say you have Code:
a
b
c
d
e
f
g
h
i
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" |
|
#2
|
||||
|
||||
|
Quote:
Assume that you have found and have assigned widgets a,g and the new widget z to varibles... Code:
get position of g in list of a's children: pos=FindElementIndex(GetWidgetChildren(a),g) the insert the new widget as a child InsertWidgetChild(a,z,pos+1) ![]() Good luck with the stvi And I agree with you abotu STVi hell, but is better than manually merging all changes at each version update
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
|
#3
|
||||
|
||||
|
Quote:
Quote:
![]() Thanks a bunch! Jim |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|