User (Legacy) Posted January 29, 2002 Report Share Posted January 29, 2002 Can anyone tell me how to generate a chart in portrait orientation, ie. with the y-axis horizontal and the x-axis vertical. I have searched the properties, to no avail. I'm using ChartFX3.0 with VC++6. Thanks Dave Link to comment Share on other sites More sharing options...
Software FX Posted January 29, 2002 Report Share Posted January 29, 2002 Only certain Chart Types support this setting, you can do: Chart1.TypeMask = Chart1.TypeMask Or CT_HORZ -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 30, 2002 Author Report Share Posted January 30, 2002 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 comment Share on other sites More sharing options...
Software FX Posted January 30, 2002 Report Share Posted January 30, 2002 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 comment Share on other sites More sharing options...
User (Legacy) Posted January 30, 2002 Author Report Share Posted January 30, 2002 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 comment Share on other sites More sharing options...
Software FX Posted January 30, 2002 Report Share Posted January 30, 2002 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 comment Share on other sites More sharing options...
User (Legacy) Posted January 31, 2002 Author Report Share Posted January 31, 2002 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 comment Share on other sites More sharing options...
Software FX Posted January 31, 2002 Report Share Posted January 31, 2002 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 comment Share on other sites More sharing options...
User (Legacy) Posted January 31, 2002 Author Report Share Posted January 31, 2002 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 comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.