Problem changing TrackMode from Plot&Cursor (TrackAll) to ZoomXYRectangle

I'm using a CWGraph control from Measurement Studio 6.0 in a C# application.
I want the user to be able to switch between tracking modes on the fly - I use Plot&Cursor mode to allow them to right-click on a point and get more information. But when I switch to ZoomXYRectangle mode, it does not work (it does not allow me to zoom).
Am I missing something? The same functionality works fine on the 3D Graph (switching from TrackAll to TrackZoomPanRotate).
Thanks,
Natalie

This is pretty strange ... I played around with the project for a while and there seems to be something about bringing up the context menu that throws something off. If you comment out the line of code that shows the context menu, the problem doesn't reproduce anymore. Also, if it's not working after you switch to zoom mode, you can right-click anywhere on the graph and then try to zoom, and it'll work.
Off the top of my head I can't think of a good reason why this is happening. Since it will work again if you right-click anywhere on the graph, you could hack a workaround by sending a message to the AxHost that's hosting the ActiveX control to make it think that it received a right-click. It's a total hack to fix it, but it does work. Here's some
sample code that shows how to do this:
// Place this code somewhere in the form class:
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
private const int WM_RBUTTONUP = 0x0205;
private const int MK_RBUTTON = 0x0002;
private static int MAKELPARAM(int low, int high)
return ((low & 0xffff) | ((high & 0xffff) << 16));
// Change the CheckedChanged event handler for the zoom radio button so that
// the message is sent when the track mode is changed.
private void zoom_CheckedChanged(object sender, System.EventArgs e)
if (zoom.Checked)
axGraph.TrackMode = CWUIControlsLib.CWGraphTrackModes.cwGTrackZoomRectXY;
SendMessage(axGraph.Handle, WM_RBUTTONUP, MK_RBUTTON, MAKELPARAM(1, 1));
- Elton

