Hi,

I am trying to create a custom button with text, but the addSelectionListener for the ButtonAdapter when the widget is a Text, doesn't work.

Text logoutText = new Text("Logout");
ButtonAdapter logoutTextAdpt = new ButtonAdapter(logoutText);
logoutTextAdpt.enableEvents(true);
logoutTextAdpt.disableTextSelection(true);
logoutTextAdpt.addSelectionListener(new SelectionListener<ComponentEvent>() {

@Override
public void componentSelected(ComponentEvent ce) {
Dispatcher.forwardEvent(LoggEvents.Logout);
}
});

When I use a Image, it works.

Thanks

Ian Esper