how I can view the line length in cm. to the user (using map mode)
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: how I can view the line length in cm. to the user (using map mode)

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    3

    Question how I can view the line length in cm. to the user (using map mode)

    Hi

    my program allow user to draw lines and the user should know the length of the line that he draw in centimeter (.cm)

    I did use

    SetMapMode(MM_LOMETRIC) function to convert the device units into logical units

    and it works correctly but I don't know how the line length will appear to the user to let him draw in correct length

    I think to make the length appear on the mouse when the user draw but I don't know how I calculate and display it

    can you please help me with ideas to do that

    thanks a lot

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: how I can view the line length in cm. to the user (using map mode)

    Well, if you can calculate the "current" line length then you will be able to show it in some control or in some status bar pane (you could just create a new Indicator in the statu sbar for it)
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2012
    Posts
    3

    Re: how I can view the line length in cm. to the user (using map mode)

    Thanks a lot and sorry for the late response
    I did actually use tool tip to view it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center