Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » It's a little strange for zooming GridCtrl column layout width
It's a little strange for zooming GridCtrl column layout width [message #29014] |
Sat, 02 October 2010 04:09 |
sevenjay
Messages: 30 Registered: October 2008 Location: Taiwan
|
Member |
|
|
I found it's alway VertLayoutZoom even setting Width.
so I just fix it by this:
GridCtrl::ItemRect& GridCtrl::ItemRect::SizeH(int n)
{
hidden = n == 0;
n = Ctrl::VertLayoutZoom(n);
if(!hidden)
{
if(n < min) { n = min; ismin = true; }
if(n > max) { n = max; ismax = true; }
}
else
n = 0;
size = nsize = n;
return *this;
}
GridCtrl::ItemRect& GridCtrl::ItemRect::SizeW(int n)
{
hidden = n == 0;
n = Ctrl::HorzLayoutZoom(n); //modified
if(!hidden)
{
if(n < min) { n = min; ismin = true; }
if(n > max) { n = max; ismax = true; }
}
else
n = 0;
size = nsize = n;
return *this;
}
GridCtrl::ItemRect& GridCtrl::ItemRect::Width(int n)
{
return SizeW(n); //modified
}
GridCtrl::ItemRect& GridCtrl::ItemRect::Height(int n)
{
return SizeH(n); //modified
}
Maybe my code can be more clear.
[Updated on: Sat, 02 October 2010 04:10] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:19:15 CEST 2024
Total time taken to generate the page: 0.03298 seconds
|