 |
|
|
 |
|
 |
Really great. I want to see more...
Special Greetings at the company
|
|
|
|
 |
|
 |
Hello,
I'm Yail, Kim.
I try to compile your source(formula editor)...
Your source seems so good.(I think very excellent source)..
I do not compile this source.
So, some characters are compile error..~..
(My computer is Windows XP (Korean...), VC++ 6.0(SP 6))
-----------(nodeentities.cpp, line : 701)
m_straShortCuts.Add("?); //<-- Compile Error... may be "<="...
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".LE."));
these characters are 98 times....
(these characters are so many...So~
Please this source re-compress, and then please send to me..
Any one~ please....
)
I download the source at this site(www.codeproject.com).
I unzip that source using winzip.
Why???
Unknown character??? ("Symbol")
Please, can you send the source package to me by e-mail?
My E-mail is yails@citicomm.co.kr
Please~
Best regards...
=============================
Kim Yail / Engineer
Mobile : +82+10-2273-6900
E-mail: yails@citicomm.co.kr
=============================
|
|
|
|
 |
|
 |
modify the file in this way.
CEquationNode::CEquationNode()
{
char acs; //////////111111111
m_strNodeType=NT_EQUATION;
m_straShortCuts.SetSize(0,1);
m_straFontNames.SetSize(0,1);
m_straShortCuts.Add("=");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xa3); /////////////111111 and so on !!!!
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".LE."));
m_straShortCuts.Add(acs=0xb3);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".GE."));
m_straShortCuts.Add("<");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".LT."));
m_straShortCuts.Add(">");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".GT."));
m_straShortCuts.Add(acs=0xb9);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T(".NE."));
m_straShortCuts.Add(acs=0xba);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xbb);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add("@");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xc7);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xc8);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xc9);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xca);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xcb);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xcc);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xcd);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xce);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add(acs=0xcf);
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add("'");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add("$");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_straShortCuts.Add("\"");
m_straFontNames.Add("Symbol");
m_straKeyWords[LT_FORTRAN].Add(_T("="));
m_strShortCut="";
m_strName="equation";
m_nType=0;
m_nAssociativityLevel=20;
}
G-RdOX-Gen.
email longes@56.com
|
|
|
|
 |
|
|
 |
|
 |
It's a great work. I am developing a expression parser for this control and it can translate the formular expression(LaTex-like) to this great formula editor.
For example, f(x)=x^2+\frac{1,x+\sigma}
Another more complex example, following is the formula expression:
s(x)=a\link x^2+b \link x+30 \n
f(x)=x^2+\beta+\frac{x,1+\sqrt{x+\frac{1,3+x}}} \n
g(x)=80.22\unit{mm} \n
f(x)=\int_0^100{(2\cdot x^2+3\cdot x+10),x} \n
g(x)=\sum{i=1,N,(x_i+sin(x+\pi/2))}+100 \n
W_0=\frac{\gamma,2}\link\brac{2,(\cot{\omega_2}+
\tan{\alpha_2})\link H^2 +(\tan{\alpha_1}-\tan{\alpha_2})\link H^{2}_{1}} \n
x=3\arrow{6}\brac{15,\bin{w=4,m=5}}\cdots{50}(8.29)
more detail on http://www.ucosoft.com/archives/29.html
----
You have nothing to lose, but everything to gain.
Welcome to www.ucosoft.com
|
|
|
|
 |
|
 |
That's great article. Specially for someones like me whose deal with mathematics in their applications.
Keyvan Nayyeri
Website: www.keyvannayyeri.com
Online community: www.nayyeri.net
|
|
|
|
 |
|
 |
Does anybody knows how to prevent the in place edit from displaying the first char of a typed text in uppercase?
Bruno Norberto
|
|
|
|
 |
|
 |
Hi Bruno,
i found the problem. The control doesn't handle properly char codes in CFormulaCtrl::OnKeyDown function.
The last "if" sentence of that function is:
if(pNode->GetEditMode() & NE_ALLOWEDIT)
{
pNode->SetEditMode(pNode->GetEditMode() | NE_INEDITMODE);
DWORD dwStyle = ES_CENTER;
CRect rectEdit=TransformRect(pNode->m_NodeRect);
m_pEditWnd = new CFormulaInPlaceEdit(this, rectEdit,
dwStyle,
IDC_INPLACE_CONTROL,
pNode,
pNode->GetShortCut(),
nChar2);
}
and should be
if(pNode->GetEditMode() & NE_ALLOWEDIT)
{
pNode->SetEditMode(pNode->GetEditMode() | NE_INEDITMODE);
DWORD dwStyle = ES_CENTER;
CRect rectEdit=TransformRect(pNode->m_NodeRect);
BYTE keyState[256];
memset(keyState, 0, 256);
::GetKeyboardState((BYTE*)keyState);
WORD nChar2 = 0;
if(::ToAscii(nChar, 0, (BYTE*)keyState, &nChar2, 0) == 1)
{
m_pEditWnd = new CFormulaInPlaceEdit(
this,
rectEdit,
dwStyle,
IDC_INPLACE_CONTROL,
pNode,
pNode->GetShortCut(),
nChar2);
}
}
This works for me.
Cheers,
Ramón Pardo
|
|
|
|
 |
