Quote: |
2. The images are embedded into the exe and I think it should be better to rip them directly from shell32.dll. I have no idea how to do this yet, or if the indexes of a given icon in the dll are constant across OS versions. |
Quote: |
Can you send me the file zipped? (you can delete the content, I just have problems creating CJK filenames |
mr_ped wrote on Mon, 24 March 2008 14:17 |
I feel like the Open/Cancel in facelifted version is smaller (I'm too lazy to measure it, that's why I just "feel"). Any good idea how make them bigger (more important)? |
Quote: |
The original version had IMO more appeal in it, and I think GTK has even more emphasize on such important buttons? |
Quote: |
AFAIK, they are fixed. You can use Image Win32DllIcon(const char *dll, int ii, bool large); to retrieve them. |
Quote: |
The text was: 皆の日本語. |
cbpporter wrote on Mon, 24 March 2008 09:07 |
Depends what you expect U++ is BSD license, means you can do whatever you want. Accepting patch into the "main tree" is completely different issue |
void MyApp::Paint(Draw& w) { w.DrawRect(GetSize(), SWhite); String txt = "皆の日本語"; Size sz = GetTextSize(txt, Arial(30)); w.DrawRect(100, 100, sz.cx, sz.cy, LtGray()); w.DrawText(100, 100, txt, Arial(30)); } GUI_APP_MAIN { SetDefaultCharset(CHARSET_UTF8); MyApp().Run(); }
void MyApp::Paint(Draw& w) { w.DrawRect(GetSize(), SWhite); WString txt = "皆の日本語"; Size sz = GetTextSize(txt, StdFont(30)); w.DrawRect(100, 100, sz.cx, sz.cy, LtGray()); w.DrawText(100, 100, txt, StdFont(30)); sz = GetTextSize(txt, Arial(30)); w.DrawRect(100, 200, sz.cx, sz.cy, LtGray()); w.DrawText(100, 200, txt, Arial(30)); }
void MyApp::Paint(Draw& w) { w.DrawRect(GetSize(), SWhite); WString txt = "皆の日本語"; Font fnt[4] = { StdFont(30), Arial(30), Roman(30), Courier(30) }; for(int i = 0; i < 4; i++) { Size sz = GetTextSize(txt, fnt[i]); w.DrawRect(10, 100 + 50 * i, sz.cx, sz.cy, LtGray()); w.DrawText(10, 100 + 50 * i, txt, fnt[i]); } }
void MyApp::Paint(Draw& w) { w.DrawRect(GetSize(), SWhite); WString txt = "?????"; for(int q = 0; q < 2; q++) { Font fnt[4] = { StdFont(30), Arial(30), Roman(30), Courier(30) }; for(int i = 0; i < 4; i++) { Size sz = GetTextSize(txt, fnt[i]); w.DrawRect(10 + q * 250, 100 + 50 * i, sz.cx, sz.cy, LtGray()); w.DrawText(10 + q * 250, 100 + 50 * i, txt, fnt[i]); } txt = "ÈŠÌŠÈìšèìšè"; } }
Quote: |
I know that under X11, when dealing with characters not available for a font, they are sometimes pulled from a different font (depends on windowmanager). |
Quote: |
PS: How did you enter the CJK characters in that literal? Does that even compile? |
Quote: |
Does it work under Linux too? |
Quote: |
PS: I'll ask again: how do you get the real name of the StdFont()? |