Can the position of a vertical line object be changed in run time

Post Author: KennyG
CA Forum: General
I added some vertical line objects into my report in design mode, but the position of them can't be determined until the run time. So I have to change the position dynamically, such as "  lineObject.Left = 200; ........" . But I'm confronted with an exception, System.Runtime.InteropServices.COMException, and it says that " The line object's coordinates are not valid. Only vertical or horizontal lines are supported.". Finally, can the position of a vertical line object be changed in run time? if can, how to do it??
Any suggestion will be greatly appreciated.
Thanks

Making buttons move is my thing. Attached you will find VIs that make advanced use of the postion property.
Attachments:
Moving_Menu.llb ‏176 KB
event_canon1.vi ‏139 KB
Flying_boolean_around_flying_boolean.vi ‏54 KB

Similar Messages

  • How can I control the positioning of a horizontal line?

    Hi - I'm wanting to control the positioning of a horizontal line in Pages.   Is there an easy way to do this?  Thanks.

    Adam,
    The Metrics Inspector has all the controls for positioning.
    Jerry

  • Can the position and szing of a control element in a View be controlled from the ViewModel?

    Is it possible to change the position of a control, say a label, as a response to some action/operation from the ViewModel?  Like if one response to something is true then place the label in the top left corner.  If false, place the label
    in the lower right corner.  I realize you could have a label in each position and just set the visibility.  But can the position and sizing of said label be controlled from the View Model?  What would be a sample coding of this?  would
    it be in the xaml or combination of a method in the ViewModel and the xaml? 
    Rich P

    First off Rich, say TextBlock to yourself ten times.
    Use a TextBlock rather than a label.
    There are a bunch of different ways to do this and the easiest is to have two controls whose text is bound to the one property.
    Bind the Visibility of each to another 2 properties in the viewmodel.
    Collapse one and Visible the other.
    The reason for that is that it's easier.
    Technically, you could put one textblock in a grid and use margin to control this.  You could animate x y co-ordinates and move the textblock mysteriously across the window if you put your mind to it.
    Or you could put it in a row/column "cell" of a grid and change which cell it goes in - but that would involve some mechanism like messaging from the viewmodel to the view and is not really ideal if you can avoid it.
    I'd have a pair of textblocks, here's one:
    <TextBlock Name="TopLeftMsg"
    Text="{Binding Msg}"
    Visiblity="{Binding TopLeftVis}"
    Both would bind to a public string property msg in the viewmodel.
    They each get their own public visibility property  and that'd be switched between Visibility.Visible and Visibility.Collapsed.
    Sizing of textblocks is best fitted to content because all you see is the text.
    Textboxes are arguably different because you can see the things.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How to change at run-time the type of a step?

    Hi,
    How topic title, i need to know how change at run-time the type of a step. I have, i my sub-sequence, a step whose type must change at run-time based upon the occurrence of a condition. How can do it?
    Thanks.

    I need to do this: At verify of a condition, one specific step at the end of sequence must change from statement to numeric limit test and viceversa.
    However, is right to no writing self-modifyinf sequence  unless handle rece condition on step that i want change at run-time.
    Moreover i ask myself: If for change the type of a step i need first delete the substep and later create a new one relative to the step that I want, then it is better and make more sense to create dynamically the step that i would like to have depending on the condition that occurs, right?
    Thanks

  • How to get the content in embed swf file in Swf Loader on run time

    How to get the content in embed swf file in Swf Loader on run time
    [Bindable]
    [Embed(source="assets/index.swf")]
       private var SWFSRC:Class;
    <mx:SWFLoader id="_swfloader" source="{SWFSRC}" />

    Hi Flex harUI,
    Throw the error.
    Access of undefined property content

  • I recently did the iOS 7.0.2 update, now I'm unable to purchase apps. "App could not be purchased at this time. Please try again later. ". I have tried a few of the suggestions and nothing has worked. Reset,change auto lock time on main screen, now what??

    I recently did the iOS 7.0.2 update, now I'm unable to purchase apps. "App could not be purchased at this time. Please try again later. ". I have tried a few of the suggestions and nothing has worked. Reset,change auto lock time on main screen, change language setting. Now what???

    This sorted it for me:
    Backup your iPhone to iCloud (I believe backing up to iTunes will work too). Now go to "Settings --> General --> Reset --> Erase All Content and Settings" to completely restore your iPhone to factory settings. Assuming you've backed up to iCloud, you'll be asked when setting up your iPhone if you want to restore from an iCloud backup. Choose that option and once your iPhone has restored itself from your backup, this annoying problem will finally be gone! (was for me anyway).
    To restore from an iTunes backup, connect your iPhone to your computer, load iTunes. Click the File menu and select Devices > Restore from Back up.

  • Changing the color of a Basic line object nested in a table cell

    Can anyone help me out here...I have inserted a line object from the Basic palette into a table cell on my web page and it displays fine but is default black color...I would like to change the color but haven't been successful in doing so..any ideas

    Hmm - doesn't sound right.
    "color=#hex" is not appropriate HTML markup.... Can you show us where you
    made this change?
    Murray

  • Can you move a single vertical line in a table in Indesign ?

    Ok I have a very complex medical form with several rows and columns. The problem is that I want to move just sections of a column line and I can't seem to figure it out. Below is a screen shot of part of the form. The vertical line between 1st QA and 2nd QA is what I'm talking about. The one you see I drew but I'd prefer to have that as an actual column line. Make Sense ? Thanks for any help.

    What I was suggesting is this:
    1) Unmerge that cell, so that it now is split into the 4 columns, as above.
    2) Split the 2nd column's cell into two (not the whole column—just that cell).
    3) Merge cells 1 & 2, and 3-5 in that row. Now you have a divider that you can move without affect the rest of the table, because it will be hidden everywhere else. Make sure to hold down SHIFT as you drag to move it without resizing the table.
    That new column is there all the way up, but InDesign will see the cells above that as being merged.
    Unlike Word & PPT, InDesign sees tables as rigid structures—and I prefer it that way—as opposed to how Word & PPT allow you to move them independently after merging. That usually creates more work keeping everything aligned.
    Here's another method:
    1) Keep the cell merged as it is, but make the margins 0.
    2) Insert a new 2 column, 1 row table in that cell and resize.
    3) Remove all the borders except the middle vertical divider.
    That method is a little funky—and it won't resize automatically with the rest of the table if you want that—but it kind of works in a pinch.
    Rich

  • HT201406 i have a frozen ipod touch the screen has multicolored vertical lines and is non responsive any ideas?

    i have an i pod touch which appears to be frozen it has multicoloured vertical lines on the screen and is non responsive has anyone had the same probs

    If that does not work:
    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • HT4061 Why does the recipient of my forwarded e mails sometimes receives the text in a vertical line?  Is it on my end?

    Why does the recipient of my forwarded e-mails sometimes receive them as a vertical line?  Is it on my end or theirs?

    The vertical line indicate how many times the mail have been forwarded.

  • XML publisher - the output have few vertical lines.where are they come from

    I need some suggestion on how to debug.
    just take over a project. The invoice is present using XML publisher. the template also called sub template for header and footer information. But there are vertical line between each column almost all the way from the header to the footer. I original though that must be the boarder from each column. but not really. I even delete all the column, or even the for-each@section... Still see the vertical liine. I won't see them at all in the template.
    Where are these vertical line comes from

    ATI Radeon HD 2600 XT:
    Chipset Model: ATI Radeon HD 2600
    Type: GPU
    Bus: PCIe
    Slot: Slot-1
    PCIe Lane Width: x16
    VRAM (Total): 256 MB
    Vendor: ATI (0x1002)
    Device ID: 0x9588
    Revision ID: 0x0000
    ROM Revision: 113-B1480A-252
    EFI Driver Version: 01.00.252
    Message was edited by: Mac Pro Man
    I have looked the mac inside an everything seems fine.
    Message was edited by: Mac Pro Man

  • Can the iPod Video disk break if you move it whie running?

    If I say run or dance to the iPod Video music would the hard drive break?

    i've had two disk-based ipods die when running with them, both wth disk failure (reported by ipod diagnostics), others have reported similar woes over the years
    even if it doesn't kill the ipod, there's the chance of it hanging if bounced when accessing disk (the skip protection is quoted at up to 20-25 minutes i think, but that is based on spinning up the disk every 20-25 minutes to refill the buffer, not on opportunistic refill to always mantain the buffer near full, so at least with the old firmware if the ipod was subjected to enough vibration when it tried to reload the buffer it would hang)
    imho it does depend on running style and how the ipod is carried, so some people may run/jog without problems
    i bought a nano for running, no more problems

  • Schedule lines should not change 3 weeks time from MRP date

    Hi
    Is there any specific customisation required to get following results in case of schedule lines.
    1) MRP should not change/adjust the already send delivery schedule lines  which are lying within 3 weeks time from MRP date
    2) System should not allow to book the GRN unless the messages / print out has been generated from the system in case of scheduling agreement.
    Thanking you
    Shantakumar
    09944009752

    Hi,
    There are 2 possibilities:
         1. use MRP fixing using planning time fences, this is done by putting the relevant settings in the MRP1 view of the material master
         2. use the firming options of the scheduling agreement, these are set per material number that is entered in the scheduling agreement.
    The GR can only be posted for schedule lines that have been processed aka output generated.
    Regards,

  • Changing a Programmatic View Object's query at run-time

    Hi,
    I've created a programmatic View Object using the information in '35.9.3 Key Framework Methods to Override for Programmatic View Objects' in the Oracle Middleware Fusion Guide and bound it to a BarChart. This has worked fine using the following:
    String myColumn = "Quant1";
    protected void create() {
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    String myQuery = "SELECT Service as MyService, " + myColumn + " as MyValue FROM ColumnTestTable WHERE 1 = 1";
    getViewDef().setQuery(myQuery);
    setQuery(myQuery);
    I also have my data updating automatically. I have public properties in my viewObjImpl class which I can set and update the value of myColumn. I then thought it would just be a case of re-calling the create() method and the SQL would be updated and my chart would auto-update using the new column to select it's values, the value of the property updates and the create method is called but the chart doesn't display any different data and stops auto-updating. Does anybody know if this is possible and if so what I may have missed?
    Cheers, Tom

    Hi Timo,
    I moved everything to a different public method and solved the problem by firing the execute() method which I hadn't been doing previously and the chart updates with the correct data.
    However, once I execute the SQL my chart stops auto-updating with changes to the data in the database - do you know how I update the SQL query but keep my chart auto-updating? Perhaps I have to re-register for the registerDatabaseChangeListener for the query collection?
    Thanks in advance, Tom

  • How can I load a picture and use it in ActiveX in run time ??

    I am using an ActiveX object which needs a property "picture" as input.
    I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time.
    In VB, I can do:
    dim pic As Picture
    pic = loadpicture("c:\test.bmp")
    control_1.picture = pic
    (("control_1" is the ActiveX object, and picture is the property))
    How can I do the same with labview?
    Is there any example that sets the picture property of an ActiveX in run time?

    sealiker wrote:
    I am using an ActiveX object which needs a property "picture" as input. I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time. In VB, I can do:   dim pic As Picture pic = loadpicture("c:\test.bmp") control_1.picture = pic (("control_1" is the ActiveX object, and picture is the property))   How can I do the same with labview? Is there any example that sets the picture property of an ActiveX in run time?
    As
    far as I understand from the MSDN site, it seems that the Picture
    datatype is a specific VB only datatype. Most probably it is a handle
    (uInt32) value as far as other programs including LabVIEW are
    concerned, but there is no way that LabVIEW could deal with this
    datatype directly.
    If you can convert this datatype with some VB fucntions into a HBITMAP
    or HDIB then you could call some Win32 API functions to extract the
    relevant bitmap data from this common Win32 datatype and get somewhere
    from there. OR it maybe that VB itself has other functions to extract
    the bitmap data, color palette and other attributes of the Picture
    datatype. Don't expect LabVIEW to be able to deal with the Picture
    datatype directly though, this is really a proprietary VB thing.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for