Perhaps I'm crazy for trying this, but I'm incorporating the Avax control into an existing Visual FoxPro 9 application. I need more control over Ruler functionality. Do you have any PEM documentation for the Ruler Controls? What specific programatic rules do I need to follow to keep the rulers in sync with the Avax control?
In the Avax control, I'm trying to display the current XY coordinates in the statusbar. The CurrentXY method correctly returns the True/False if the mouse cursor moves in and out of the control. But the method does not return the current XY coordinates. It always returns 0.0000, 0.0000. Any suggestions?
Just curious, do know of any developer using the AVAX control in Visual FoxPro?
Thanks for your help!
Page 1 of 1
CurrentXY method & Ruler Documentation
#2
Posted 19 March 2008 - 01:13 AM
Update: The problem is with Visual FoxPro which does not provide strong typing of parameters: I cannot define specific numeric types such as Single, Long, Integer.
Workaround: create an ActiveX "Wrapper" in VB that handles the incoming parameters and then converts them to the strong types before passing them to the Avax methods. I've tested this and it seems to be working fine although it's very time consuming to code for converting all of the numeric parameters in each of the Avax methods. Unless there's a better solution?
I still would like some documentation of the Ruler controls, please. I will need to wrapper-ize these controls in VB also.
Thank you!
Workaround: create an ActiveX "Wrapper" in VB that handles the incoming parameters and then converts them to the strong types before passing them to the Avax methods. I've tested this and it seems to be working fine although it's very time consuming to code for converting all of the numeric parameters in each of the Avax methods. Unless there's a better solution?
I still would like some documentation of the Ruler controls, please. I will need to wrapper-ize these controls in VB also.
Thank you!
#3
Posted 20 March 2008 - 09:59 AM
Did you see avaxcad VB6 example (c:\Program Files\Avax Vector ActiveX R1\Examples\AvaxCAD\AvaxCAD.vbp)?
In this example you can see how to use rulers.
GetAutoStep function suggests the distance between the ruler separating lines for the current zoom.
Using SetRulerDimensions you can set the distance between the ruler lines.
In this example you can see how to use rulers.
GetAutoStep function suggests the distance between the ruler separating lines for the current zoom.
Using SetRulerDimensions you can set the distance between the ruler lines.
Athanasios Gardos
Avax-Software.com
Avax-Software.com
Page 1 of 1
Sign In
Register
Help
Add Reply
MultiQuote