tags:

views:

17

answers:

2

I would like to enable a click event only on the title bar of a spark TitleWindow. Any ideas on which property I should add the addResponder?

Thanx for your help

A: 

Can you inherit from TitleWindow and add a custom event to handle clicks on the title area?

Assaf Lavie
+1  A: 

Extend the TitleWindow class, listen to its creationComplete event, and attach a click event listener to the titleBar from the creation complete handler. Now dispatch a custom event, say titleBarClicked from that click event handler.

Had the titleBar property been public instead of protected, you needn't have to go through extending TitleWindow for accomplishing this.

Amarghosh
Thanx @Amarghosh for your help.
Adnan