You need to find "binary representation" (because, after all, you will need to store such object in QTF...). Then you provide a class that "draws" such binary representation.
I have tried to compile TDraw and the best that I have go is this error:
error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
The more I touch the more errors I get.
To put void AppMain() or GUI_APP_MAIN is just the same.
These files use NAMESPACE_UPP instead of using namespace Upp.
I have tried to compile TDraw and the best that I have go is this error:
error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
The more I touch the more errors I get.
To put void AppMain() or GUI_APP_MAIN is just the same.
These files use NAMESPACE_UPP instead of using namespace Upp.
Does it sound anything to you?
Best regards
Koldo
TDraw is not the main package. It is Tom's Draw extension library.
If TDraw is not the main package, I do not know which is the right one.
If you think that TDraw is obsolete or outside actual Upp standards I can begin something based in QtfDrawing sample, so creating DrawingDraw, inserting it into a QtfRichObject and that in a qtf String.
It parses the String passed and builds the equation Drawing object considering upper and lower greek alphabet and easy subscripts and superscripts.
I think that now is not enough big to do a new enter in Bazaar for it. If somebody is interested in it I can include the code.
Now I use it to insert equations in Qtf through QtfRichObject and CreateDrawingObject. If somebody thinks about a better function interface proposals are accepted.
mdelfede Messages: 1308 Registered: September 2007
Ultimate Contributor
Hi Koldo
I missed that one.... I think it would be a very useful addon to QTF and to UWord !
What about embedding an equation editor in word control ? maybe just an aditstring with the equation preview in real time ?
mdelfede Messages: 1308 Registered: September 2007
Ultimate Contributor
koldo wrote on Tue, 24 August 2010 15:54
Hello Massimo
Now QtfEquation only renders equations (and I have to polish it a little bit ).
An equation editor is something completely different...
Hi Koldo,
I usually hated M$ equation editor, he version I used were very fancy to look but quite uncomfortable to use.
I think that something like your is better, it's quite simple to enter en equation as a string and looking its correctness in real time in a control.... IMHO a better way to edit equations.
Now QtfEquation only renders equations (and I have to polish it a little bit ).
An equation editor is something completely different...
Hi Koldo,
I usually hated M$ equation editor, he version I used were very fancy to look but quite uncomfortable to use.
I think that something like your is better, it's quite simple to enter en equation as a string and looking its correctness in real time in a control.... IMHO a better way to edit equations.
Max
Hello Massimo
Your focus is very easy. Just subclassing RichObjectType and that is all.
See sample Reference/RichTextObject. You will like it...
mdelfede Messages: 1308 Registered: September 2007
Ultimate Contributor
Thank you Koldo
I'll test it on these days. Btw, I think if it works as expected I'll add to my app... Is a structural analysis app, with an UWord module too to be able to handle external stuffs, and an equation editor there would be great.