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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Chamelon progress....
Re: Chamelon progress.... [message #3942 is a reply to message #3916] Mon, 10 July 2006 15:34 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Hi!

There is a little problem with chameleon and header ctrl. Let me try to describe it:

The problem is that vertical lines of arrayctrl (gridctrl) and header cells' separators
can't be positioned idealy. By idealy I mean impression of one straigth line.
Just look at the screenshots below. On the first screen (where clear looks theme is used)
cell separator is painted one pixel before vertical line of grid body.
On the second screen (fatluna theme (luna variation)) cell separator is painted one pixel
after the grid line.
The problem is that authors of the themes paint that separators either on the left side of header
cell bitmap or on the right side of it - it depends what visual effect they want to achieve.

But whatever place they choose there always be grid line and cell separator +/- one pixel difference.

My solution is to have functions (from ch series) to paint header cell body without the left/right edge
and function to paint only the edge of cell (is it possible to distinguish the body and the edge using
xp theme api??).
Now ChPaint(w,x,y,cx,cy, HeaderTabLook(n)) draws body and separator together (with body streched
according to cx and cy values).

If I could also paint that separators in horizontal direction I could draw properly horizontal fixed
cells (see screen 1 - the top and bottom edges of horizontal fixed cells are now duoubled).

I hope I made myself clear Smile

PS: Screens are zipped because this forum dosn't let to attach more than one file per message..

  • Attachment: screens.zip
    (Size: 134.27KB, Downloaded 1289 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TabCtrl news...
Next Topic: Painting refactored...
Goto Forum:
  


Current Time: Wed Aug 27 22:16:29 CEST 2025

Total time taken to generate the page: 0.01600 seconds