How to catch the movement of return on investment when the user drags a handful of return on investment?

Hello, I use VDM2009 with c#. I need to make some manipulations of KING and need to intercept mouse movements, but do not know what to use. For example, suppose I created a KING OvalContour and that it is a circle (width = height). I have to do 2 things: 1) when the user drags one of the 4 handles, I need to check what handle is moved so that I can drag a few adjacent programmatically so that the circle is a circle and does not become an oval.

(2) when the user clicks/behind the center of the circle, I need prevent the update so that the circle does not move the return on investment. (It would be even better if there was a way to disable the movement of the circle and allow the scale.) I don't know what to use to accomplish this behavior and do not know how to retrieve the KING handles about which is slipped. Any help would be very appreciated. Thank you, Neville

Hello Ben,

Thanks again for your help.  I looked up the definitions for the ROILeft, etc., in the reference VB help as you suggest.  While many objects is similar in setting/name, it seems that these objects (ROILeft, etc.) are those who are not easy to find how to use in the c# version.  But thanks for pointing me to the help file in VB Ref.  I wish, in there wasn't one for c#... I can't understand how to search effectively in the Visual c# help file that is integrated into Visual Studio.

Thanks for your suggestion about the return on investment.  It makes sense, and I'll keep it in mind.

In the meantime, I found a solution to my problem.  I use c# function public bool PreFilterMessage (ref Message objMessage) for prefilter mousedown and mousemove event messages.  Once I found one, I check if the cursor is on a part of the KING that I care.  If I want to do something special, I'm doing it right here.  If I want to keep the normal behavior of the KING OR on mousedown and mousemove, I trash the message.

It's a total pain, but it seems that functions NOR are not put in place to do this kind of things in an elegant way.  Thanks again for your help!

Neville

Tags: NI Hardware

