U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » arabic in tray icon ballon
arabic in tray icon ballon [message #18636] Mon, 13 October 2008 18:47 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member
hello

why when i show some thing in arabic in pop up ballon from tray icon it appears in strange symbolys
Re: arabic in tray icon ballon [message #18910 is a reply to message #18636] Fri, 31 October 2008 14:50 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Please try this patch (it worked for cs-cz :):

void TrayIcon::Notify(dword msg)
{
	if(visible) {
		nid.flags = NIF_ICON|NIF_MESSAGE|NIF_TIP;
		if(nid.icon)
			DestroyIcon(nid.icon);
		nid.icon = IconWin32(icon);
		String stip = ToSystemCharset(tip);
		int len = min(stip.GetLength(), 60);
		memcpy(nid.tip, stip, len);
		nid.tip[len] = 0;
		VERIFY(Shell_NotifyIcon(msg, (NOTIFYICONDATA *)&nid));
    }
}

void TrayIcon::Message(int type, const char *title, const char *text, int timeout)
{
	if(!IsWin2K())
	    return;
	nid.flags = 0x10;
	*nid.info = *nid.title = 0;
	if(text) {
		String h = ToSystemCharset(text);
		memcpy(nid.info, h, min(h.GetLength(), 255) + 1);
		nid.info[255] = 0;
	}
	if(title) {
		String h = ToSystemCharset(title);
		memcpy(nid.title, h, min(h.GetLength(), 63) + 1);
		nid.title[63] = 0;
	}
	nid.infoflags = type;
	nid.timeout = minmax(timeout, 10, 30) * 1000;
	Shell_NotifyIcon(NIM_MODIFY, (NOTIFYICONDATA *)&nid);
}


(it is on svn too).

Mirek
Previous Topic: viewing output of php script in diff languages
Next Topic: Chinese language support problem
Goto Forum:
  


Current Time: Fri May 15 04:21:22 GMT+2 2026

Total time taken to generate the page: 0.00910 seconds