Did this actually work? That details box was a pain in the ass to even get to work like it did...

Bruce

On 6/27/07, mwlinnem@users.sourceforge.net <mwlinnem@users.sourceforge.net> wrote:
Revision: 406
          http://svn.sourceforge.net/cishell/?rev=406&view=rev
Author:   mwlinnem
Date:     2007-06-27 11:55:18 -0700 (Wed, 27 Jun 2007)

Log Message:
-----------
Fixed issue with error dialog boxes where error details text area would not expand when window was enlarged.

Modified Paths:
--------------
    trunk/clients/gui/org.cishell.reference.gui.guibuilder.swt/src/org/cishell/reference/gui/guibuilder/swt/builder/AbstractDialog.java

Modified: trunk/clients/gui/org.cishell.reference.gui.guibuilder.swt/src/org/cishell/reference/gui/guibuilder/swt/builder/AbstractDialog.java
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.guibuilder.swt/src/org/cishell/reference/gui/guibuilder/swt/builder/AbstractDialog.java 2007-06-27 18:54:31 UTC (rev 405)
+++ trunk/clients/gui/org.cishell.reference.gui.guibuilder.swt/src/org/cishell/reference/gui/guibuilder/swt/builder/AbstractDialog.java 2007-06-27 18:55:18 UTC (rev 406)
@@ -264,10 +264,6 @@
         if ((description != null) && !description.equals("")) {
             desc.setText(description);
         }
-
-        GridData data = new GridData(GridData.FILL_BOTH | GridData.VERTICAL_ALIGN_CENTER);
-        data.widthHint = 300;
-        desc.setLayoutData(data);
     }

     /*
@@ -319,10 +315,14 @@
                         detailsText.setText("");
                         details.setText("Details >>");
                         data.heightHint = 0;
+                        data.grabExcessHorizontalSpace = false;
+                        data.grabExcessVerticalSpace = false;
                     } else {
-                        detailsText.setText(detailsString);
+                        detailsText.setText(detailsString);
                         details.setText("Details <<");
                         data.heightHint = DETAILS_HEIGHT;
+                        data.grabExcessHorizontalSpace = true;
+                        data.grabExcessVerticalSpace = true;
                     }

                     detailsText.setLayoutData(data);
@@ -345,12 +345,9 @@
         detailsText.setEditable(false);
         detailsText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));

-        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);
-        data.grabExcessHorizontalSpace = true;
-        data.horizontalSpan = 2;
-        data.grabExcessVerticalSpace = false;
+        GridData data = new GridData( GridData.FILL_BOTH |
+                       GridData.GRAB_VERTICAL | GridData.GRAB_HORIZONTAL);
         data.widthHint = 400;
-        data.heightHint = 0;

         detailsText.setLayoutData(data);
         detailsText.setVisible(false);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cishell-svn mailing list
Cishell-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cishell-svn



--
Bruce Herr

Senior Software Developer
Cyberinfrastructure for Network Science Center
School of Library and Information Science
Indiana University

10th Street & Jordan Avenue     Phone:  (812) 856-7034   Fax: -6166
Main Library 022                      E-mail: bh2@bh2.net
Bloomington, IN 47405, USA