Jump to content
Software FX Community

How to make chart in portrait orientation?


Recommended Posts

I tried to do this, but the CChartFX object does not have a member TypeMask,

or a method SetTypeMask() (the usual C++ equivelant of the VB you have

suggested).

Anyway, I would really like to specify the orientation of the chart in the

properties at design time otherwise it'll make the dialog design very tricky

(I need a tall narrow chart in a tall narrow dialog). Is this possible?

Dave

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:CN6ueCOqBHA.1412@webserver1.softwarefx.com...

> Only certain Chart Types support this setting, you can do:

>

> Chart1.TypeMask = Chart1.TypeMask Or CT_HORZ

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites

I'm using ChartFX3.0 with VC++6.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:Otx3cHaqBHA.2636@webserver1.softwarefx.com...

> TypeMask should be there, I just imported a chart from Class Wizard and

> using #import and in both cases I can see (and use) TypeMask.

>

> What version of Chart FX are you using ?

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites

You're right, I've just tried it in a different project that uses ChartFX98

and it works. Unfortunately my project is a large legacy C++ project with

over 30 ChartFX 3.0 charts already in it.

I would be interested in your advice regarding migration to ChartFX98, but

as it uses completely different ActiveX components and, I understand, a

significantly different API, I suspect it would be a huge undertaking to

convert the whole project. The new chart is a single curve with well defined

axes etc., but it does have to be in the 90deg-rotated orientation, so I

think it will be simpler to draw it "by hand" by painting straight into a

dialog box.

I suppose we could put a ChartFX98 chart into the existing project but leave

all the other charts as 3.0 charts - the two versions seem to co-exist quite

happily. If you have any comments on that idea, or any other suggestions I'd

be very glad to hear them.

Many thanks for your help

Dave

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:EXOiKvbqBHA.1412@webserver1.softwarefx.com...

> Oh, ok, that's an older version. Only BAR charts can be horizontal there,

> use the Type property in the same way I explained (instead of TypeMask).

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites

Yes, Chart FX 3.0 and Chart FX 98 (4.0) can co-exist in the same

application.

Converting to Chart FX 5.0 is difficult only if you were using the old DLL

format instead of the ActiveX (COM) model as all the new API is Object

Oriented. To go from using Chart FX 3.0 ActiveX to Chart FX 5.0 is quite

easy.

--

FP

Software FX, Inc.

Link to post
Share on other sites

I seem to be having some success using 3 and 98 in tandem, so I'm going to

go with that for the moment - it may end up a bit of a maintenance

nightmare, but I'm a contractor so that will be the client's problem (he

he) - and he's happy with it. I didn't even know there was a ChartFX 5 - I'm

a little confused with the version numbering.

Thanks for your help

Dave

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:Hdtw15mqBHA.1412@webserver1.softwarefx.com...

> Yes, Chart FX 3.0 and Chart FX 98 (4.0) can co-exist in the same

> application.

>

> Converting to Chart FX 5.0 is difficult only if you were using the old DLL

> format instead of the ActiveX (COM) model as all the new API is Object

> Oriented. To go from using Chart FX 3.0 ActiveX to Chart FX 5.0 is quite

> easy.

>

> --

> FP

> Software FX, Inc.

>

>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...