summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-11-20 11:00:48 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-11-20 11:00:48 +0000
commit57452e6a3aaa0069afe470405965f86ca90cc1ef (patch)
treeddea4a8bcb40ca63f63a099fb8532c1f6c41061f
parent936f344935c2d06bf508b6001e0bba3f389ef8d9 (diff)
downloadfpGUI-57452e6a3aaa0069afe470405965f86ca90cc1ef.tar.xz
* minor adjustment to tiGUIIni
-rw-r--r--extras/tiopf/gui/tiGUIINI.pas34
1 files changed, 20 insertions, 14 deletions
diff --git a/extras/tiopf/gui/tiGUIINI.pas b/extras/tiopf/gui/tiGUIINI.pas
index 8340b25d..4d13a989 100644
--- a/extras/tiopf/gui/tiGUIINI.pas
+++ b/extras/tiopf/gui/tiGUIINI.pas
@@ -67,20 +67,26 @@ begin
else
AForm.WindowPosition := wpScreenCenter;
end;
- // Only set the form size if a bsSizable window
- if AForm.Sizeable then
- begin
- if AHeight = -1 then
- LHeight := AForm.Height
- else
- LHeight := AHeight;
- if AWidth = -1 then
- LWidth := AForm.Width
- else
- LWidth := AWidth;
- AForm.Height := readInteger(LINISection, 'Height', LHeight);
- AForm.Width := readInteger(LINISection, 'Width', LWidth);
- end;
+
+ { 2008-11-20 graemeg: disabled Width and Height settings for now. It causes
+ major headaches, plus in most applications the forms have been designed
+ with specific sizes for best look and fit. The user can still adjust sizes
+ at runtime, they will just not be remembered. I will attend to this issue
+ at a later date. }
+ // Only set the form size if a bsSizable window
+ //if AForm.Sizeable then
+ //begin
+ //if AHeight = -1 then
+ //LHeight := AForm.Height
+ //else
+ //LHeight := AHeight;
+ //if AWidth = -1 then
+ //LWidth := AForm.Width
+ //else
+ //LWidth := AWidth;
+ //AForm.Height := readInteger(LINISection, 'Height', LHeight);
+ //AForm.Width := readInteger(LINISection, 'Width', LWidth);
+ //end;
// If the form is off screen (positioned outside all monitor screens) then
// center the form on screen.