Is it possible to place multiple Annotations on the same cwgraph?

Hi,
I'm trying to add multiple vertical bars (annotations) on a cwgraph.
Here is the code that I have for a command button:
Private Sub Annotation_Click()
    S = S + 2
    CWGraph1.Annotations.Add
    CWGraph1.Annotations.Item(1).Shape.XCoordinates = Array(S, S)
    CWGraph1.Annotations.Item(1).Shape.YCoordinates = Array(-10, 10)
End Sub
What happens when I click the button, is a new annotation is added with respect to S, but the last annotation is removed.  Can someone point out the error of my ways?
Thanks,
Max

The annotation isn't removed. What's happening is that you're always updating
the properties for the first annotation that you added, and the same
annotation is updated with the new coordinates each time that you click the
button. If you change your code to
always use the last index into the Item property, you will see the expected
results. For example:
Private Sub Annotation_Click()
S = S + 2
CWGraph1.Annotations.Add
Dim index as Integer
index = CWGraph1.Annotations.Count
CWGraph1.Annotations.Item(index).Shape.XCoordinates = Array(S, S)
CWGraph1.Annotations.Item(index).Shape.YCoordinates = Array(-10, 10)
End Sub
Alternatively, you can use the return value of Add to update the most recently
added annotation. For example:
Private Sub Annotation_Click()
S = S + 2
Dim annotation As CWAnnotation
Set annotation = CWGraph1.Annotations.Add
annotation.Shape.XCoordinates = Array(S, S)
annotation.Shape.YCoordinates = Array(-10, 10)
End Sub
- Elton

