Tag: cws_src680_qiq
User: fs      
Date: 06/05/11 04:26:59

Modified:
 /dba/dbaccess/source/ui/dlg/
  sqlmessage.cxx

Log:
 #i51143# make primary text two full lines high

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: sqlmessage.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/sqlmessage.cxx?r1=1.20.118.2&r2=1.20.118.3
Delta lines:  +6 -10
--------------------
--- sqlmessage.cxx      11 May 2006 10:39:37 -0000      1.20.118.2
+++ sqlmessage.cxx      11 May 2006 11:26:56 -0000      1.20.118.3
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: sqlmessage.cxx,v $
  *
- *  $Revision: 1.20.118.2 $
+ *  $Revision: 1.20.118.3 $
  *
- *  last change: $Author: fs $ $Date: 2006/05/11 10:39:37 $
+ *  last change: $Author: fs $ $Date: 2006/05/11 11:26:56 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -81,9 +81,8 @@
 
 #define BUTTONID_MORE  BUTTONID_RETRY + 1
 
-#define DLG_LIMIT              320     // max dialog size
-#define BTN_HEIGHT             14
-#define BTN_WIDTH              50
+#define DIALOG_WIDTH    220
+#define TEXT_POS_X      45
 #define OUTER_MARGIN    6
 
 using namespace dbtools;
@@ -343,15 +342,12 @@
             sSecondary = aError.Message;
     }
 
-#define DIALOG_WIDTH 220
-#define TEXT_POS_X   45
-
     // image
     lcl_positionInAppFont( *this, m_aInfoImage, OUTER_MARGIN, OUTER_MARGIN, 
20, 20 );
        m_aInfoImage.Show();
 
     // primary text
-    lcl_positionInAppFont( *this, m_aTitle, TEXT_POS_X, OUTER_MARGIN, 
DIALOG_WIDTH - TEXT_POS_X - 2 * OUTER_MARGIN, 20 );
+    lcl_positionInAppFont( *this, m_aTitle, TEXT_POS_X, OUTER_MARGIN, 
DIALOG_WIDTH - TEXT_POS_X - 2 * OUTER_MARGIN, 16 );
     m_aTitle.SetText( sPrimary );
        m_aTitle.Show();
 
@@ -359,7 +355,7 @@
        m_aMessage.SetStyle( m_aMessage.GetStyle() | WB_NOLABEL );
     m_aMessage.SetText( sSecondary );
 
-    lcl_positionInAppFont( *this, m_aMessage, TEXT_POS_X, OUTER_MARGIN + 20 + 
3, DIALOG_WIDTH - TEXT_POS_X - 2 * OUTER_MARGIN, 8 );
+    lcl_positionInAppFont( *this, m_aMessage, TEXT_POS_X, OUTER_MARGIN + 16 + 
3, DIALOG_WIDTH - TEXT_POS_X - 2 * OUTER_MARGIN, 8 );
     Rectangle aSecondaryRect( m_aMessage.GetPosPixel(), 
m_aMessage.GetSizePixel() );
 
     // determine which space the secondary text would occupy




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to