Composite containers and listeners

4 views
Skip to first unread message

Oliver Friedrich

unread,
May 4, 2010, 9:35:33 AM5/4/10
to QxTransformer Mailing List
Hi Serge and Christian,

i try to add listeners to a composite container with this code:
> <qx:composite id="imageContainer" qxt:scope="this" qxt:row="0" qxt:column="0">
> <qx:grid spacing="0">
>
> </qx:grid>
> <qxt:listener type="mousewheel" delegate="_eventMouseWheelZoom"/>
> <qxt:listener type="resize" delegate="_eventResize"/>
> </qx:composite>


But it doesn't produce the imageContainer.addListener() calls. Whats wrong?

If i move the qxt:listener inside the grid layout tag i get
grid3.addListener() calls, but a grid hasn't such events, so that's not
correct, too.

TIA,
Oliver

--
You received this message because you are subscribed to the Google Groups "QxTransformer" group.
To post to this group, send email to qxtran...@googlegroups.com.
To unsubscribe from this group, send email to qxtransforme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/qxtransformer?hl=en.

Oliver Friedrich

unread,
May 4, 2010, 9:52:16 AM5/4/10
to qxtran...@googlegroups.com
Hmm,
an answer to myself:

if i use the following i get the right imageContainer.addListener()
calls, but that's ugly ;)


> <qx:composite id="imageContainer" qxt:scope="this" qxt:row="0" qxt:column="0">
> <qx:grid spacing="0">
>
> <qxt:listener addTo="imageContainer" type="mousewheel" delegate="_eventMouseWheelZoom"/>
> <qxt:listener addTo="imageContainer" type="resize" delegate="_eventResize"/>
> </qx:grid>
> </qx:composite>


Cheers,
Oliver

Siarhei Barysiuk

unread,
May 4, 2010, 10:18:21 AM5/4/10
to qxtran...@googlegroups.com
Hi,

I'll check what's wrong with the listener and composite and will let
you know how it can be fixed except this way.

Serge
Reply all
Reply to author
Forward
0 new messages