User (Legacy) Posted February 25, 2003 Report Share Posted February 25, 2003 In ChartFX when the chart area is resized which API event can I use to resize the markers in an XY plot. I also want to ensure that the aspect ratio is locked, any ideas? Andy Link to comment Share on other sites More sharing options...
Software FX Posted February 26, 2003 Report Share Posted February 26, 2003 You can prevent resizing by doing: ChartFX1.Style = ChartFX1.Style And Not CS_RESIZEABLE No specific event is fired after resize, just the MouseUp event. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 26, 2003 Author Report Share Posted February 26, 2003 I'm trying to control the marker size in an XY plot because ChartFX does not scale it when the window is resized or printed (What You See is NOT What You Get). Calls like THIS.Axis(AXIS_Y).SetScrollView (THIS.Axis(AXIS_Y).Min, THIS.Axis(AXIS_Y).Max) followed by lnXpix= THIS.Axis(AXIS_X).PixPerUnit do not return the new value when the (VFP) code runs but work fine when stepped in the debugger. I guess ChartFX is running asynchronously from VFP.. So how can I ensure property values I read back are up to date following method calls? Andy Link to comment Share on other sites More sharing options...
Software FX Posted February 27, 2003 Report Share Posted February 27, 2003 Chart FX is not running asynchronously, but the calculation of PixPerUnit occurs later when the chart is about to draw for performance reasons (the current size is not necessarily the final size) Property values can be read back immediately if they are set, in your case you are not setting PixPerUnit you are calling another method (SetScrollView) that affects PixPerUnit at a LATER time. If you want these calculations to take place immediately, you can call UpdateSizeNow. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 2, 2003 Author Report Share Posted March 2, 2003 Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.