Message 1 of 6
Showing LW-PLine Length as the line is drawn
Not applicable
01-11-2003
06:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a VBA program to display total PLine length as I draw
the line. i.e.
Start the PLine command, pick a starting point.
As soon as I pick a second point I want a dialog box to come up to tell me
how long the line is up to that point.
After displaying the length, pick a third point for the PLine, and display
the new total length (not the last segment length).
Keep going, etc. till endpoint of line is created.
I've found a VB function to do the total length calculation, and created the
form in VBA to display the total length.
The problem seems to be 'Focus'. How do I change focus after displaying the
dialog so the user doesn't have to click 'OK' in the dialog every time he
picks a new point?
Miles Andrews
smilesfromnowhere at hotmail dot com
the line. i.e.
Start the PLine command, pick a starting point.
As soon as I pick a second point I want a dialog box to come up to tell me
how long the line is up to that point.
After displaying the length, pick a third point for the PLine, and display
the new total length (not the last segment length).
Keep going, etc. till endpoint of line is created.
I've found a VB function to do the total length calculation, and created the
form in VBA to display the total length.
The problem seems to be 'Focus'. How do I change focus after displaying the
dialog so the user doesn't have to click 'OK' in the dialog every time he
picks a new point?
Miles Andrews
smilesfromnowhere at hotmail dot com