Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » strange layout problem
strange layout problem [message #59520] |
Sun, 15 January 2023 04:48 |
Satervalley
Messages: 20 Registered: December 2022
|
Promising Member |
|
|
code first:
case 1:
r = pcList.GetRect(); // pcList is a ParentCtrl
sz = pcList.GetSize(); // sz = {316, 167}
acItemList.HSizePosZ().VSizePos(); // acItemList is an ArrayCtrl
acItemList.AddColumn("item");
acItemList.AddColumn("time");
pcList.Add(acItemList);
r = acItemList.GetRect(); // r = {0, 0, 316, 167}

case 2:
r = pcList.GetRect(); // pcList is a ParentCtrl
sz = pcList.GetSize(); // sz = {316, 167}
acItemList.HSizePosZ().TopPos(0, sz.cy); // acItemList is an ArrayCtrl, only difference is here, vertical layout method
acItemList.AddColumn("item");
acItemList.AddColumn("time");
pcList.Add(acItemList);
r = acItemList.GetRect(); // r = {0, 0, 316, 167}

in both cases, r and sz are same, but in case2, there is a strang gap.
-
Attachment: case1.png
(Size: 1.44KB, Downloaded 172 times)
-
Attachment: case2.png
(Size: 2.59KB, Downloaded 174 times)
[Updated on: Sun, 15 January 2023 04:51] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 00:43:33 CEST 2025
Total time taken to generate the page: 0.04175 seconds
|