Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Button on form not clickable with mouse

    I need to put a button on a form. I first tried ButtonItem and the button appeared as expected, but did not respond to mouse clicks. I could however tab to the button and press the space bar to "click" it and the attached clickHandler fired as expected. What would cause the button to not respond to mouse clicks?

    I then tried using an IButton as the canvas for a CanvasItem. This approach lets me include an icon in the button on the right. Something I couldn't do with a simple ButtonItem (icon only on the left in that case it appears). So this is the latest version, but the original problem persists. I can tab to the button and "click" it with the space bar, but not with the mouse. ??
    Code:
    IButton newRowButton = new IButton("Add Row");
    newRowButton.setAutoFit(true);
    newRowButton.setIconOrientation("right");
    newRowButton.setIcon("customimages/add-row-icon.gif");
    newRowButton.addClickHandler(new ClickHandler() {
    	@Override
    	public void onClick(ClickEvent event) {
    		ListGrid assortmentGrid = (ListGrid)assortmentCanvas.getCanvas();
    		assortmentGrid.startEditingNew();
    	}
    });
    CanvasItem newRowButtonItem = new CanvasItem();
    newRowButtonItem.setShowTitle(false);
    newRowButtonItem.setCanvas(newRowButton);

    #2
    (This issue was resolved offline)

    Comment

    Working...
    X