USEVISUALSTYLE with XbpBrowse

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

USEVISUALSTYLE with XbpBrowse

#1 Post by rdonnay »

I'm trying to get the look of Windows Visual Style on a browse, but I also want to show lines between the columns and rows.

Has anyone figured out how to do this?
visualstyle.jpg
visualstyle.jpg (172.14 KiB) Viewed 5642 times
The eXpress train is coming - and it has more cars.

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

Re: USEVISUALSTYLE with XbpBrowse

#2 Post by Tom »

Row lines don't work with visual styles. I added this using ownerdrawing (and I added different highlighting for Windows 10 (boxes), since row hilite is hard to see with those low contrasts). To get column lines back, you need to set XBPCOL_SEP_LINE for XBP_PP_COL_DA_COLSEPARATOR and (!) XBP_PP_COL_DA_ROWSEPARATOR, but there will be no line separator. Use XBPFRAME_BOX at XBP_PP_COL_DA_CELLFRAMELAYOUT.
Best regards,
Tom

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

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

Re: USEVISUALSTYLE with XbpBrowse

#3 Post by rdonnay »

I assumed that I could paint the lines with ownerdraw.
I had hoped there was a simpler solution.

Thanks for the advice.
The eXpress train is coming - and it has more cars.

Post Reply