Page 1 of 1

another DCBROWSE question

Posted: Fri Mar 19, 2010 10:09 am
by fbaker
Hello Roger,

I have not been aware of this behavior before so I need to ask the following question.

I have a small array browse. The array has 7 rows but the browse window is sized such that 9 rows can be displayed at one time. The unoccupied rows are shown in the default background color while the occupied rows are coded to show white background. If I click on either one of the unoccupied rows, the highlite immediately moves to the 7th row and the action associated with ITEMMARKED is executed. This seems counter-intuitive; I thought marking a blank row would be a no-op. Is it possible to tell the browse not to arbitrarily select the last active row?

Thank you. Fred WinXPpro/1.9/252

Re: another DCBROWSE question

Posted: Fri Mar 19, 2010 12:07 pm
by rdonnay
This is obviously a default behavior of the XbpBrowse class.

I'm not sure how to override this. It will take some investigating.

Re: another DCBROWSE question

Posted: Fri Mar 19, 2010 12:39 pm
by fbaker
Roger,

Just for the exercise (or is it exorcise), I made the browse height a programmatic function of the array length. This seems to work as a means of suppressing the unoccupied rows but then the vertical scroll bar is confused (i.e. not showing its full length when the entire array is all that's visible). Don't spend a lot of time on this unless there is an obvious fix or workaround.

Thanks. Fred