Page 1 of 1

Multirow DcBrowse with Visualstyle looks strong

Posted: Mon Apr 12, 2010 8:08 pm
by Leon Berger
I have some troubles with multirow browse and visualstyle and/or changed colors:

1. example is the sample multirow without changes:

Image

2. example with visualstyle:

Image

3. example with changed colors:

Image

Last example with changed colors and visualstyle:

Image

It looks strange. Is there a fix available?

Regards from Vienna
Leon

Re: Multirow DcBrowse with Visualstyle looks strong

Posted: Tue Apr 13, 2010 4:12 am
by Tom
Hi, Leon.

I worked with Michael (Rudrich) on a custom multirow class to get toggled background colors working, and I refined this class to show different fonts in cells within the same columns and even to show icons for example (see screenshot). The possibilities of this - very specialized - class end at "visualstyle" (so I don't use visual styles in this class). I guess, using "CustomDrawCell" would lead into the right direction. Using visual styles with 1.9/SL1 and Vista or Windows 7 with the Areo Theme lead to the problem that foreground colors for cells are ignored/default to black (as you can see in the sample aswell, browse at the bottom), while background colors still work. Did anyone here play with "CustomDrawCell" already? In my opinion, this method/callback should allow to draw almost anything in a cell, but I had no time to investigate this yet.

Tom.

Re: Multirow DcBrowse with Visualstyle looks strong

Posted: Wed Apr 14, 2010 6:11 am
by rdonnay
I worked on the Multi-Cell browse many years ago and realized that it was very limited. I also had the same problem with colors. Alaska does not provide the source for the XbpCellGroup class because it was written in C so there was no way to modify its behavior.

You may want to try the Codejock ListBox.
listbox.jpg
listbox.jpg (45.55 KiB) Viewed 9063 times