View number

Rusty

Well-Known Member
Licensed User
Longtime User
I am adding multiple views to an activity (or panel). As I add each view, I would like to keep track of the view "number".
(When I say view "number", it is an identifier that would allow me to know which view is in focus. i.e. Activity.RemoveViewAt(zzz) where zzz represents the View "number" or identifier.)
Is there a way to retrieve this number during the addview method or during any other method? or a way to find which view has focus when it gets focus?
Thanks in advance
 
Thanks Erel,
I'm not trying to remove the view, I'm trying to "highlight" the view from within a service using a callsub to be able to access the UI from the service.
I sort of have it working by:
When I create a view, I store activity.numberofviews in a tag. Then from within the service I am able to use a callsub to have the "highlighter" change the background attributes of the view whose number is contained within the tag.
It seems to work, but I thought there might be a "proper" or more elegant way to acquire the view number.
 
Upvote 0
Back
Top