Multirow DcBrowse with Visualstyle looks strong

This forum is for eXpress++ general support.
Post Reply
Message
Author
Leon Berger
Posts: 36
Joined: Thu Jan 28, 2010 2:30 pm

Multirow DcBrowse with Visualstyle looks strong

#1 Post 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
Best regards
Leon

User avatar
Tom
Posts: 1172
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Multirow DcBrowse with Visualstyle looks strong

#2 Post 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.
Attachments
Colored multirow browse
Colored multirow browse
multirow.jpg (136.07 KiB) Viewed 7445 times
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Multirow DcBrowse with Visualstyle looks strong

#3 Post 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 7413 times
The eXpress train is coming - and it has more cars.

Post Reply