Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 10, 2006 12:14:55 PM(UTC)
David9908

Groups: Registered
Posts: 18


I have to limit the creation of an annotation object such as a ruler in a rectangle area. that is, if the mouse cursor move into this area, the cursor will change to '+', and click left button will lead to create an object. else if the mouse cursor is outside the rectangle area the mouse cursor keep normal and nothing happened when left button is clicked. any ideas?.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, May 14, 2006 8:41:57 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

What is the LEADTOOLS version that you use? And what is the programming interface (COM, API, C++ Class Library, .Net, etc.)?
Also, what is the programming language that you use?

However, I am not sure if you can do this or not. But I will investigate more about your requirements and get back to you.

Please provide me with the above information to continue investigating this issue.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Monday, May 15, 2006 7:43:27 AM(UTC)
David9908

Groups: Registered
Posts: 18


I am using v 14.5 with COM interface through VB 6.

now i got it by add codes into mouse event as following:

Private Sub RasterAnn_OnAnnMouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)
    If MouseInUSRegion(1, x, y) Then
        If Not mbAutoDraw Then
            RasterAnn.AnnAutoDrawEnable = True
            mbAutoDraw = True
        End If
    Else
        If mbAutoDraw Then
            RasterAnn.AnnAutoDrawEnable = False
            mbAutoDraw = False
        End If
    End If
End Sub

is it a correct method?

 

 

 
#4 Posted : Thursday, May 18, 2006 4:18:02 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Did you try this method on your side? Did you get the results that you are looking for?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Thursday, May 18, 2006 6:49:31 AM(UTC)
David9908

Groups: Registered
Posts: 18


Yes, it works. Now only when the mouse cursor move in the certain rectangle region the autodraw is allowed.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.087 seconds.