Similar Questions

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • BBM how to retrieve BBM be hacked or how to catch the pirate?

    Hello everyone, I have a few requests here as member of my family comes from live be hacked:
    -can I know if we provide BBN, PIN, could we know email ID used to register?
    -How to retrieve the BBM be hacked?
    -How to catch the pirate?
    Thanks in advance!

    Most likely you allowed someone to get your credentials BBID, or you have been deceived into giving them upward.

    This is the management of Blackberry users who have their BBID diversion...

    -------------
    In these scenarios, the user must email\contact our office of privacy protection
     
    http://CA.BlackBerry.com/legal/privacy-policy.html
     
     
    10. questions or concerns? How to contact us
    BlackBerry welcomes your questions or comments about this privacy policy and the way in which we treat your personal information. If you have any questions, concerns, or you want to request access to your personal information under the privacy or data protection laws, please communicate with BlackBerry, either by e-mail or in writing and we will use commercially reasonable efforts to respond:
    email: [email protected], or
    write to one of the following offices of the nearest BlackBerry you:
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 2200 University Avenue East, Waterloo, Ontario, Canada N2K 0 to 7
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 200 Bath Road, Slough, Berkshire, United Kingdom SL1 3XE
    BlackBerry Privacy Office c/o BlackBerry (attention Legal Department), 1 International Business Park, The Synergy Building, 2nd Floor, Singapore 609917
    ------------

  • How to catch the event storm rotation?

    Hi all

    As the title,

    I want to know how to catch the rotation on the device of the storm?

    Y at - it samples which I can draw?

    Thank you

    You can use the method getOrientation() class net.rim.device.api.ui.Display

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • How to catch the exception in the sliders

    Hello

    How to catch the exception no. DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;
    so 1234 is not in my table, how to trap this.could help me please

    Published by: user4587979 on 27 May, 2010 03:46

    Maybe it's

    declare
      CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
      lemp c1%rowtype ;
    begin
      open c1;
      loop
        fetch c1 into lemp;
        exit when c1%notfound;
        DBMS_OUTPUT.PUT_LINE(lemp.ename);
      end loop;
      if c1%rowcount = 0 then
        raise no_data_found;
      end if;
      close c1;
    end;
    
  • Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Than k you

    The user has clicked on Vista, the little lock at the bottom of the START window.

    Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Thank you

    Hello

    Click the account icon that was locked and enter the password IF you know and otherwise:

    Try Safe Mode - several times, press F8 that you start. The Admin account there is no default password
    so unless someone has changed, you should have access there. Then Control Panel - accounts - users
    Manage another account - use this down your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    If no joy Mode without failure:

    Try this - use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    Make another Admin account with your password and use it to fix the others if necessary. (just for
    repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.

    DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (do not forget to always
    not that an Admin account that is not used except for testing and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    ---------------------------------------------------------

    If necessary:

    Ophcrack is a free Windows password cracker based on rainbow tables.
    http://Ophcrack.sourceforge.NET/

    How to reset a Windows Vista - Trinity Rescue Kit method - password password reset disc - burn the ISO
    http://www.WikiHow.com/reset-a-Windows-Vista-password
    YouTube video on the use of the Trinity rescue Kit
    http://www.YouTube.com/results?search_query=Trinity+rescue+Kit&search_type=&AQ=f

    Reset your forgotten password the easy way using the Ultimate Boot CD for Windows
    http://www.howtogeek.com/HOWTO/Windows-Vista/reset-your-forgotten-password-the-easy-way-using-the-ultimate-boot-CD-for-Windows/

    Offline NT Password & Reset Editor
    http://home.eunet.no/~pnordahl/ntpasswd/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to help the user focus

    How to help the user focus

    Magnifier enlarges part of the screen. This is especially useful for viewing objects that are difficult to see. It is also useful for people who are generally difficult to see the screen.

  • How to fix the user accounts in windows 8

    How to correct the user account in windows 8 on new g7 2246nr, I put to your laptop using the Microsoft account then switched to a local account.  I found myself with i admin working the rest of my files are broken up between 3 other user accounts.  I spoke with Microsoft to try to consolidate the accounts and they used a command line in the command, but he has not done. I always work with the system, but it has problems. I reloaded the software so for 3 times. All know how to correct the problem without reload all the software again?  also, after configuring sharepoint in Office Pro Plus, he created another administrator account.  I do not think this would happen?

    Hi BJ2124,

    Although I regret the inconvenience that you had with your experience of Microsoft Windows 8, you can better receive the technical expertise you need by contacting Microsoft about the issue of multiple account creation.

    You can call Microsoft Customer Service at 1-800-642-7676
    Mon - Fri: 05:00 - 21:00; Sat - Sun: 06:00-15:00 (PST)

    As a reference, I included the link to the technical support of Microsoft Windows 8 page:

    http://support.Microsoft.com/contactus/?ws=support

    Also, here is a reference link to change logins to Microsoft for local accounts:

    Microsoft how to switch from one account to a Local account in Windows 8

    And finally, here is a quick reference to solve the problem that you encounter while using an account download troubleshooting tool from Microsoft:

    The problems of account Microsoft Windows 8 with convenience store "Microsoft accounts"

    In this forum support is available for support hardware/software HP. I will provide better supported with your hardware/software of HP. If you need help with a software which is another provider, so I can re - direct you to reference appropriate at this time.

    I hope that you can mark these messages as solved, so that you can inspire others to follow your example with success. You never know who you can inspire.

    -How can I give Kudos? | How to mark a post as solved? --------------------------------------------------------

  • How to know the user is the call

    Hi all

    I development push a service Application in which the following requirement is that the push message should not be displayed when the user is in the call. How to detect the user wheather so busy on appeal?

    Please suggest me how to proceed.

    looking forward to responses CIHI to you guys.

    Thank you

    I thought you wanted to know if the user is on a call.  The code I gave you the will and sets the appropriate Boolean value.  Where and how you use it is up to you isn't it?

    I would have thought that the logic in your code to push would be simply

    If (! onCall) {}

    view

    }

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • How to disable the user rights in adobe acrobat reader DC?

    How to disable the user rights in adobe acrobat reader DC?

    Is not possible. You need Acrobat for that.

  • How to prevent the user open and play a flash game on multiple browser windows at the same time?

    Hi guys,.

    I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/

    Anyone know how to prevent the user opened and play the game on multiple windows browser both?

    I used the command of flash to embed flash into a page aspx and connection to sql server

    Someone help me, please.

    p/s: Sorry, my English is not good

    You can use localconnection.

  • How to pass the user/pass of OSB to a secure service

    How to pass the user/pass of OSB to a secure service

    http://download.Oracle.com/docs/CD/E13159_01/OSB/docs10gr3/consolehelp/serviceAccounts.html

  • How to display the user name in report editor RTF BI?

    Please advice how to display the user name in report editor RTF BI?
    Maybe this can be done via a hidden parameter of the report, BEEP, which by default will be implemented with the macro as {$username$} (or smth like)?
    Thanks in advance!

    Yes, or create a hidden report BEEP setting with the name you want and the default ": xdo_user_name" (without ""). And on the report that you call the parameter with the username!

  • How to give the user ONLY views all SYS?

    My DBA cannot give me all s/n priveligies, but does not know how to give me ONLY priveligies all SYS views (v$ sql, v$ sqltext, process$ v, dba_scheduler_jobs,...)

    How to give the user to display all VIEWS SYS?

    in my case should be 1)? Right?

    The privilege or role will provide the desired access.

Maybe you are looking for