Similar Messages

  • C370 - Problem changing password from GUI

    Hi,
    I'm facing a problem when trying to change password when it's expired (by password policy) at C370 w/ 7.6.3-019.
    Already tried at IE 9.0 and FF 24.6.0 ED without success. The only way I can change password is from CLI.

    Is this per the System Administration > Local User Account & Password Settings, w/ password reset rules set there?  Specific account/admin account?  Or a custom defined account?
    From what you describe - sounds like would fall in-line with standard procedures if admin account related...
    If you lock the admin account, you can only unlock it by logging in as the admin through a serial communications connection to the serial console port. The admin user can always access the appliance using the serial console port, even when the admin account is locked.
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • Probleme changing the value of a variable in movieclip from my scene

    Hello,
    i have a probleme changing the value of a variable in movieclip from my scene. i explain: I have combobox on my scene containing categories, and in the scene i load an xml file containing links to php files that work with the combobox.
    Also on the scene i have a movieclip "filmstrip", inside this movieclip on the first frame i have a script loading the php file selected in the scene . i use a load() function with a variable "theUrl" inside like this : T.load(theUrl);.
    In my scene i want to change the value of "theUrl" inside the movieClip filmstrip. I tried filmstrip.theUrl = url; But it doesnt work
    the xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <area title1="10 Last updated" link1="link1.php"/>
    <area title1="special" link1="link2.php"/>
    </slideshow>
    here is the code on my scene:
    var link1:Array = new Array();
    var LINK:String;
    var url:String;
    var whoOn:Number;
    whoOn=0;
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
    var photos:Array = this.firstChild.childNodes;
    for (i=0; i<photos.length; i++) {
    _root.link1.push(photos[i].attributes.link1);
    url=link1[whoOn];
    filmstrip.theUrl=url;//<<--HERE
    x.load("category.xml");
    var cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
    trace(select.selectedItem.label);
    if (select.selectedItem.label == "Last updated") {
    whoOn=0;
    } else if (select.selectedItem.label == "Special") {
    whoOn=1;
    url=link1[whoOn];
    filmstrip.theUrl=url; //<<-----HERE  
    select.addEventListener("change",cbListener);
    here is the code inside the movie clip "filmstrip"
    var T:XML = new XML();
    T.ignoreWhite = true;
    T.onLoad = function(xml) {
    etc etc etc }
    T.load(theUrl);    //<<---HERE it still undefined

    YESSSS . Thanks you very much Kglad it wotk i put all in a function inside the filmstrip function Tload(theUrl){etc ect}and in the root i call it like this filmstrip.Tload(theUrl);   and it works
    code in the root var link1:Array = new Array();
    var LINK:String;
    var url:String;
    var whoOn:Number;
    whoOn=0;
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
    var photos:Array = this.firstChild.childNodes;
    for (i=0; i<photos.length; i++) {
    _root.link1.push(photos[i].attributes.link1);
    url=link1[whoOn];
    theUrl=url;
    filmstrip.Tload(theUrl);//<<--HERE
    x.load("category.xml");
    var cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
    trace(select.selectedItem.label);
    if (select.selectedItem.label == "Last updated") {
    whoOn=0;
    } else if (select.selectedItem.label == "Special") {
    whoOn=1;
    url=link1[whoOn];
    theUrl=url;
    filmstrip.Tload(theUrl);//<<-----HERE
    select.addEventListener("change",cbListener);

  • In iTunes I'm having problems changing the "Media Kind" with a number of playlists in the OPTIONS menu from "music" to "audiobook". After going through the steps, the next time I check the items have reverted back to "music". What step am I missing?

    In iTunes I'm having problems changing the "Media Kind" in the OPTIONS menu from "Music" to "Audiobook". After going through the steps, the next time I check, the items have reverted back to "Music". What must I do to save it as an "Audiobook"?

    After more digging in the Support section here and some Google work, I turned off iTunes Match and lo and behold!  I can change the media kind to Audiobook!  So, it looks like iTunes Match locked the files up somehow and for some reason.
    I went into iTunes Store > iTunes Match > "No, Thanks" to disable it on the local PC.

  • I have moved and changed ISP from Brighthouse to Verizon.   I am receiving my icloud emails, but the senders are receiving messages that they are undeliverable. I can't find the cause or solution to the problem.  Any thoughts?

    I have moved and changed ISP from Brighthouse to Verizon.   I am receiving my icloud emails, but the senders are receiving messages that they are undeliverable. I can't find the cause or solution to the problem.  Any thoughts? 
    PS. I have deleted Roadrunner accounts, and reset new email account. 

    You can't. The only way to get songs in the Music app is to sync from a computer or to download from iTunes.

  • Mixed Graph - Multi Plot Cursor Problem

    If I plot both Analog Waveform and Digital Waveform in a single Mixed Graph, and when I choose watch all plots in cursor legend, LabVIEW crashes with an error message.....
    I have also attached  the Print screen image of that Error
    Attachments:
    error.JPG ‏188 KB

    Jared Boothe,
               I found a solution to overcome that error.
               Build all the array data at first and then generate digtal waveform in single instance.
               ie., With number of numerical array data, build a 2D array of numerical data and make a transpose and then generate a waveform.
               It generates number of digital waveform equal to that of the column size of 2D Array.
               Do not build generated digital waveforms. This creates an error while using multi plot cursor--> watch--> All plots.
               I have attached the modified, error free Vi with this message for your reference.
    Regards,
    Raja
    Project Engineer
    Soliton Technologies
    www.solitontech.com 
    Attachments:
    Mixed Graph Modified without Error.vi ‏25 KB

  • Multi plot cursor

    Dear All,
    I am working on Mixed Signal Graph with Multi plot cursor.
    My target is to move the cursor on X axis time scale and get the y axis values of all the plots.
    i got some ex. on forum but i am facing a typical problem explained as follows:
    By chaning the cursor plot i am getting the y axis values for each plot.
    The problem is that the values are continuously changing of the plot y axis value automatically, ans also the values of the respective plot does'nt match all the time, it changes.
    I have attached a example, in that the values of the respective plot changes every time.
    Am i missing anything, please guide.
    Regards,
    Shrek
    Attachments:
    Mixed Signal Cursor.vi ‏34 KB

    Here is a quick mod .. don't know if it solve your problem, but I get constant values
    Will work only if all plots have the same lenght ...
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    Mixed Signal Cursor.vi ‏27 KB

  • Copying value from one cursor to another

    Hi,
    I have a problem while copying values from one cursor to another cursor.
    The code looks like below.
    PROCEDURE XYZ
                TransactionResultSet OUT NOCOPY types.ref_cursor,
    IS
                temp_cursor types.ref_cursor;
                wip_rec types.ref_cursor;
    BEGIN
    DECLARE
                    CURSOR temp_cursor IS
                SELECT ...........
    END;
    BEGIN     
        FOR wip_rec IN temp_cursor
        LOOP
        update tinsagr set something
        where {the condition}
            IF SQL%ROWCOUNT = 0 THEN
      dbms_output.put_line('this is test ');
            Fetch wip_rec into TransactionResultSet;
         END IF;
       END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
    That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
    How do i achieve it?
    while saving i am getting
    (1): PLS-00456: item 'WIP_REC' is not a cursor.
    Do any one has any idea what to do in such scenario?

    There are options like....
    SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
      2  /
    Type created.
    SQL> set serverou on
    SP2-0158: unknown SET option "serverou"
    SQL> set serverout on
    SQL> DECLARE
      2    rc      sys_refcursor;
      3    v_ename emp.ename%TYPE;
      4    v_dept  emp.deptno%TYPE;
      5    ---End Of Local Varriable Declaration
      6    --Procedire declaration !
      7    PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
      8      emp_rec emp_tbl;
      9    BEGIN
    10      /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
    11      with some simple modification, Here I have used implicit cursor! */
    12      SELECT emp_obj(ename, deptno) --Casting as the object
    13      BULK COLLECT
    14        INTO emp_rec
    15        FROM emp
    16       WHERE deptno = 10;
    17   
    18      dbms_output.put_line('Records selected are:');
    19      FOR i in 1 .. emp_rec.COUNT LOOP
    20        dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
    21      END LOOP;
    22      --Now we are filtering the record and may be doing some operation with each record.
    23      FOR i in 1 .. emp_rec.COUNT LOOP
    24        IF emp_rec(i).ename = 'KING' THEN
    25          --You can change this IF according to your need.
    26          emp_rec.DELETE(i);
    27        END IF;
    28      END LOOP;
    29      OPEN pi_out_ref_cur FOR
    30        SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
    31    END TEST_CUR;
    32    /* Main execution or procedure calling section*/
    33  BEGIN
    34    --Actual calling
    35    TEST_CUR(rc);
    36    dbms_output.new_line;
    37    dbms_output.put_line('Now in Ref Cursor');
    38    dbms_output.put_line('****************');
    39    LOOP
    40      FETCH rc
    41        INTO v_ename, v_dept;
    42      dbms_output.put_line(v_ename || '--' || v_dept);
    43      EXIT WHEN rc%NOTFOUND;
    44    END LOOP;
    45 
    46  END;
    47  /
    Records selected are:
    CLARK--10
    KING--10
    MILLER--10
    Now in Ref Cursor
    CLARK--10
    MILLER--10
    MILLER--10
    PL/SQL procedure successfully completed.
    SQL>

  • Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

    I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.
    Thank you in advance!

    Jeanius,
       I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
    Ben J.
    National Instruments
    Applications Engineer
    Attachments:
    MODDEDmixed graph cursor ex.vi ‏41 KB

  • Problem emailing photos from iPhoto after installing OS 10.5.1

    Since installing Leopard I have had problems emailing photos from iPhoto. I can send from my laptop to another Mac without problem BUT when I try to email pix from iPhoto to a PC user or to post on my Google Group board it only sends the 'title' I gave it in iPhoto or the 'PC134567.JPG' the camera assigns it. I have tried exporting and attaching to emails but that doesnt work either .. at least not all the time. AND when I do send them from iPhoto to my office PC they arrive NOT as an attachment but are embedded in the email message .. seriously what the heck is going on and why is this not working the way it used to pre-OS 10.5.1? What changed? How can I make this work the way it used to?
    Thanks for reading and hopefully solving my problem

    Thank you again .. I got home and immediately tried the fix you suggested .. sent a 'test' email and it worked perfectly.

  • How/can I change the "from" address in Mail?

    I just upgraded to Mountain Lion, and have come across a problem.
    I use iCloud for my mail account, but I want to change the "from" address - so the return address on my messages is NOT icloud.
    I could do this in Lion.
    In the mail account settings, there's an option that says "alias" and it lists (me)@mac.com, (me)@me.com and (me)@icloud.com, and then "custom" is an option.
    Great!
    So I choose Custom, and then I can type in the "from" address that I want.
    However, when I go to save those changes, it tells me the SMTP server can't be left blank.
    What?
    It's not blank! I didn't touch it. The icloud server is still there!
    Furthermore, it's greyed out, so even if it WERE blank, it's not like I can edit it!
    Once this happens, the only fix is to delete the whole account from mail, and to disable mail in the icloud control panel, then re-add it.
    Has anyone figured out to work around this?

    Apple's outgoing mail server - just like 99.9% of all other SMTP servers, does not allow "relaying", meaning you use a domain in the 'sent from' address that is different from a domain hosted by the server. The simple reason is to make it harder for any spammer - not assuming you are one - to abuse the server. While bandwidth, server capacity and server load are some issues, the main fear for ISPs is to get blacklisted, and consequently mails from such server being refused by all others.
    It's a general rule, and while exceptions might be technically possible, it would be a manual act which at a certain rate would become unmanageable.
    If you want, read about the antonym, open mail relay servers, here.
    You see, it's actually good behavior and absolutely in your interest to prevent you from using a "non-in-house" 'sent from' address.

  • Why can I not find the primary video setting in Bios so I can change it from integrated to PCIE?

    I have purchased a new video card to add to my computer which has integrated graphics.  When I installed the card I got a blank screen so I removed the card and restarted the computer and entered BIOS in an attempt to change it from integrated to PCIE the problem is I cannot find the option to make the change.  I can select advanced chipset but there is no primary video option to select and as far as I can tell there is no option to switch it from integrated to PCIE....  I researched this heavily and am now resorting to this as I cannot find a way to get the video card to work.  I have posted the options I have in my system's Bios below.  Thnks for looking   BIOS Version 2.14.1219Options:Main     Advanced      Power      Security      Boot Options       Exit Main:System infoDateTimeAdvancedMiscellaneous            AHCI Post 1 Not Present            AHCI Post 2 Not Present            AHCI Post 3 Not Present            AHCI Post 4 HL-DT-ST- DVDRAM GH7ON            AHCI Post 5 Not PresentAdvanced Chipset Configuration            Intel EIST             [Enabled]            Intel Turbo Boost [Enabled]            Intel AES-NI        [Disabled]            Intel XD BIT        [Enabled]            DVMT Mode        [DVMT]            DVMT Memory Size [256mb]Integrated Peripherals            Onboard SATA Controller [Enabled]            Onboard USB Controller [AHCI]            Legacy USB Support [Enabled]            USB Storage Emulation [Auto]            Onboard Audio Controller [Enabled]            Onboard LAN Controller [Enabled]            Onboard LAN Option ROM [Disabled]PC Health Status            {Health Status info}Smart Fan [Enabled]PowerACPI Suspend Mode   [3(STR)]Deep Power Off ModePower On By RTC AlarmPower on by PCIE AlarmPower on by Onboard LANWake up by PS2 Keyboard/MouseWake up by USB Keyboard/MouseRestore on AC Power LossSecuritySupervisor passwordUsername PasswordChange Supervisor PasswordBoot Options1st Boot Device2nd Boot Device3rd Boot Device4th Boot Device5th Boot DeviceEFI Device PriorityHard Disk Drive PriorityOptical Disk Drive PriorityRemovable Device PriorityNetwork Device PriorityQuiet Boot OnHalt OnExit    

    iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB

  • Move change request from a maintenance project  to another project

    Hello all,
    we want to close a maintenance project A and create a new maintenance project B. We have a lot of change request they aren`t finish, so we want to move them to the new maintenance project.
    The following steps we have done:
    1. Doing all phases of the maintenance cycle of project A.
    2. Close maintenance cycle project A.
    3. Create a new project B.
    4. create a new maintenance cycle for project B.
    Now, we have the problem, that all change request from project A and maintenance cycle A didn't move to the new project B and cycle B.
    If you create a new maintenance cycle in project A, all open change requests move to the new cycle. But we want to move them to a new project and a new cycle.
    Have anybody a suggestion how to do this?
    Kind Regards
    Marc

    Hello Marc,
    there are a couple of methods in a class that might help you if you DO have to do it... but SAP will not support you in case you have any problem.
    you can take a look to methods of class CL_HF_HELPER.
    Methods :
    SET_BO_LINK_TO_CHNG_DOC is used to set link between SDMJ and SDMN
    SET_BO_TASKLIST_OF_CHNG_DOC is used to set link between SDMJ and tasklist 
    as there are those methods, to create links SAP, provides some others that are supposed to break them (If i remember well they are not activated or finished but you can still have a look !!)
    Those methods are
    DELETE_BO_LINK_OF_CHNG_DOC
    DELETE_BO_TASKLIST_OF_CHNG_DOC
    RECREATE_BO_LINK_OF_CHNG_DOC
    RECREATE_BO_TLIST_OF_CHNG_DOC
    Hope this helps
    One more time... be carefull with those methids... I think it s quite dangerous to handle those kind of things without SAP's support.
    Also, one mote thing... since many many customers have asked for this functionality; SAP is trying to develop the whole thing (with adjustments of Checks functionalites of ChaRM) for the next releases. Maybe that will be part of the next release
    Regards
    Khalil

  • Unable to release the change request from se01

    HI All,
    Recently i had applied Rsecnotes as per sap recommendation in EWA Report and I implemented successfully in DEV System. But, When i try to release the change requests from SE01 in (DEV System)
    it is giving the error message "Object Func<objectname> is inactive". I have unlocked all the request and checked but still problem exsist.
    Please help me to release the request and implement in the landscape.
    Thanks,
    Rajesh N

    Hi,
    Activate the object using se03 and then relaese the request
    thanks

  • When I send or receive e-mail, the mail gets changed significantly from its' original form.....typestyle, size of letters, symbols, page layout, color, everything changes.....is there a way to fix that?.....

    When I send or receive e-mail (Thunderbird).....the mail gets changed significantly from its original form.....typestyle, font size, symbols, page layout, color.....everything changes.....is there a way to fix that so my the original form of the mail is not changed?.....

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

Maybe you are looking for