On Fri, Sep 18, 2009 at 13:13, Ken MacDonald <[email protected]> wrote:
> I have a table on my page (qx.ui.table.Table) which displays two columns of
> info, amount and ingredients for recipes.
>
> Currently, if I click the mouse on a row of the recipe table, the row is
> highlighted. I've tried both of these:
>
> this.recipeTable.releaseCapture(); // supposed to disable mouse
> events???
> this.recipeTable.highlightFocusedRow(false);
>
> to disable this. If I click on a row I'd like no visible change. So far the
> only thing that's helped is setEnabled(false), but that disables the
> scrollbar and I think the column divider if my recipe is too long or the
> columns need to be adjusted.
>
> Is there a way to disable highlights without disabling the table controls?
>
> It can't currently be control via properties. (I think that's really a
bug.) You can solve this in one of two ways:
1. Write a custom theme like this:
qx.Theme.define("custom.theme.Color",
{
extend : qx.theme.modern.Color,
colors :
{
"table-row-background-focused-selected" : "transparent",
"table-row-background-selected" : "transparent"
}
});
2. Look at the source for qx.ui.table.rowrenderer.Default and then write a
class that extends it, but override the constructor and set the colors
statically instead of dynamically as is done there. Once you've created your
subclass (e.g. custom.TableRowRenderer), you can tell the table to use it
with
table.setDataRowRenderer(new custom.TableRowRenderer());
Derrell
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel