1. Commented code in getClientRect?
Derek,
Trying to track down my problems using xControls/Win32lib.
I ran the clientarea.exw demo with win32lib v60.6 and when I clicked the
"Hide SB" button the client area did not change. It did change for
the toolbar button hide/show.
I dug into win32lib.ew and found that in getClientRect the check for
a visible status bar was commented out. Therefore, the height of the
status bar was always being subtracted from the client area.
Was this commented code intentional or am I missing something? I
uncommented the code and clientarea.exw worked as I expected it to.
Jonas Temple
http://www.yhti.net/~jktemple
2. Re: Commented code in getClientRect?
- Posted by Derek Parnell <ddparnell at bigpond.com>
Nov 10, 2004
-
Last edited Nov 11, 2004
Jonas Temple wrote:
>
> Derek,
>
> Trying to track down my problems using xControls/Win32lib.
>
> I ran the clientarea.exw demo with win32lib v60.6 and when I clicked the
> "Hide SB" button the client area did not change. It did change for
> the toolbar button hide/show.
>
> I dug into win32lib.ew and found that in getClientRect the check for
> a visible status bar was commented out. Therefore, the height of the
> status bar was always being subtracted from the client area.
>
> Was this commented code intentional or am I missing something? I
> uncommented the code and clientarea.exw worked as I expected it to.
>
No, that was a mistake. I was testing something and 'temporarily'
commented it out, but forgot to put it back in again. I've
fixed that for the next release.
--
Derek Parnell
Melbourne, Australia