Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Highlighting Databrowser rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlighting Databrowser rows



Hi Matt.

There are a bunch of flags to set for the data browser, right after you
create it,
that determine how does the browser deal with selection.

in my program, for example, i want only one selection line possible,
without multiple lines
selected, and of course no non-contiguous selection. so i use the
following flags setup:

/* Adjust browser behaviour for selection of species */
DataBrowserSelectionFlags flags = kDataBrowserNeverEmptySelectionSet |
kDataBrowserSelectOnlyOne |
kDataBrowserNoDisjointSelection |
kDataBrowserResetSelection;

::SetDataBrowserSelectionFlags(mTableControl, flags);

in the controldefinitions.h there is the full list of flags you can use.

In addition, you can determine which columns (properties) of the data
browser are
selectable, and which aren't.


>I can't figure out what settings I need to make my databrowser's rows
>highlight when I click somewhere in them. If I make a text column
>editable then, eventually, that cell highlights for editing. I don't
>want to edit the cells, I just want to see that it was clicked on and
>selected.
>
>
>What am I doing wrong ?

Motti Shneor,
CEO, suMac LTD.
Software Development for the Macintosh
---
ceterum censeo microsoftiem delendam esse
---
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.