View Issue Details

IDProjectCategoryView StatusLast Update
0004841JEDI VCL00 JVCL Componentspublic2009-10-19 23:54
ReporterWayneShermanAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004841: JvFormPlacement doesn't restore the size for some forms
DescriptionIf my forms BorderStyle is set to bsNone then the form size is not restored when I call JvFormStorage.RestoreFormPlacement.
Additional InformationThe 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.
TagsNo tags attached.

Activities

obones

2009-06-30 14:07

administrator   ~0015736

But what's the point to resize a window that is NOT resizable by design?
I don't see the problem here...

WayneSherman

2009-06-30 19:02

reporter   ~0015737

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.

WayneSherman

2009-06-30 19:16

reporter   ~0015738

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.

jfudickar

2009-09-23 23:50

developer   ~0016178

Hi Olivier,

for me it sounds logical, so I would tend to accept the issue.

Any further comments.

Kind regards
Jens

jfudickar

2009-10-19 23:54

developer   ~0016789

Added to the Subversion Repository

Issue History

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