BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 .NET example doesn't support alt+numpad
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


21 Posts

Posted - 03/18/2004 :  1:14:50 PM  Show Profile  Reply with Quote
To repeat the problem, be sure NumLock is on. In a .NET demo C++ file, hold down the Alt key and press 9, 7 on the numeric keypad. In most text editors and edit boxes the character 'a' will be entered. But in the .NET example '?' will be entered. Similarly Alt + 0176 enters '?' instead of the degree character.

This seems to happen in any view of an application using CBCGPFrameWnd. I think it is related to the call to ::ToAsciiEx in CBCGPToolBar::TranslateChar (called from CBCGPMDIFrameWnd::PreTranslateMessage).

I know it seems like a small issue but does anyone have any ideas for a workaround?


5 Posts

Posted - 09/05/2004 :  10:54:50 PM  Show Profile  Visit kevincao's Homepage  Reply with Quote

This bug prevents international key inputs.
ALT 0123 -> {
Definitly isolated to the BCGLibrary's base FrameWnd.
Can someone please take a look at this issue and how it can be fixed.?


Go to Top of Page


21 Posts

Posted - 09/07/2004 :  5:40:58 PM  Show Profile  Reply with Quote
I finally just commented out the first part of CBCGPToolBar::TranslateChar to get Alt + NumPad working. It's not the greatest solution but it doesn't seem to cause any problems...

BOOL CBCGPToolBar::TranslateChar (UINT nChar)
	//// ----------------------------
	//// Ensure the key is printable:
	//// ----------------------------
	//WORD wChar = 0;
	//BYTE lpKeyState [256];
	//::GetKeyboardState (lpKeyState);

	//int nRes = ::ToAsciiEx (nChar,
	//			MapVirtualKey (nChar, 0),
	//			lpKeyState,
	//			&wChar,
	//			1,
	//			::GetKeyboardLayout (AfxGetThread()->m_nThreadID));

	//BOOL bKeyIsPrintable = nRes > 0;

	//if (!bKeyIsPrintable)
	//	return FALSE;
Go to Top of Page


3662 Posts

Posted - 09/14/2004 :  03:57:25 AM  Show Profile  Visit Support's Homepage  Reply with Quote
This bug will be fixed in the next library release (7.0, coming soon)

Best regards,

BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2017 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000