Similar Messages

  • Is it possible to upload multiple files at the same time?

    Hi folks,
    It seems pretty trivial to implement a file upload item, but is there some way to allow selection (upload) of multiple files at the same time? Seems like this has probably come up before, but I didn't find much for solutions in my search. Any links or insight would be appreciated.
    Thanks!
    -Adam vonNieda

    Thank you both for your replies.
    @Manish - That does allow for multiple file uploads without refreshing the page, but does not allow for multiple file uploads at the same time.
    @Tony - That might be the way I end up going, although I probably should have been more specific. It would be really nice it there was a way to do a mutli-file select using the control or shift button like you can with a standard file selection dialog (if you want to copy multiple files, for example). Having a separate line for each file browser means there has to be a limit on the number that can be selected at the same time.
    Has anyone implemented a method of selecting multiple files at once, and hitting an upload button once to get them into the database?
    Thanks again Manish and Tony, very helpful.
    -Adam

  • Is it possible to do multiple recordings with the same session.

    I appologize in advance for this but here goes.  I want to make several background narrations for some video clips.  Using Audition 3, I start out by recording in the multitrack view on the top track.  Because of mistakes, this takes several audio clips.  After finishing, I rightclick on one of the clips, select bounce to new track all audio tracks and this creates a mixdown.  Moving to edit view, I do noise correction, then back to multitrack where I export the mixdown as .wav.
    THen I select the clips in the top track and mixdown in the next track and hit delete.  However, when I hit the arming 'R" and then the record button, the cursor doesn't move more than a milimeter and then keeps going back and forth.
    I was trying to do multiple narrations with just this one session, so is that possible?  Do I have to do a separate session for each separate mixdown?
    If there is something I'm doing wrong, I would appreciate any directions.
    Thanks in advance,
    John Rich

    Blue_Devil1 wrote:
    I appologize in advance for this but here goes.  I want to make several background narrations for some video clips.  Using Audition 3, I start out by recording in the multitrack view on the top track.  Because of mistakes, this takes several audio clips.  After finishing, I rightclick on one of the clips, select bounce to new track all audio tracks and this creates a mixdown.
    Let me stop you right there, for a start, because what you are doing still isn't clear, although I think that I can guess at it...
    Creating a bounce-down is not the same thing as creating a mixdown. If each of these clips you've recorded constitutes a separate file, which it will if you hit the stop button rather than pause - which it sounds as though you have, otherwise you wouldn't be able to separate them so easily - then just double-clicking on the clip will open it immediately in Edit View anyway. And the bounce-down options don't mention tracks, they mention clips - all audio in session, selected range or selected clips. Yes you get one file as a result - but it's literally just the clips as they stand run together not via the mixer, any effects or automation system - which it would have to be if it were a proper mixdown. A bouhce is exactly what it says - just bouncing the clips.
    THen I select the clips in the top track and mixdown in the next track and hit delete.  However, when I hit the arming 'R" and then the record button, the cursor doesn't move more than a milimeter and then keeps going back and forth.
    I was trying to do multiple narrations with just this one session, so is that possible?  Do I have to do a separate session for each separate mixdown?
    Hmm... when I hit the delete key, nothing happens - I have to right-click to get stuff to delete like that. But you most certainly can re-record in a session, yes. If you get the cursor moving just a fraction of a mm, then almost certainly this means that instead of moving the cursor back to the start, you've moved it slightly with the mouse pressed and created a very small range.So before you record, hit the 'Go to Beginning or Previous Marker' key (next to the play looped key) and try again - it should work properly then.
    And of course you haven't deleted all the files - they are still there on your system and will remain so unless you delete them outside Audition, either the hard way, or using MediaSweeper.
    Your workflow is, to say the least, a little strange. If I were recording narrations (which I do sometimes), I'd record in Edit View, and keep just the files or takes I wanted. Then I'd import these into Multitrack view, arrange them, crossfade them, whatever, and then do a mixdown of the result, which would appear back in Edit View for final trimming and saving, and I'd have a file (or files) to use in the final production. This would have the advantage of not creating all these 'take' files that you have to get rid of separately in the first place, and generally keep the workflow down to a sensible number of steps.

  • Is it possible to have multiple accounts under the same apple id

    I just bought an ipod touch primarily for my daughter to use, and would like to communicate from my ipad to the ipod touch using facetime. However, both are under my apple id and apple account. Is there a way I can talk from one device to the other - if they are both owned by me but being used at different locations? Additionally I would like to have a different ID for my MAC if possible, so I can communicate by facetime with people at home if I am not there.
    Any suggestions?

    Yes, follow the instructions here:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Is it possible to open multiple files in the same window

    I just upgraded from Reader 8.1.0 to 9.2 and whenever I open multiple pdfs it opens a new window.
    Is there a way to prevent this. If didn't happen in 8.1.0.
    Aditya

    Thank you for the brilliant idea.....
    How about in 9.2 ?

  • Is it possible to recharge multiple iPhones on the same computer but have each iPhone backed up with its own data?

    I have multiple iphones, one for personal use and one for work.  I would like to backup and recharge both on my MacBook Pro but do not want the information on the personal one to be on the work one.  My personal iPhone is 64 GB and the work one is 16 GB so the data from my personal iPhone would would not fit on the work iPhone  Both are running iOS 7.1.2 and the MBP is 10.9.4

    Disable automatic syncing - http://ipod.about.com/od/iphoneipodbattery/qt/disable-auto-sync.htm e.g. for charging device on another computer.

  • Is there any possibility to bookmark multiple tabs at the same moment in the firefox 5? Becouse this is a very important function for me.

    That function was in the Firefox 3, and it was ultra effective. Why do Firefox 5 do not have it? It should be progress, not downgradation.

    You can access bookmark all tabs by right-clicking on a tab, or use the keyboard shortcut Control+Shift+D

  • In CS6, is it still possible to edit multiple layers at the same time?

    I often color code layers in the layers panel.
    In CS5 I could select several layers and change the color for all at once. Doesn't seem to work anymore in CS6.
    Screen shot: http://d.pr/i/uTjh

    Hey thanks guys, this has been bugging me for weeks since I upgraded to CS6. I'm used to double clicking to manipulate several layers at once. Have been double clicking one at a time for a while. So glad I don't have to do that anymore. Cheers!
    Jeff

  • Is it possible to print multiple days on the same sheet of paper in iCal

    I want to make my own day to day calender and don't want to have it be huge. I was trying to print in day view but want to put 4 days on each page and I cannot figure it out.
    Please help.

    File > Print has an option to print by View (Day, Week, Month or List). Experiment with the List View to see if it meets your needs.

  • CRVS2010 - open multiple rpts at the same time, like sheets in a xls file ?

    Hi all,
    is that possible to open multiple reports at the same time, like sheets in a excell file ?
    Is that possible create tabs beside the MainReport tab ? or include reports in the Group Tree ? how can I do it ?
    The application is in asp.net with VS2010 and CR2010.
    The reports used to be in excell with three sheets and now we are migrating them to crystal reports, how can I create the report with those three sheets ?
    thanks !
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Aug 31, 2010 7:33 AM

    I'll make the suggestion to the Program Management group.
    You may want to do a post to the [Crystal Reports Design|SAP Crystal Reports; forum and ask them how they's fake that sort of a requirement. E.g.; there may be some way to make this report look the way you want, but it will be best to ask the experts. Don't mention CRVS2010 as they don't support it and most likely you will not get an answer.
    Ludek

  • Multiple DEVL_PROJECT_ID for the same model in CZ_DEVL_PROJECTS Table.

    Hi,
    Did anyone came across this issue!! I am triggering the config engine from back and and trying to pick up a model but it has multiple devl_project_id's. :(
    I could see multiple DEVL_PROJECT_ID for the same model in CZ_DEVL_PROJECTS Table. Apart from DEVL_PROJECT_ID and created_by_date every thing looks the same.
    Below are the 2 records the data from the table
    select * from CZ.CZ_DEVL_PROJECTS where product_key = '122:17056' and DEVL_PROJECT_ID in (12943,15321)
    DEVL_PROJECT_ID     NAME     ORIG_SYS_REF     CREATION_DATE     LAST_UPDATE_DATE     PERSISTENT_PROJECT_ID     MODEL_TYPE
    12943     ASI XXX MODEL(122 17056)     OPTIONAL:122:17056     12/18/2012 10:01     12/18/2012 10:01     11100     A
    PRODUCT_KEY     ORGANIZATION_ID     INVENTORY_ITEM_ID     BOM_CAPTION_RULE_ID     NONBOM_CAPTION_RULE_ID
    122:17056     122     17056     802     801
    15321     ASI XXX MODEL(122 17056)     OPTIONAL:122:17056     12/26/2012 23:10     12/26/2012 23:10     11100     A     
    122:17056     122     17056     802     801
    Thanks in advance,
    -vijay

    It can be possible to have multiple devl_project_id for the same model in cz_devl_projects Table.
    Case -1 : When you delete the existing model and re-import again.
    case 2:
    When you publish the model locally, it will create the same copy of the record with different devl_project_id, creation_date, last update_date etc..\
    You can see that for published records the last_updat_login, checkout_user will be null and for the original model, last_update_login,checkout_user (if model is locked) will not be null.
    -Murali
    Edited by: 907569 on Jan 8, 2013 10:55 AM

  • Accessing multiple portals at the same time?

    Is it possible to access multiple portals at the same time?
    For example, what I want to achieve is different properties (layout,
    portlets, look & feel) for different groups of users accessing the same
    portal. The Associated Groups part on the Portal admin page is not
    fulfilling our requirements. So we decided to have different portals for
    different groups of users, all working through one portal, and accessing
    their custom portals. Is this achievable?
    What we are thinking is: put the common functionality in the repository
    portal directory, and the custom portlets/jsps in the group-specific portal
    directories. This way we can customize portal behavior for different groups
    of users. Is this achievable?
    Thanks.
    Amit

    You have to user respective DRILL commands present in WAD to configure the drill operations on multiple characteristics...

  • Can I create multiple links to the same file without duplicating file?

    does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
    Thanks!

    Hi Franz,
    have a look at the second method on this page
    http://alyeska.altervista.org/en/iWeb_Downloads.html
    see if you understand how it works (if you don't, please ask me)
    Regards,
    Cédric

  • Using multiple timer in the same SessionBean

    Hello,
    Is it possible to use multiple timer in the same Stateless Session Bean. In my application a user can schedule some task to execute. To do so I was thinking of creating a Session Bean which would create calendar timer on user request and, when one of the timer expires, retrieve the task to execute thanks to the information stored in the timer.
    When I tried the solution explained above, it seems that the @timeout method is synchronized on 1 timer. For example if I create a timer that will be executed every 10 seconds and another one executed every 30 seconds, the timeout callback is called every 30 seconds but 4 times.
    My code looks like that :
    @Stateless
    @LocalBean
    public class TimeManager {
        public void onUserRequest(ScheduleExpression expression) {
            Timer timer = timerService.createCalendarTimer(expression, timerCfg);
        @Timeout
        void timeout(Timer timer) {
            logger.log(Level.INFO, (String) timer.getInfo());
    }Is there a way to do what I want?
    Thank you

    This doesn't make any sense to me. If i were to write a bunch of schemas for a particular applicaion, would
    I have them all in the same namespace? You would normally have one schema that describes the information model associated with the one namespace that the different documents in your application use.
    If so, why can't I load more than one in the same name space?The parser chooses the schema based on the namespace alone. There is no other information used to decide which schema to use, so you can only have one schema for the namespace.
    They all have different root elements.You can have different root elements in the one schema.
    I don't even need the namespaces, but I can't
    figure out how to get rid of them (the schema isn't valid with out them according to XML Spy). You can set the schema explicitily before parsing, but not (AFAIK) set after parsing has begun, except by using the mapping of namespace to schema location.
    I have also tried to use the external-noNameSpaceSchemaLocationproperty, but it doesn't seem like you can pass in an array of schemas to that one. It only expects a
    String as the Object you pass in to setProperty. Yes, you can only validate a document against the one schema.
    So, how can I load all my schemas so I don't have to reference them in the XML documents? Either combine your schemas so you have one schema for your namespace that validates elements which are defined in that namespace (the formal/correct way of doing it), or construct a filter that inserts a PI to point to the schema once the root element is opened (the pragmatic/bit of a hack way of doing it).
    Pete

  • Can I view multiple sheets at the same time?

    My search fu hasn't been up to finding how, or if it is possible, to view multiple sheets of the same document at the same time. Can it be done? Either a split view in a single window or multiple windows would be fine.

    marchyman wrote:
    Thanks for the answer. Another workaround is to copy the table that I'm interested in and move it to the sheet where I want to see it. When done I can copy it back or delete it. Just seems like extra effort for something that should be built in.
    No need to copy the sheet. You could just drag it to the sheet where you want to see it, and when done, drag it back 'home'. (This can be done using the icons in the sidebar.)
    Caution: Changing to this method will require vigilance on your part to prevent accidently deleting the table instead of moving it. frequent Saves are recommended.
    Regards,
    Barry

Maybe you are looking for

  • Adobe CS 2 Compatibility

    Hi, hi. I'm in pretty much a very tough situation now. I'm an art student and I have a MacBook (stupid choice, I know). Well, this is a prototype machine and it's quickly getting slower by the day. I will definitely have to swich over to the MacBook

  • I have a dent on the lid of my MacBook Pro 15 inch Retina Display

    I have a dent on the lid of my MacBook Pro 15 inch Retina Display and I was wondering if there is a chance of replacing the silver lid without taking the complete top lid off?

  • Passing Array to Another Method

    Hello, I created a program with an array in one of the methods. I have been trying to figure out how to correctly pass the array to another method in the same class. I know my problem is in my method delcaration statements. Could someone please show

  • Mac Mini G4 with Photoshop CS2

    I have a Mac Mini G4 512 MB of Ram. I want to get Photoshop CS2. Has anyone experienced slow response or issues with Photoshop CS2 on a Mac Mini G4?

  • Ical printing off page!  Need help!

    I posted this message yesterday, but haven't gotten any help. I need to print my calendars but I can't. PLEASE, SOMEBODY HELP! I print my calendars on an Epson 3000. Never had any real problems printing until 10.4.4 was installed yesterday. This is t