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 » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » strange layout problem
strange layout problem [message #59520] Sun, 15 January 2023 04:48
Satervalley is currently offline  Satervalley
Messages: 18
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}

index.php?t=getfile&id=6754&private=0

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}

index.php?t=getfile&id=6755&private=0

in both cases, r and sz are same, but in case2, there is a strang gap.
  • Attachment: case1.png
    (Size: 1.44KB, Downloaded 97 times)
  • Attachment: case2.png
    (Size: 2.59KB, Downloaded 100 times)

[Updated on: Sun, 15 January 2023 04:51]

Report message to a moderator

Previous Topic: funny bug(or maybe not)
Next Topic: SqlArray sorting
Goto Forum:
  


Current Time: Fri Apr 19 04:38:03 CEST 2024

Total time taken to generate the page: 0.02384 seconds