[futurebasic] Re: [FB] Replacement for Listbox

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Wed, 7 Mar 2012 09:44:57 -0700
On Mar 7, 2012, at 12:45 AM, Robert Covington wrote:

> I just need a single column. 
> 
> Can one use an Edit field (Scrollable, there are 49+ items typically) and know what line is clicked? I could then indicate a 'selection' by changing that line's color or style perhaps.
> 
> I need to be able to set a background color.


I know how to set foreground text color but not background color in a DataBrowser. Bernie has demonstrated this in prior posts. Basically, a custom draw handler needs to be installed ( ev.eventClass = _kEventClassDataBrowser
ev.eventKind  = _kEventDataBrowserDrawCustomItem ) that draws the foreground text with a color. It’s been posted before for standard DataBrowser code. Bernie’s DBData code might be easier if it implements changes to foreground text.

Brian S