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 » U++ community news and announcements » Upp 2007.1beta released
Upp 2007.1beta released [message #7716] Tue, 16 January 2007 23:19 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

This is a first beta of upcoming a new major release. Please test and report bugs.
Changes since 701-dev2:

* Slider was removed ( http://www.ultimatepp.org/forum/index.php?t=msg&th=1940& amp;start=0&
+ MemoryProfile, MemoryProfileInfo ( http://www.ultimatepp.org/forum/index.php?t=msg&th=1949& amp;start=0&)
- Fixed keyboard definition problem in X11
+ Appearance of disabled images improved
+ No blitz package option
- several gridctrl copy/paste fixes and enhancements
- fixed problems with compiling examples/references related to gcc and linux


Re: Upp 2007.1beta released [message #7725 is a reply to message #7716] Wed, 17 January 2007 11:01 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
TheIDE builds fine on WinXP MingW 4.1.1.
Can you take care to generate an up to date Makefile for building theIDE 2007.1 release?
This is important for building on *nix machines (otherwise the patches grow bigger).

Thanks,
Matthias

[Updated on: Wed, 17 January 2007 11:07]

Report message to a moderator

Re: Upp 2007.1beta released [message #7726 is a reply to message #7725] Wed, 17 January 2007 11:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
masu wrote on Wed, 17 January 2007 05:01


Can you take care to generate an up to date Makefile for building theIDE 2007.1 release?



Ops:)

Mirek
Re: Upp 2007.1beta released [message #7732 is a reply to message #7726] Thu, 18 January 2007 01:55 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
remind before 2007.1
Font chooser is still don't know CJK font name.
thanks!
Re: Upp 2007.1beta released [message #7733 is a reply to message #7732] Thu, 18 January 2007 04:59 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Ulti wrote on Wed, 17 January 2007 19:55

remind before 2007.1
Font chooser is still don't know CJK font name.
thanks!


Last time I tried, I was not able to get CJK font names displayed in my nonU++ Windows apps.

Are you ready for "remote" debugging session? Smile (I mean, ready to co-debug the issue)?

Mirek
icon4.gif  Re: Upp 2007.1beta released [message #7734 is a reply to message #7716] Thu, 18 January 2007 06:10 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
I'm getting a strange looking scrollbar on Win2000 with an SqlArray created with NoAutoHideSb(). See an attachment.

Looks like a problem to me.



Regards,
Novo
Re: Upp 2007.1beta released [message #7735 is a reply to message #7734] Thu, 18 January 2007 07:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
Novo wrote on Thu, 18 January 2007 00:10

I'm getting a strange looking scrollbar on Win2000 with an SqlArray created with NoAutoHideSb(). See an attachment.

Looks like a problem to me.




Please check this fix:

CtrlLib/ScrollBar.cpp 133:

		if(IsHorz()) {
			ChPaint(w, style->arrowsize, 0, sz.cx / 2, sz.cy, l[0][CTRL_DISABLED]);
			ChPaint(w, style->arrowsize + sz.cx / 2, 0, sz.cx - sz.cx / 2, sz.cy, l[1][CTRL_DISABLED]);
		}
		else {
			ChPaint(w, 0, style->arrowsize, sz.cx, sz.cy / 2, l[0][CTRL_DISABLED]);
			ChPaint(w, 0, style->arrowsize + sz.cy / 2, sz.cx, sz.cy - sz.cy / 2, l[1][CTRL_DISABLED]);
		}


Mirek
Re: Upp 2007.1beta released [message #7737 is a reply to message #7733] Thu, 18 January 2007 07:27 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
Yes,if I can help.can you teach me how to debug? Razz
Re: Upp 2007.1beta released [message #7740 is a reply to message #7737] Thu, 18 January 2007 11:18 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
Ulti wrote on Thu, 18 January 2007 15:27

Yes,if I can help.can you teach me how to debug? Razz

About CJK font.
I try to enumerate font from VS.NET 2003.
The lfFaceName gave the same result compared to Ultimate++
the result memory value are 0x82,0x6C,0x82,0x72,0x20,0x96, etc for Ms PMincho, unfortunately Ultimate++ cannot render this value.

For VS.NET 2003, it also cannot render this value unless we set the character set option to "Use Unicode Character Set".

So may be this give some clue.


Re: Upp 2007.1beta released [message #7744 is a reply to message #7740] Thu, 18 January 2007 17:17 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
At Util.cpp, function FromSystemCharset
Please replace the return line with this code.
return ToUtf8(WString(b));//WString(b).ToString();


I also add code to Display sample
SetDefaultCharset(CHARSET_UTF8);


This make Display sample show the japanese font names,
Re: Upp 2007.1beta released [message #7745 is a reply to message #7744] Thu, 18 January 2007 18:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
mobilehunter wrote on Thu, 18 January 2007 11:17

At Util.cpp, function FromSystemCharset
Please replace the return line with this code.
return ToUtf8(WString(b));//WString(b).ToString();


I also add code to Display sample
SetDefaultCharset(CHARSET_UTF8);


This make Display sample show the japanese font names,


Hm, looks like you found the cause... Stupid me.

Anyway, I think

SetDefaultCharset(CHARSET_UTF8);


is enough to make it work (it makes WString(b).ToString() and equivalent of ToUtf8(WString(b)) - please check!).

BTW, maybe it is the time to fix one mistake I have done - "default" default charset should rather be UTF-8 than win-1252, right?

Any idea what that can break?

Mirek
Re: Upp 2007.1beta released [message #7750 is a reply to message #7745] Fri, 19 January 2007 01:49 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
For example i set the default charset for TheIDE is UTF-8.
Then i do some code editing, and put same japanese glyph.

What character code will TheIDE receive from the system, is it in Shift-JIS?
Because i think, when we do EnumFont, the AddFace will receive Shift-JIS code.

What kind of process that TheIDE do to show it back to user at editor box?
Which code that do translation from user keystroke to displaying it to editor box?

Thanks

Re: Upp 2007.1beta released [message #7751 is a reply to message #7735] Fri, 19 January 2007 02:24 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
luzr wrote on Thu, 18 January 2007 01:02

Novo wrote on Thu, 18 January 2007 00:10

I'm getting a strange looking scrollbar on Win2000 with an SqlArray created with NoAutoHideSb(). See an attachment.

Looks like a problem to me.




Please check this fix:

CtrlLib/ScrollBar.cpp 133:


Mirek



Your fix solved the problem.

Thanks!


Regards,
Novo
Re: Upp 2007.1beta released [message #7756 is a reply to message #7750] Fri, 19 January 2007 14:53 Go to previous message
mirek is currently offline  mirek
Messages: 13974
Registered: November 2005
Ultimate Member
mobilehunter wrote on Thu, 18 January 2007 19:49

For example i set the default charset for TheIDE is UTF-8.
Then i do some code editing, and put same japanese glyph.

What character code will TheIDE receive from the system, is it in Shift-JIS?
Because i think, when we do EnumFont, the AddFace will receive Shift-JIS code.



String FromSystemCharset(const String& src)
{
	WStringBuffer b(src.GetLength());
	int q = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, ~src, src.GetLength(), (WCHAR*)~b, src.GetLength());
	if(q <= 0)
		return src;
	b.SetCount(q);
	return WString(b).ToString();
}


So we are using Win32 API function to translate system specific text (which is most likely in Shift-JIS, but we do not exactly have to care) to UNICODE and then to String using default encoding. Unfortunately, as default default encoding is win1252, unicode characters were lost.

Quote:


What kind of process that TheIDE do to show it back to user at editor box?



Before being displayed by Win32 GDI, inverse process is used to convert String to UNICODE.

Quote:


Which code that do translation from user keystroke to displaying it to editor box?



If Win32 supports unicode (Win98 does not!), windows are create using CreateWindowW API function and then WM_CHAR message come with UNICODE characters.

BTW, can you please test that my theory about no need of altering U++ library and just setting default charset to UTF-8 is correct?

Mirek
Previous Topic: Upp 612-dev3 released
Next Topic: Upp 701-dev1 released
Goto Forum:
  


Current Time: Tue Mar 19 04:33:08 CET 2024

Total time taken to generate the page: 0.01435 seconds