Changing panels XY position via code ?

Hi
Here is Some info about my program.
i have a main panel on which i create about 15 child panels and each child panel has a canvas control on it.
i created a scrollbar which moves the xy position of each panel.
i could not use the standard panel scroll bar because it is does not allow the amout child panels that i need that is why im rotating the 15 panels.
Could someone please explain to me why when i change the childs panels xy position the display updates the panels position so slowly ?
and how could i speed this up?
Thanks
Shako
Help share your knowlegde

Hello,
Could you also post your code, so that we can see closely how you are implementing this? What version of CVI are you using? At what point does the time delay occur and how long is this delay? Note also this Knowledge Base:
Adding a Scroll Bar to a Canvas Control in LabWindows/CVI
http://digital.ni.com/public.nsf/allkb/33CBB49128DD6A1586256F7C0082EC96?OpenDocument
Thanks,
National Instruments

Similar Messages

  • Change DataSource of fields via code

    Hey there,
    is it possible to change the properties Name and FormulaName of the FieldObject programmatically (c#)? Both properties are readonly. We need to replace the fieldnames of many reports which contain a big count of fields. We don't want to do it in the designer, because this would be very time expensive.
    Is there a possibility to change the DataSource of the FieldObject programmatically? Or is it possible to remove fields and add new fields to the report (programmatically)?
    Thank you in advance.
    Kind regards from Germany
    Markus

    Hi Markus,
    No and maybe.... You can't change the reference of a specific field at runtime, the Auto-field Mapping function kicks in and it simply deletes the fields it can't find in the data source info.
    You can however clone the object, delete it and then make changes to the cloned object and then .Add to put the field back in place...
    See this page for starting points using RAS:
    NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Don

  • Via Code : Creating Org. Unit and Position and assignment of User ID to Position

    Hello,
    I am looking for code which will create Org. Unit and creates Position in it. Also the User IDs should be assigned to the Position via code.
    I do this via PPOC but would like to automate this process.
    Will appreciate your kind help.
    Thank you!
    Naina..

    Dear Naina,
    SAP has given the multiple option to create the units ( Org. Unit, Position, Job, cost center, etc). The best ways to use tcode-pp01 (Maintain object)
    Plan version- current Plan
    Object type-Org unit or Position or Job or other as per requirement
    infotype name- select object
    Time period :- 11.03.2014 to 31.12.9999
    then create- fill the required & save
    Example:- Creation of organisation unit
    Tcode-pp01
    Plan version- current Plan
    Object type-Org unit
    Time period :- 11.03.2014 to 31.12.9999
    infotype name-  Object (select)
    then create (F5)
    Object Abbration:- HR Department
    save
    After, system ask
    Relationship type -A002
    Type of related object- organisation unit (default)
    ID of related :- Give the eight digit number
    In the similar way, we can create other units.
    All the best!
    Regards,
    Rakesh

  • Changing the column position & width using Screen Variant..

    Hi Experts,
        Iam trying to change the column position and width for the standard transaction (eg. FB60 or VA02) using the transaction code SHD0 (Transaction and Screen Variant).
        Iam able to create and save the transaction and screen variant and i could see the check box options for table control like
        a. Auto Column Position
        b. Auto Column Width
         I tried checking and unchecking both the check boxes but iam unable to modify / maintain the column position and width.
         Please guide me in changing the column position and width.
       Thanks in Advance.

    Hi Mudit,
    Kindly go through this link below:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbac0b35c111d1829f0000e829fbfe/content.htm
    Hope it helps you
    Regrds
    Mansi

  • Open a draft report via Code

    How could I open an saved Draft report via API/UI.
    I have draft an report via API/UI and now I would show this report on Desktop/SAP
    I would open it via code
    z.B. application.forms.items("")
    because I get the Docnum of my before safed draft but It wouldn´t shown at the SAP now so I have to open it via code

    Sorry for my first Miss Understandable explanation.
    Ok let me explain the other times.
    I have a parked document, I want this now to open it via code (programming).
    I have this code today:
    programspeach: vb.net
    we assume we have a sales order and press now via code the menu option "Save as a parked document"
    ' to change the sales order in a parked document
    appl.ActivateMenuItem(("5907"))
    ' Information: MY_FormUID = the sales order before
    ' Change DocNum in DocEntry
    oRSTRDocData.DoQuery(("SELECT max(DocEntry) FROM ODRF WHERE DocNum=" & Value))
    appl.Forms.Item(MY_FormUID).Items.Item("txtDraft").Specific.Value = oRSTRDocData.Fields.Item(0).Value
    ' take the DocEntry
    Value = oRSTRDocData.Fields.Item(0).Value
    'open parked Document via DocEntry and let it show
    appl.Forms.Item(MY_FormUID).Items.Item("lnkDraft").Click(SAPbouiCOM.BoCellClickType.ct_Linked)
    ' Close the Sales Order before
    appl.Forms.Item(OLD_FormUID).Close()
    After this there is no Document opened, also not the parked Document
    So yet I have an parked Document but when I open the SBO again there is no Document Opened? When I do this prozedere via SBO there will be at least the parked Document opened.
    What do I wrong?

  • Stored Procedure parameter (@Carrier) used in report and can't be set via code

    I have a report that has regular Crystal parameters that I am setting correctly via code.  However, one report actually uses one of the database parameters from the stored procedure that the report was created from.  It is the only report like this and I'm using the same code in an attempt to set it's value.  Although no error is thown, if I look at the parameter value in the IDE it is set correctly, but the field on the report just shows up blank.  I have changed the way the report is created.  Previously, I used the report.export method to create the actual file via a stored procedure.  Now, I'm running the stored procedure first and creating a datatable.  This allows me to execute the SP only once to see if it has data, because only then do I want to create the actual report.  I'm using the SetDataSource method to pass the datatable into Crystal and then using the report.export method to create the report with data.  Everything seems to work, except this stored procedure parameter (@Carrier) is not actually being populated to display on the report.
    Not sure what to look at.  Any suggestions?
    Thanks.

    crpe32.dll is version 13.0.5.891.  This was developed in VS2012 and VB.NET.  I'm using ADO.Net to connect to a MS SQL Server database.
    MainReport.SetDataSource(DTbl)
    bRC = PopulateAllSubReports(MainReport)
    If Not bRC Then Throw New Exception("Received an error in PopulateAllSubReports.")
    bRC = PopulateCrystalParameters(MainReport, SP)
    If Not bRC Then Throw New Exception("Received an error in PopulateCrystalParameters.")
    'Actually create the output file.
    bRC = ExportData(MainReport)
    Private Function PopulateCrystalParameters(myReportDocument As ReportDocument, SP As ReportStoredProcedureCrystal) As Boolean
         Dim myParameterFieldDefinitions As ParameterFieldDefinitions = Nothing
         Dim myParameterFieldDefinition As ParameterFieldDefinition = Nothing, ParamValue As String = ""
         Dim bRC As Boolean, Param As SqlParameter = Nothing
         Try
         myParameterFieldDefinitions = myReportDocument.DataDefinition.ParameterFields
    '*********************Report Parameters***************************
         For Each myParameterFieldDefinition In myParameterFieldDefinitions
              myParameterFieldDefinition.CurrentValues.Clear()
              Select Case myParameterFieldDefinition.ParameterFieldName.Trim.ToUpper
              Case "@CARRIER"
                   If SP.DBParameters.ContainsKey("@CARRIER") Then
                        Param = SP.DBParameters("@CARRIER")
                        ParamValue = NullS(Param.Value).Trim
                        bRC = SetCurrentValueForParameterField(myParameterFieldDefinition, ParamValue)
                        If Not bRC Then Return False
                   End If                           
              End Select
         Next
         Return True
         Catch ex As Exception
         GmcLog.Error("ReportKey = " & Me.ReportKey.ToString & ", " & ex.Message, ex)
         Return False
         End Try
    End Function
    Private Function SetCurrentValueForParameterField(myParameterFieldDefinition As ParameterFieldDefinition, submittedValue As Object) As Boolean
         Dim currentParameterValues As ParameterValues = Nothing
         Dim myParameterDiscreteValue As ParameterDiscreteValue = Nothing
         Try
         myParameterDiscreteValue = New ParameterDiscreteValue
         myParameterDiscreteValue.Value = NullS(submittedValue).Trim
         currentParameterValues = New ParameterValues
         currentParameterValues.Add(myParameterDiscreteValue)
         myParameterFieldDefinition.ApplyCurrentValues(currentParameterValues)
         Return True
         Catch ex As Exception
         GmcLog.Error("ReportKey = " & Me.ReportKey.ToString & ", " & ex.Message, ex)
         Return False
         Finally
         myParameterDiscreteValue = Nothing
         currentParameterValues = Nothing
         End Try
    End Function
    Private Function SetDBSourceForSubReport(mySubReport As ReportDocument) As Boolean
         Dim myTables As Tables = Nothing, myTable As Table = Nothing, DTbl As DataTable, SP As StoredProcedure = Nothing
         Try
         myTables = mySubReport.Database.Tables
         For Each myTable In myTables
              Dim SPName As String = myTable.Location.Substring(0, myTable.Location.IndexOf(";"c))
              SP = New StoredProcedure(ConnectionString, SPName, CommandType.StoredProcedure)
              DTbl = SP.FillTable
              mySubReport.SetDataSource(DTbl)
              SP = Nothing
         Next
         Return True
         Catch ex As Exception
         GmcLog.Error("ReportKey = " & Me.ReportKey.ToString & ", " & ex.Message, ex)
         Return False
         Finally
         If Not SP Is Nothing Then SP = Nothing
         If Not myTable Is Nothing Then myTable = Nothing
         If Not myTables Is Nothing Then myTables = Nothing
         End Try
    End Function
    Private Function PopulateAllSubReports(myReportDocument As ReportDocument) As Boolean
         Try
         Dim mySections As Sections = myReportDocument.ReportDefinition.Sections
         For Each mySection As Section In mySections
              Dim myReportObjects As ReportObjects = mySection.ReportObjects
              For Each myReportObject As ReportObject In myReportObjects
                   If myReportObject.Kind = ReportObjectKind.SubreportObject Then
                        Dim mySubreportObject As SubreportObject = CType(myReportObject, SubreportObject)
                        Dim subReportDocument As ReportDocument = mySubreportObject.OpenSubreport(mySubreportObject.SubreportName)
                        Dim bRC = SetDBSourceForSubReport(subReportDocument)
                        If Not bRC Then Return False
                   End If
              Next
         Next
         Return True
         Catch ex As Exception
         GmcLog.Error("ReportKey = " & Me.ReportKey.ToString & ", " & ex.Message, ex)
         Return False
         End Try
    End Function

  • Set JCO CLient via code

    Hi All,
    I need to use the same WD for several R/3 clients.
    Is there a way that I could use several JCO reference and there for set the modeldata and the metadata reference that I need via code.
    Regards,
    Orlando Covault

    Hi,
    There are tow options for JCO creations:
    1: If you know at design time which JCO connections you want to use and that they are available on your system: create a Model for every connection.
    2: If you want to create these connections dynamically change the JCO connection everytime you call your model like this:
    IWDDynamicRFCModel model;
    model = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(ModelName.class);
    model.setJcoClient(connection)
    --> continue calling code.
    or:
    model.setSystemName(<<JCO ClientName>>)
    see: http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/modelimpl/dynamicrfc/IWDDynamicRFCModel.html
    Also you can refer the blog from Anilkumar Vippagunta at
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    regards
    amit bagati

  • Set slider path position via calc

    So I have a simple display icon (Icon title = Flash Movie
    Position Slider) object set with the following settings:
    Positioning = On Path
    Movable = On Path
    Base = 0
    Initial = 0
    End = 100
    I know how to get the current position using PathPosition or
    DisplayX, but how do I set it via code? I have tried using
    SetIconProperty for LocationX, BaseX, InitialX but none work. Other
    than just the user sliding the slider I want the slider to move on
    it's own during the flash video playing. I have the calculation
    down to set an X position based on the current frame, just cant
    find that magic setting to specify a value to the path to make it
    happen.
    PS: This is not using the WinCtrls slider just a basic
    Authorware path using a display icon.

    > Movie icon does not support swf flsh files.
    Yes I know.
    > All our videos are being converted
    > to flash so I must use a media icon and not a movie
    icon.
    The Flash Sprite help file will tell you how to get the
    equivalent of
    MediaPosition form a Flash movie. Open your Flash Sprite
    properties and
    press the Help button on the properties dialogue.
    >
    > The only problem I am having now is setting the path
    position does not
    > work on
    > a publish to web project only on the exe.
    >
    What's your code?
    Steve
    EuroTAAC eLearning 2007
    http://www.eurotaac.com
    Adobe Community Expert: Authorware, Flash Mobile and Devices
    My blog -
    http://stevehoward.blogspot.com/
    Authorware tips -
    http://www.tomorrows-key.com

  • Change the logo position

    I have copied the script  QM_INSP_RESULT into ZSCRIPT in this Zscript
    I Want to change the logo position in the main window..
    Please help me on this how to change the position of the logo...
    Thanks in advance...
    Dasaradh

    Hi,
    you can position image using program RSTXLDMC,
    instead of going for se78 ,where you don't have facility
    for postioning your image
    These are the steps to be followed for uploading graphics in R/3 system
    1. First save the file as BMP
    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
    make it Zoom as 100% and save as *.TIFF
    3. Open SE38 and execute program RSTXLDMC
    4. Give your TIFF file path name
    5. Select Bcol (for Color)
    6. TEXT ID will be ZHEX-MACRO-*.
    7. Inplace of * write your own logo name (ZCOMPANYLOGO)
    8. Execute the program
    9. Now Goto SE71 create your ZFORM
    10. Create logo window
    11. Goto text element of logo window
    or
    In 4.6x :-
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    Please note that in 4.6c onwards, you can also used Windows Bitmap file ( .BMP).
    If you find it useful, please reward me for the same.
    Regards
    Nilesh

  • Change paper type (A4) via JavaScript

    Hi all,
    I want to change the paper type via Java Script to A4.
    The hierarchy:
    data  -->pageSet -->page1 (A4)
    Is this the right syntax, if I want ot switch the page1 to A4? ...and which "Event" should I use? --->initialize?
    data::initialize - (JavaScript, both) 
    xfa.data.pageSet.page1.medium.stock = "A4";

    Hi
    Are you trying to change the size on the fly for different values for instance.
    Or is this simply ensureing the page is formatted correctly when the document is opened?
    I could not get your code to work
    but this code appears to work OK
    xfa.form.form1.pageSet.pageArea.medium.stock = "A4";
    Hope this helps
    Graham Spaull
    DubDubDubDesigns.co.uk

  • Changing the Registration point via AS3 . how?

    hello,
    is it posseple to change the Registration point via AS3 ?
    Best Regards,
    Crimson

    The Attach Code window isn't working for me on this so I
    pasted the code into the message. Hope the formatting remains
    reasonable.
    public class HomePage extends MovieClip {
    public var frenchieReal:Swimmer; //Swimmer extends
    MovieClip; contains image of French Angel
    public var frenchie:Sprite; //To offset regisration point of
    frenchieReal
    public function loadStage() {
    var timer:Timer;
    var wayPoints:Array;
    //Establish timer for swimmers
    timer = new Timer(100, 0);
    //Create new swimmer supplying: image path, width, heigth,
    and initial x and y location
    frenchieReal = new Swimmer("Photoshop/oceanswimmer.png", 57,
    41, -24, -28);
    frenchie = new Sprite();
    frenchie.x = 244;
    frenchie.y = 532;
    this.addChild(frenchie);
    frenchie.addChild(frenchieReal);
    frenchieReal.setTimerListener(timer);
    //Set waypoints for swimmers
    wayPoints = [[230, 530],
    [240, 520],
    [250, 500],
    [260, 480],
    [298, 480],
    [358, 540],
    [368, 544],
    [388, 520],
    [398, 495],
    [404, 475],
    [420, 500],
    [458, 545],
    [528, 550]];
    frenchieReal.setPath(wayPoints);
    package {
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.utils.Timer;
    import flash.net.*;
    import flash.display.*;
    public class Swimmer extends MovieClip {
    private var path:Array;
    private var pathLength:uint;
    private var pathLocation:int;
    private var loader:Loader;
    private var intercept:int;
    public function Swimmer(imagePath:String, w:uint, h:uint,
    xx:uint, yy:uint) {
    var urlRequest:URLRequest;
    this.x = xx; //Transaltion offsets for image MovieClip (eg,
    -24 and -28)
    this.y = yy; //Image is visible if these two values are
    nonnegative
    this.loader = new Loader();
    this.addChild(this.loader);
    urlRequest = new URLRequest(imagePath);
    if (urlRequest != null) this.loader.load(urlRequest);
    //Sets an array of waypoints
    public function setPath(p:Array) {
    this.path = p;
    this.pathLength = p.length;
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y;
    public function setTimerListener(t:Timer):void {
    t.addEventListener(TimerEvent.TIMER, timerListener);
    //this.parent in timerListener is the Sprite object to which
    image MovieClip is parented
    function timerListener(e:TimerEvent):void {
    var i:int;
    var iMinus1:int;
    var xx:int;
    var y1:int;
    var y2:int;
    var rise:int;
    var run:int;
    var rotationAngle:int;
    if (this.path != null) {
    //Move to next segment?
    if (this.parent.x >= this.path[this.pathLocation][0]) {
    this.pathLocation++;
    //Go back to first segment?
    if (this.pathLocation == this.pathLength) {
    this.pathLocation = 1;
    this.parent.x = this.path[0][0];
    this.parent.y = this.path[0][1];
    this.intercept = -this.parent.y; //Minus y to translate
    everything to lower quadrant
    //y = ax + b
    //y = ((path
    [1] - path[i-1][1]) / (path[0] - path[i-1][0])) * this.x +
    path[i-1][1]
    i = this.pathLocation;
    iMinus1 = i - 1;
    this.parent.x += 2;
    xx = this.parent.x - this.path[iMinus1][0];
    y1 = -this.path[iMinus1][1];
    y2 = -this.path
    [1];
    rise = y2 - y1;
    run = this.path[0] - this.path[iMinus1][0];
    this.parent.y = ((y2 - y1) / (this.path
    [0] - this.path[iMinus1][0])) * xx + intercept;
    this.parent.y = -this.parent.y;
    rotationAngle = -(180/Math.PI) * Math.atan2(rise, run);
    this.parent.rotation = rotationAngle;
    trace("rise = " + rise + " run = " + run + " rotationAngle =
    " + rotationAngle + " Intercept = " + this.intercept);
    trace("x = " + this.parent.x + " y = " + this.parent.y + "
    rotation = " + this.parent.rotation);

  • VBA positive return code

    I'm getting a positive return code of 4 on this vba statement. Any ideas? I'm using v11.1.1.3 (converting some automated code from 9.3.1).
    HypConnect("[DOR_Driver_Current_v11.xls]SV", Username, pwd, "DOR_Excel") DOR_Excel is a My Favorites connection I added through the datasource manager.
    Thanks!

    Hi Matt,
    Thanks for the reply. I am making the HypConnectToAPS first, then doing the HypConnect. I've been struggling with this for a day. I'm guessing I'm missing something with the changes made to the datasource manager (9.3.1 to v11.1.1.3 we are migrating to). Here's a few more specifics to see if you see where I may be going wrong.
    1) I manually connected to the APS in Excel
    2) I added the database connection to My Favorites
    3) I changed the name in My Favorites to "DOR_Excel"
    As you can see in the code below I'm using that name in my HypConnect statement. I'm getting a zero on the APS connection and still the 4 on the HypConnect.
    T = HypConnectToAPS()
    X = HypConnect("SV", username, pwd, "DOR_Excel")
    I also tested my username and password. I was able to open a blank worksheet, connect, and perform ad-hoc analysis on the database connection I'm trying to connect to.
    Thanks for any help or direction you may can provide.

  • Change Document Read Positions

    Hi Gurs,
    I get an error message in the FM "Change Document Read Positions"
    which is used in FB03 the error message is
    "System error: Error in routine POSITIONEN_LESEN RC
    = 1"
    CDPOS table does not find a value for certain changenumber and hence the select query returs 0 sy-dbcnt
    which is why I get this error message ..
    could you help me in undersatnding where does this CDPOS gets populated and why is this so crucial here and how can I rectify this probs .
    your inputs are greatly appreciated and will be highly rewarded by me ..
    Thanks!!
    Aryan
    Message was edited by: Aryan T

    Hi,
    refer the OSS Note<b> 422547</b>
    Symptom
    When you display all change documents in the customer or vendor master data, the system generates error message F4308 "System error: Error in routine POSITIONEN_LESEN RC=1".
    Additional key words
    FD02, FK02, XD02, XK02, VD02, MK02,
    FD03, FK03, XD03, XK03, VD03, MK03
    Cause and prerequisites
    There are several entries in the change document header table (CDHDR), however, there are no corresponding change document items (CDPO). This may be due to report SAPF019 ("Deleting Master Data") which, in error, only deleted line item data (refer to Note 0134293).
    These change documents are old documents which were created when you used Release 4.0.
    <b>Solution</b>
    Execute report <b>YDELCDHD</b> of Note <b>134293</b> in the test mode and check whether the error is actually due to this problem. If so, execute report <b>YDELCDHD</b> in the update run.
    Source code corrections

  • Ultiboard v5.72 via code default back to original values – help please!

    Hi
    I’m prototyping a fairly simple double sided board. I’m using the internal single pass auto router. I’m quite happy to have vias in the design but they need to be fairly large. Consequently before beginning the auto router I modified via size 0 to be :
    X1=40mil X2=40mil Y=80mil RAD=40mil Clear=40mil Drill=40mil      ‘apply’
    After entering the sizes I get a warning window “you have changed the via sizes – please verify your production class to achieve best (auto) routing
    I then click on ‘ok’ to acknowledge the warning. The values I have changed at this moment are still the ones I chose. I then click auto route../..production class 4M and it begins to route but does not use the dimensions of the via code I modified, if fact when I interrogate the via sizes after the route is complete, they have defaulted back to the original values !!
    Have I not set some parameter or sommat? Any help would be appreciated
    Regards ……. acekiddy

    I say this not to be a jerk, but I don't think your going to get any help on this. Even 3 years ago they were up to version 7..........as of todays date, its version 10.......and in a month or two it will be version 11.......I doubt there is any support for 5.72.
    What does the help file say about drill hole and via diameters? Those archaic bitmap autorouters sucked big then, and still do. Since version 8 its vector based and a lot more robust. I would suggest you download the eval 10 and give that a whirl.....just a thought. I haven't used 5.72 in over 9 years......sorry I can't be of more help.
    Message Edited by kittmaster on 01-10-2008 11:35 AM
    Signature: Looking for a footprint, component, model? Might be here > http://ni.kittmaster.com

  • How can I change a page position in a large document?,

    How can I change a page position in a large document?

    Question asked and answered many times !
    Insert a section break just before the page to move.
    Insert a section break just after the page to move.
    Select the page's thumbnail
    cut
    Insert a section break where you want to insert the page.
    paste
    The required infos are available in Pages User Guide which isn't delivered to help helpers to help you.
    Yvan KOENIG (VALLAURIS, France) mercredi 5 octobre 2011 14:33:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

Maybe you are looking for