Hi!
This is a project that is evolving very slow, but begin to acomplish some objetives:
- derivation of equation
- Interface with an improved GridW object
- a simple coloring subclass of Richedit
The rework of solution still is very bad :biggrin: , but it's posible make some test (at least interface). And perhaps Rui could detect some miscalculation. For every variable there is 2 lines: the raw derivative and the reworked solution.
Of course will be more interesting with the code, but that will take me some time (it's a mess now).
Regards.HSE
Nothing importat, I forget the instructions:
Variables are lower case letters except "e", letters between angle brackets are constant, numbers without point are integer, with point are floating, the functions now are ln, log2, log10, sin, cos, tg, arcsin, arccos, arctg and exp.
------------------------------------------------
Updated file 10/06/2017 (build BN10A222) :
------------------------------------------------
The file include interface sources and .res file.
(Still not correctly running the cleanner 8) )
Ml or AsmC. Use makeIt.bat
Impressive, really cool :t
Btw, there is a minor glitch on the upper inner window (blue) when you resize the app main window. A white horizontal strip appears on the lower half of the equation window.
Regards, Biterider
Thanks Biterider!!
Is good to know that the problem is not only here. I think the line is related with the margins I increased, surelly the scroll in Richedit don't manage automatically that. Something to investigate!
The white ribbon occurs only occasionally here (W7-64). But there is a lot of flicker. Style is only WS_CHILD? What about ws_clip* etc?
Good point JJ!!
WS_CHILD or WS_VISIBLE or ES_MULTILINE or WS_VSCROLL or WS_BORDER or WS_TABSTOP
These styles in Richedit allow wordwrap. I remember now there was an extended topic about flickering. I will try to find it. :t
The "white" ribbon is some error using EM_SETRECTNP when scroll is activated. I don't saw in the "dark" machine but perhaps is there.
You need or WS_CLIPCHILDREN when creating the main window, and
or WS_CLIPSIBLINGS when creating the controls.
invoke SendMessage, hRichEdit, EM_SETTARGETDEVICE, 0, 0 sets word wrap on.
Thanks JJ!
WS_CHILD style was alone. :(
There are main, sub-main, sub-sub-main and control window :biggrin:.
- EquAsm32
- EquAsm <----- here intercepting WM_ERASEBKGND make a big difference
- GridW <----------- no problem here because WS_EX_TRANSPARENT
The "white" ribbon disappear if there is no bottom margin.
Updated file is in first post.
Hi Hector
This new update seems to solve the problem of the white band. I tested it on Win10. :icon14:
Biterider
Perfect, no more flicker, no white band :t
Thanks :t
Hi HSE,
Very well :t
Now you need to test it writing a lot of expressions.
Go on !
Hi! Still with interface :icon_eek: !!
Now it's posible to change colors. Modifications are stored in a ".ini" file when application exit. (Binary in updated in first post)
In making a new dialog, I found Resguard alert a leak in ColorButton . With minor modification there is no more leak, but surely need to be more evaluated.
Regards. HSE
Thanks, I'll look into it.
Biterider
Just a little better the cleaner.
There are some... insignificant... crashes :biggrin: Curiously don't happen when ObjAsm32 debug mode is activated ::)
Update in first post. Regards.
I think now it's working correctly, at least better.
But I still not finded what was wrong with the debug system.
Update in first post. Regards.
Works OK with Win10 :eusa_clap:
Biterider
Thanks Biterider!
New tests fail, and I expect Rui (and others) fund more errors. The main proceses code still are a mess, but the frame code is becoming more readable.
Regards.
LATER: Solved last problem. Updated http://masm32.com/board/index.php?topic=5725.msg61048#msg61048
The differentiation process is now configurated to find first and second derivatives, and first and second partial derivatives. It's posible to change that from options menu. Updated in first post (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048)
Quote from: HSE on December 31, 2016, 12:38:58 AM
Thanks Biterider!
New tests fail, and I expect Rui (and others) fund more errors. The main proceses code still are a mess, but the frame code is becoming more readable.
Regards.
LATER: Solved last problem. Updated http://masm32.com/board/index.php?topic=5725.msg61048#msg61048 (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048)
Hi HSE,
i will do it when i have some more time.
i will do, but now i have a lot of work to do !
See you :t
Hi!
added in the new building (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048):
- preliminary error checking.
- optional function names solution ( a lot of interface work 8) ).
Only working the first functions (the originals), and some critical errors in the cleanner still there.
Hi!
added in the new building (http://masm32.com/board/index.php?topic=5725.msg61048#msg61048):
- interface: list of functions.
Hi Hector
The new Version works perfect here. :t
Regards, Biterider
Thanks Biterider!!
With this modification most of the interface is finished, and I began to clean the code. The solution still is not good but that part will be a library until work properly (if ever :biggrin:)
- Added the option to change names functions between my originals, and Rui names (but only 8 of 40 used in The Calculator).
- Also source of interface. Use makeit.bat.
Regards. HSE