Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » ColumnList clipping problem
ColumnList clipping problem [message #46429] Tue, 10 May 2016 13:33 Go to next message
cbpporter is currently offline  cbpporter
Messages: 1406
Registered: September 2007
Ultimate Contributor
I'm trying to draw an outline around the active item in a ColumnList. I'm drawing outlines and not using background color because the ColumnList is meant to never be focused. That's why I added a LineEdit in the sample, to take the focus away.

When the cursor is on the first item, it is drawn correctly.

Any other line, the last line of pixels is clipped from the item.

PS: How do you disable the drag and drop column resizing?

  • Attachment: testlist.zip
    (Size: 1.94KB, Downloaded 199 times)
Re: ColumnList clipping problem [message #46430 is a reply to message #46429] Tue, 10 May 2016 13:38 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1406
Registered: September 2007
Ultimate Contributor
PS2: Years ago, when I used U++, there was some method of getting the system colors, for highlights, shadows and stuff. I can't find it anymore.
Re: ColumnList clipping problem [message #46431 is a reply to message #46430] Tue, 10 May 2016 14:07 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1406
Registered: September 2007
Ultimate Contributor
cbpporter wrote on Tue, 10 May 2016 14:38
PS2: Years ago, when I used U++, there was some method of getting the system colors, for highlights, shadows and stuff. I can't find it anymore.

Found them by accident: they start with S.
Re: ColumnList clipping problem [message #46438 is a reply to message #46431] Wed, 11 May 2016 10:23 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1406
Registered: September 2007
Ultimate Contributor
Nevermind.

The problem was that I was passing in right and bottom, not width and height.

One more question: does the style field in the display have support for telling me if the item is drawn in that popup that shows up when the calculated size is greater than the element?
Previous Topic: why the ctrl does`t have HWND?
Next Topic: [Linux] Upp application can block all mouse events
Goto Forum:
  


Current Time: Fri Jun 21 23:21:20 CEST 2024

Total time taken to generate the page: 0.01123 seconds