Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Using CExtGridCell*** in dialog Collapse All
Subject Author Date
Rado Manzela Jan 31, 2011 - 6:01 AM

I need to have edit box in dialog which works exactly like CExtGridCellCurrency. I think it could be done by creating dummy grid containing only one cell. But I’m worried about edit box borders to match selected theme. I doubt I’m the only one with the same problem, is there some ready class/template to do this? I know you have some undocumented templates in the code.
It could be some template which would have one class parameter - cell class and would provide method for easy initialization (creating one row/column, creating cell instance, setting styles so that edit starts immediately after click, like in normal edit box, etc.)

Technical Support Feb 1, 2011 - 9:54 AM

We cannot reproduce this. Could you provide us with a screen short of the locale settings dialog?

Rado Manzela Feb 1, 2011 - 4:02 PM

Just set language to "Slovak" (tested in Win 7, UIS 2.92, MBCS DEBUG)

Technical Support Feb 1, 2011 - 9:52 AM

The CExtEditSystemNumberCurrencyBase::m_strCurrencySymbol property contains the currency symbol and you can change it. Please note, it automatically changes when a WM_SETTINGCHANGE message is received. This means you need to handle this message and specify your preferred currency symbol.

Technical Support Jan 31, 2011 - 11:17 AM

First of all, the CExtEditSystemCurrency control may fit your requirements. This control is demonstrated on the System Number/Currency dialog page in the ProfUIS_Controls sample application.
If you choose CExtGridWnd control with singe CExtGridCellCurrency cell, then you need a template class similar to CExtED. This template class just paints the non-client area borders using the CExtEditBase::stat_DoPaintNc() API. The CExtGridWnd class does not affect to window non-client area at all.

Rado Manzela Jan 31, 2011 - 3:04 PM

I’ve seen that class, but I need to have more edit boxes with various currency symbols and I haven’t found any method for specifying currency symbol in documentation. Am I missing it?

Rado Manzela Feb 1, 2011 - 2:26 AM

NVM, I’ve cderived my class from CExtEditSystemCurrency and added method to change m_strCurrencySymbol. But there is bug, if you set some language settings in windows with comma as decimal separator, pressing the comma key will ASSERT in CExtEditSystemCurrency::LongDoubleGet() const. Can you fix it please?