Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Clipped text in theIDE
Re: Clipped text in theIDE [message #25446 is a reply to message #25443] Wed, 24 February 2010 10:00 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
This is from the change with the first code
* C:\upp\out\MSC9.Debug.Debug_full.Gui\TextProblem.exe 24.02.2010 00:48:25, user: Neil

b = true
name = MS Shell Dlg
height = 11
fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
Draw::GetStdFontCy() = 0


Here is with the patch (second code change)
* C:\upp\out\MSC9.Debug.Debug_full.Gui\TextProblem.exe 24.02.2010 00:56:18, user: Neil

fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
fi.GetHeight() = 15
fi.GetFont() = <STDFONT:12 Bold>
r.Height() = 16
(r.Height() - fi.GetHeight()) / 2 = 0
Draw::GetStdFontCy() = 0



Re: Clipped text in theIDE [message #25447 is a reply to message #25446] Wed, 24 February 2010 11:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, now it is apparent.

M$ never stops, always something tricky in the queue... Smile

http://support.microsoft.com/kb/282187/en-us/

So it looks like "MS Shell Dlg" is some "pseudofont", so it is not found in the list of fonts, which results in what you see.

Going to find some remedy...
Re: Clipped text in theIDE [message #25448 is a reply to message #25447] Wed, 24 February 2010 11:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, try this patch, I believe it should solve the problem:

Draw/Font.cpp

void Font::InitStdFont()
{
	ONCELOCK {
		DrawLock __;
		List();
		AStdFont = Arial(12);
		String name;
		int    height = 0;
		GetStdFontSys(name, height);
		int q = FindFaceNameIndex(name);
		if(q <= 0)
			q = FindFaceNameIndex("Tahoma");
		if(q <= 0)
			q = FindFaceNameIndex("Microsoft Sans Serif");
		if(q <= 0)
			q = FindFaceNameIndex("MS Sans Serif");
		if(q > 0)
			AStdFont = Font(q, max(height, 1));
		SyncStdFont();
	}
}


(According to

http://msdn.microsoft.com/en-us/library/dd374112%28VS.85%29. aspx

Shell Dlg fonts are actually pretty much fixed, so we can just fetch the best one...)

Mirek

[Updated on: Wed, 24 February 2010 11:52]

Report message to a moderator

Re: Clipped text in theIDE [message #25462 is a reply to message #25448] Wed, 24 February 2010 20:54 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Works Great, that fixed the problem.

The text is OK and the pull down works.

index.php?t=getfile&id=2341&private=0
  • Attachment: ClipOK.jpg
    (Size: 10.60KB, Downloaded 394 times)
Re: Clipped text in theIDE [message #25463 is a reply to message #25462] Wed, 24 February 2010 20:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Glad to hear that.

I had to make some more changes because of X11; please check fresh version (now on svn, tomorrow nightly builds) as soon as possible..
Re: Clipped text in theIDE [message #25464 is a reply to message #25463] Wed, 24 February 2010 21:12 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
I just installed 2127.
The problem is still in theIDE.

edit: These are the two versions I have of XP

Windows XP Home Edition Service Pack 3 (build 2600) - Problem

Windows XP Media Center Edition Service Pack 3 (build 2600) - OK

[Updated on: Wed, 24 February 2010 21:21]

Report message to a moderator

Re: Clipped text in theIDE [message #25467 is a reply to message #25464] Wed, 24 February 2010 23:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
The final fix is in 2145...
Re: Clipped text in theIDE [message #25468 is a reply to message #25467] Thu, 25 February 2010 00:30 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

2147 SVN does not compile Core.cpp under Wine,

although in 2145 all compile normally, and all the above identified problems in ArrayCtrl and GridCtrl recovered.

Now everything is OK!

All the controls work just fine, and under Windows and on Wine.

Many thanks!


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Clipped text in theIDE [message #25470 is a reply to message #25468] Thu, 25 February 2010 08:08 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
sergeynikitin wrote on Wed, 24 February 2010 18:30

2147 SVN does not compile Core.cpp under Wine,



Hopefully fixed...
Re: Clipped text in theIDE [message #25543 is a reply to message #25470] Mon, 01 March 2010 04:47 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
With 2161 all text/pull down problems in theIDE and an app made with Upp have been fixed.

edit: I would have tried that earlier from the svn but that is above my abilities now.

Great Work!

Thanks

[Updated on: Fri, 05 March 2010 13:54]

Report message to a moderator

Previous Topic: fail to install, 2070, 2081, 2112
Next Topic: Questions about VectorMap
Goto Forum:
  


Current Time: Fri Apr 19 23:34:15 CEST 2024

Total time taken to generate the page: 0.03847 seconds