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   |
|
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 
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)
|
|
|
Goto Forum:
Current Time: Wed Aug 27 22:16:29 CEST 2025
Total time taken to generate the page: 0.01600 seconds
|