#ifndef WX_PRECOMP
#include "wx/dialog.h"
#include "wx/dcclient.h"
+ #include "wx/intl.h"
#include "wx/settings.h"
+ #include "wx/stattext.h"
#endif
// ----------------------------------------------------------------------------
{
if ( *pc == _T('\n') || !*pc )
{
+#if defined(__VISAGECPP__)
+// have two versions of this in wxWindowDC tp avoid function hiding
+// since there are two of these in wxDCBase, and in turn in wxDC.
+// VA cannot resolve this so:
+ dc.GetTextExtent(curLine, &width, &height, NULL, NULL, NULL, FALSE);
+#else
dc.GetTextExtent(curLine, &width, &height);
+#endif
if ( width > widthTextMax )
widthTextMax = width;
if ( height > heightTextMax )
wxSize wxDialogBase::GetStandardButtonSize(bool hasCancel)
{
+#if 0
int wButton = 0;
GetTextExtent(_("OK"), &wButton, NULL);
int hButton = (wButton * 23) / 75;
return wxSize(wButton, hButton);
+#else
+ return wxButton::GetDefaultSize();
+#endif
}
void wxDialogBase::CreateStandardButtons(long wDialog,