What are the size restrictions for the VCL controls like TPanel and TPaintBox.? Are they documented anywhere? I'm talking about placing these on a TScrollBox, so the screen size is not a limit. The maximum width of a TPanel on my computer seems to be 2^15 pixels, but I couldn't find any documentation on it, so it might even depend on the Windows version or the graphics driver.
TPanel is a TWinControl, I guess that the size restrictions are binded to Windows (and it's version).
ReplyDeleteTPaintBox is a TGraphicControl, it's size could be larger then a TWinControl but can only be displayed inside a TWinControl.
That's the limit I've known that I discovered about 10 years ago. The Windows (and so VCL) window size limit has been that universally all the time, AFAIK.
ReplyDeleteSome Windows messages use the LPARAM to carry width and height, which allows only 16 bit for each.
ReplyDeleteIs it the same size limits that are described in GetDeviceCaps?
ReplyDeletehttps://msdn.microsoft.com/en-us/library/windows/desktop/dd144877(v=vs.85).aspx
I agree with Uwe Raabe - (16 bits - 1) is safest.
ReplyDeleteLars Fosdal No
ReplyDelete