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.
Subject |
Author |
Date |
|
Offer Har
|
Jan 21, 2009 - 12:04 PM
|
Dear Support, If you insert into a number cell, for example, 5 and the the - sign (that is 5- ) the cell somehow swaps the 5 & - into -5. I would like to prevent the user from inserting the - sign after a number, only before a number. I tried to set m_nNegativeOrder to 1, I added also virtual UINT OnQueryNegativeOrder() const { return 1; } , but still the - after the number is there. Please help. Thanks, Ron.
|
|
Technical Support
|
Jan 23, 2009 - 4:02 AM
|
You should override the CExtGridCellNumberBase::OnFormatCellText() virtual method. Your method should invoke the parent class method and then remove unneeded characters on the right using the strCopy.TrimRight( _T(" \t-") ); code.
|
|