The MASM Forum

Projects => ObjAsm => Topic started by: Biterider on December 29, 2021, 06:02:57 AM

Title: Combined Charts
Post by: Biterider on December 29, 2021, 06:02:57 AM
Hi
It's finally done. I merged the code paths of the Bar and XY-point charts.
This resulted in a more compact and robust code base.
I also completed support for the secondary Y axis.  :cool:

I would be happy if someone would like to test the binaries.  :biggrin:
I didn't enable exception handling to see if there were any problems.
The full source is uploaded to github.

You can interact with the diagrams in the following ways:

Biterider

Title: Re: Combined Charts
Post by: HSE on December 30, 2021, 05:31:27 AM
Hi Biterider!

Look very good :thumbsup:

Could be interesting that reset of Y1-axis use "predefined scale" instead of "automatic scale". That could be an option in all axis.

Regards, HSE.
Title: Re: Combined Charts
Post by: Biterider on December 30, 2021, 07:01:07 AM
Hi HSE
Thanks for testing!  :thumbsup:

Currently I have 2 sets of values for each scale, the auto-values, which are set from the scanning process (scan method) and the current values. Those last ones, are set at the beginning when the control is created. When the intention is to revert to these values, then we have to store them too (e.g. fInitialMin, fInitialMax).
Maybe a double click + ctrl + shift keys can trigger the resetting to those values...

Note: it would be mandatory to set these initial values or we have to check if they were set! Otherwise ugly things will happen  :sad:

Biterider
Title: Re: Combined Charts
Post by: hutch-- on December 30, 2021, 09:58:33 AM
The chartbar works really well, I could not get the arrange button to do anything but the others worked correctly and resizing that main window also scaled the child windows correctly.
Title: Re: Combined Charts
Post by: Biterider on December 30, 2021, 06:11:21 PM
Hi Hutch
Thanks for testing the application  :thup:

The menu command "Arrange icons" issues a WM_MDIICONARRANGE message to the application MDI-Client window.
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-mdiiconarrange (https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-mdiiconarrange)

You can see what it does when you have a lot of disorganized minimized child windows floating around and you hit that menu command.

Biterider
Title: Re: Combined Charts
Post by: Biterider on December 31, 2021, 03:37:02 AM
Hi HSE
I refactored the code a bit to simplify the setup work and introduced the initial setup values.
Now you can reset the scales to these very beginning values by double clicking the scale and pressing CTRL and SHIFT at the same time.

Biterider
Title: Re: Combined Charts
Post by: HSE on December 31, 2021, 04:02:43 AM
Hi Biterider!

Fantastic  :thumbsup:

HSE