Skip to main content
Inspiring
September 12, 2007
Answered

List still throws clicks when hidden

  • September 12, 2007
  • 3 replies
  • 297 views
So, I have a List component which was on the display list but is currently off the display list. If the user clicks on the screen location where one of the List items used to be, it throws the "ITEM_CLICK" event.

Why is this? And what's the best way to stop it - do I have to manually set and unset the "enabled" property when I show and hide the component?
This topic has been closed for replies.
Correct answer RyanORo
So it's apparently "Answer My Own Question Day" or maybe "Think Before Posting Day"... setting and unsetting the "visible" flag does what I want here.

Thanks, me!

3 replies

RyanORoAuthor
Inspiring
September 12, 2007
[double post]
RyanORoAuthorCorrect answer
Inspiring
September 12, 2007
So it's apparently "Answer My Own Question Day" or maybe "Think Before Posting Day"... setting and unsetting the "visible" flag does what I want here.

Thanks, me!
RyanORoAuthor
Inspiring
September 12, 2007
OK, my mistake... I was not actually pulling the List from the display list, just alphaing it out, so of course it was still active.

However, even when do set "enabled" to false, the List is still intercepting clicks - not doing anything with them, but blocking what is behind it. Do I have to fully remove it from the display list in order to stop it from doing that?