Tag: cws_src680_qiq User: fs Date: 06/06/01 06:12:10 Modified: /dba/dbaccess/source/ui/dlg/ sqlmessage.cxx
Log: #i51143# slight rearrangements for better look 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.5&r2=1.20.118.6 Delta lines: +8 -6 ------------------- --- sqlmessage.cxx 19 May 2006 11:44:28 -0000 1.20.118.5 +++ sqlmessage.cxx 1 Jun 2006 13:12:07 -0000 1.20.118.6 @@ -4,9 +4,9 @@ * * $RCSfile: sqlmessage.cxx,v $ * - * $Revision: 1.20.118.5 $ + * $Revision: 1.20.118.6 $ * - * last change: $Author: fs $ $Date: 2006/05/19 11:44:28 $ + * last change: $Author: fs $ $Date: 2006/06/01 13:12:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -82,8 +82,10 @@ #define BUTTONID_MORE BUTTONID_RETRY + 1 #define DIALOG_WIDTH 220 -#define TEXT_POS_X 45 #define OUTER_MARGIN 6 +#define IMAGE_SIZE 20 +#define INNER_PADDING 3 +#define TEXT_POS_X OUTER_MARGIN + IMAGE_SIZE + INNER_PADDING using namespace dbtools; using namespace com::sun::star::uno; @@ -509,7 +511,7 @@ } // image - lcl_positionInAppFont( *this, m_aInfoImage, OUTER_MARGIN, OUTER_MARGIN, 20, 20 ); + lcl_positionInAppFont( *this, m_aInfoImage, OUTER_MARGIN, OUTER_MARGIN, IMAGE_SIZE, IMAGE_SIZE ); m_aInfoImage.Show(); // primary text @@ -528,7 +530,7 @@ if ( sSecondary.Len() ) aSecondaryRect = GetTextRect( aSecondaryRect, sSecondary, TEXT_DRAW_WORDBREAK | TEXT_DRAW_MULTILINE | TEXT_DRAW_LEFT ); else - aSecondaryRect.Bottom() = aSecondaryRect.Top(); + aSecondaryRect.Bottom() = aSecondaryRect.Top() - 1; // adjust secondary control height accordingly m_aMessage.SetSizePixel( aSecondaryRect.GetSize() ); @@ -537,7 +539,7 @@ // adjust dialog size accordingly Size aBorderSize = LogicToPixel( Size( OUTER_MARGIN, OUTER_MARGIN ), MAP_APPFONT ); Size aDialogSize( LogicToPixel( Size( DIALOG_WIDTH, 30 ), MAP_APPFONT ) ); - aDialogSize.Height() = aSecondaryRect.Bottom() + aBorderSize.Height() * 2; + aDialogSize.Height() = aSecondaryRect.Bottom() + aBorderSize.Height(); SetSizePixel( aDialogSize ); SetPageSizePixel( aDialogSize ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
