[Project_owners] disabling tree rows

Eric H. Jung grimholtz at yahoo.com
Thu Feb 2 06:11:01 EST 2006

Why not hide the unrelated windows--what is wrong with that?

If you must show them and can't disable them, how about breaking the UI
into two trees, one for "related windows" and another for "unrelated
windows"? You can disable the entire "unrelated windows" tree.

--- HJ <bugs4hj at netscape.net> wrote:

> I have a tree that lists all open windows from NC:WindowMediatorRoot
> and
> I hide all unrelated windows with:
> tree.builderView.getItemAtIndex(row).hidden = true;
> but that sucks, so I want to disable them instead.  How should I
> solve 
> this problem? Has anyone ever done something like this?  I already
> tried:
> tree.builderView.getItemAtIndex(row).setAttribute("disabled",
> "true");
> but that obviously didn't work.  BTW: selecting of disabled tree rows
> should not be possible.  What's next?
> All help is highly appreciated of course ;)
> /HJ
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list