View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004841 | JEDI VCL | 00 JVCL Components | public | 2009-06-30 13:44 | 2009-10-19 23:54 |
Reporter | WayneSherman | Assigned To | jfudickar | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | ||||
Summary | 0004841: JvFormPlacement doesn't restore the size for some forms | ||||
Description | If my forms BorderStyle is set to bsNone then the form size is not restored when I call JvFormStorage.RestoreFormPlacement. | ||||
Additional Information | The problem is in JvJVCLUtils.pas InternalRestoreFormPlacement lines 4422 to 4424: "if not (BorderStyle in [bsSizeable, bsSizeToolWin]) then..." If I comment those 3 lines out and rebuild, it works as expected. | ||||
Tags | No tags attached. | ||||
|
But what's the point to resize a window that is NOT resizable by design? I don't see the problem here... |
|
All forms have height and width properties and can be resized regardless of the BorderStyle. Just because the user can't resize it using the mouse doesn't mean it is not resizeable. In this case, I change the size of the form via code based on certain user settings. Due to the purpose of the application, the form cannot have a border (bsNone), but I still need to be able to save and restore the size. |
|
The JvFormStorage.Options has an "fpSize" member. That is the proper setting that should be used to determine if the size is saved. In my opinion, checking the borderstyle serves no useful purpose. |
|
Hi Olivier, for me it sounds logical, so I would tend to accept the issue. Any further comments. Kind regards Jens |
|
Added to the Subversion Repository |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-30 13:44 | WayneSherman | New Issue | |
2009-06-30 14:07 | obones | Note Added: 0015736 | |
2009-06-30 14:07 | obones | Status | new => feedback |
2009-06-30 19:02 | WayneSherman | Note Added: 0015737 | |
2009-06-30 19:16 | WayneSherman | Note Added: 0015738 | |
2009-09-23 23:50 | jfudickar | Note Added: 0016178 | |
2009-10-19 23:54 | jfudickar | Note Added: 0016789 | |
2009-10-19 23:54 | jfudickar | Status | feedback => resolved |
2009-10-19 23:54 | jfudickar | Resolution | open => fixed |
2009-10-19 23:54 | jfudickar | Assigned To | => jfudickar |