|
 |
I just wish that the output data wasn't dependent on CObject. I need to develop this same control, and a Mac equivalent, and exchange data between the two.
|
|
|
|
 |
|
 |
How could I write a CAndNode and a COrNode for boolean expressions like: ( A > B ) && ( C == D ) ? Did anybody already write these?
Bruno Norberto
|
|
|
|
 |
|
 |
Nevermind... i figured it out
Bruno Norberto
|
|
|
|
 |
|
 |
it's a fain working prog.I am very interested in developing a similar project but in other domain than math,may you send me by email some other documentation's about de prog, like some uml design's or explanation about de subalgorithm's.Thanck you. i wait for your reply at Amadeo_BEI@personal.ro. thanck's again!
|
|
|
|
 |
|
 |
I want to get those documents ,please send me a mail too. Thanks a lot !
www.cherishSoft.com
Thanks!
|
|
|
|
 |
|
 |
I have never seen anything like this before. Excellent piece of work!
|
|
|
|
 |
|
 |
I complie the program, but it has some errors.
Example:
m_straShortCuts.Add("?);
and
m_strShortCut="?;
and
m_straShortCuts.Add("鬃?)
and
m_straShortCuts.Add("蝌?)
and
m_straShortCuts.Add("|?);
other is similar.
What are these errors meaning , how to solve? Please give me a help ,thanks at first.
cherish William
|
|
|
|
 |
|
 |
No person tell me why ?
The symbol means what??
Thanks a lot!!
cherish William
|
|
|
|
 |
|
 |
I meet the same thing, can not know how to solve it
|
|
|
|
 |
|
 |
If someone can compile it, please tell us , thanks a lot!!
|
|
|
|
 |
|
 |
The formula-editor is not tested with unicode. The constructors of the nodeentities use some characters, that are dircetly copied from the symbol-charset (to supply for example special kind of braces). I think these characters are the problem.
Please send me the output of your compiler including the errors.
Maybe I can find a solution...
tbw
|
|
|
|
 |
|
 |
These errors,can you fix it? thank you!
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(350) : error C2146: syntax error : missing ';' before identifier 'm_strName'
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(424) : error C2001: newline in constant
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(425) : error C2146: syntax error : missing ';' before identifier 'm_strName'
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(589) : error C2001: newline in constant
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(590) : error C2146: syntax error : missing ')' before identifier 'm_straFontNames'
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(599) : error C2001: newline in constant
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(600) : error C2146: syntax error : missing ')' before identifier 'm_straFontNames'
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(701) : error C2001: newline in constant
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(702) : error C2146: syntax error : missing ')' before identifier 'm_straFontNames'
\formulactrl_src\projekte\FormulaDlg\nodeentities.cpp(705) : error C2001: newline in constant
|
|
|
|
 |
|
 |
This probably has to do with the namespace for your section of code not being used properly. Make sure you include the header file that defines the namespace of the code that you are about to call, and then write the line "using namespace nnnn;". The 3 things must be in this particular order.
For example:
#include "ou_thread.h"
using namespace openutils;
// my code that uses the namespaced classes defined in the header file
pp
|
|
|
|
 |
|
 |
Can you re-compress the package?
Please~
|
|
|
|
 |
|
 |
The control really is impressive - I am looking forward to letting a friend of mine play around with it.
|
|
|
|
 |
|
 |
Hello,
Your control looks amazing. However, I tried to build it with .NET and encountered the following errors:
Compiling...
ColourPopup.cpp
c:\Alex\CodeProject\FormulaCtrl\projekte\FormulaDlg\ColourPopup.cpp(230) : error C2440: 'static_cast' : cannot convert from 'void (__thiscall CColourPopup::* )(BOOL,HTASK)' to 'void (__thiscall CWnd::* )(BOOL,DWORD)'
None of the functions with this name in scope match the target type
c:\Alex\CodeProject\FormulaCtrl\projekte\FormulaDlg\ColourPopup.cpp(908) : error C2664: 'CWnd::OnActivateApp' : cannot convert parameter 2 from 'HTASK' to 'DWORD'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
I reckon you should update your ColourPopup control.
Keep up the good work!
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
 |