Home » Community » U++ community news and announcements » Upp 2007.1beta released
|
Re: Upp 2007.1beta released [message #7725 is a reply to message #7716] |
Wed, 17 January 2007 11:01   |
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 #7735 is a reply to message #7734] |
Thu, 18 January 2007 07:02   |
 |
mirek
Messages: 14257 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 #7740 is a reply to message #7737] |
Thu, 18 January 2007 11:18   |
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?
|
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 #7751 is a reply to message #7735] |
Fri, 19 January 2007 02:24   |
Novo
Messages: 1430 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  |
 |
mirek
Messages: 14257 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
|
|
|
Goto Forum:
Current Time: Mon May 12 08:03:17 CEST 2025
Total time taken to generate the page: 0.02882 seconds
|