Home » Community » Newbie corner » Clipped text in theIDE
Re: Clipped text in theIDE [message #25443 is a reply to message #25440] |
Wed, 24 February 2010 08:33 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
nlneilson wrote on Tue, 23 February 2010 17:44 | My delay, sorry.
I was not sure where to put DDUMP(Draw::GetStdFontCy()); so I tried it under "app().Run();" and the last line of the
void Open() and app()
{code]
* C:\upp\out\MSC9.Debug.Debug_full.Gui\TextProblem.exe 23.02.2010 14:31:06, user: Neil
Draw::GetStdFontCy() = 0
|
OK, this is our problem.... It should have been something like 16.
Quote: |
edit: Removing the DDUMP from Open() and app() the red line is still through Open()void
I don't know which clues are relevant.
|
Do not worry about red line, it should be there (marks virtual function).
Also, those DDUMPs do not alter the behaviour of program, this are just debugging LOGs.
OK, lets continue our remote debugging process, in Draw/FontWin32.cpp:
void GetStdFontSys(String& name, int& height)
{
#ifdef PLATFORM_WINCE
name = "Arial";
height = 10;
#else
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(ncm);
bool b = ::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0);
name = FromSystemCharset(ncm.lfMenuFont.lfFaceName);
height = abs((int)ncm.lfMenuFont.lfHeight);
DDUMP(b);
DDUMP(name);
DDUMP(height);
#endif
}
Hm, now googling the issue, there seems to be a hint so that you can try this patch:
void GetStdFontSys(String& name, int& height)
{
#ifdef PLATFORM_WINCE
name = "Arial";
height = 10;
#else
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(ncm);
if(!::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0))
::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(ncm) - sizeof(int), &ncm, 0);
name = FromSystemCharset(ncm.lfMenuFont.lfFaceName);
height = abs((int)ncm.lfMenuFont.lfHeight);
#endif
}
Mirek
[Updated on: Wed, 24 February 2010 08:33] Report message to a moderator
|
|
|
|
|
Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:05
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:08
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 08:11
|
|
|
Re: Clipped text in theIDE
By: mirek on Mon, 15 February 2010 11:59
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 13:44
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: fudadmin on Mon, 15 February 2010 22:50
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Mon, 22 February 2010 09:57
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Tue, 23 February 2010 10:57
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Tue, 23 February 2010 15:46
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 08:33
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 11:40
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 11:51
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 20:58
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Wed, 24 February 2010 23:09
|
|
|
Re: Clipped text in theIDE
|
|
|
Re: Clipped text in theIDE
By: mirek on Thu, 25 February 2010 08:08
|
|
|
Re: Clipped text in theIDE
|
Goto Forum:
Current Time: Thu May 09 22:24:43 CEST 2024
Total time taken to generate the page: 0.02681 seconds
|