How to programmatically position an element in a cluster

Hello
I was wondering how I can programmatically position an element (e.g. numerical control) which is a part of a cluster.
My goal is to position the control to:
Case 1: Bottom Center of the cluster
Case 2: Bottom Left of the cluster
Thanks.
v-k
Solved!
Go to Solution.

Hi v-k
You can do it using property nodes of the control.

Similar Messages

  • How to define current flow element and more

    Hi all. I've just started with text layout and I have a lot of questions, will be thankfull if smbdy can help me.
    1. How can I get the flow element according to mouse position over it, for exmple highlight the paragraph element on mouse over.
    2. How to implement drag&drop behavior to text flow elements, for example for images.
    3. How can I get the element in which the blinky "add text here icon" is located?
    Thanks.

    1. How can I get the flow element according to mouse position over it, for exmple highlight the paragraph element on mouse over.
    Probably the most efficient way is to listen for the updateComplete from the TextFlow, and when it comes walk the flowComposer's TextFlowLines for each paragraph to get the paragraph bounds. Once you have a list of bounds, doing the roll over on mouse move should be very quick.
    2. How to implement drag&drop behavior to text flow elements, for example for images.
    Good question. The container that holds the text will be getting events for mouse down, mouse move, etc. and handles them by passing them along to the interactionManager (class name SelectionManager). The interactionManager handles them by making a text selection. If you want to handle the mouseUp by inserting the image at the selection, that should be pretty simple. There's a method for that in IEditManager (the interactionManager is also an IEditManager), so you can just call interactionManager.insertInlineGraphic.
    3. How can I get the element in which the blinky "add text here icon" is located?
    Easiest way is to call
         ElementRange.createElementRange(textFlow, textFlow.interactionManager.absoluteStart, textFlow.interactionManager.absoluteEnd);
    That creates an element range which will have the leaf and paragraph elements in the selection.
    Hope this helps,
    - robin

  • Flex dynamic positioning of elements

    Hi,
    I'm wondering how to dynamically position something on a canvas. I couldn't seem to find any resources on this when I used Google, so I apologise in advance if this topic has been kicked into the ground. To give an example, consider the following:
    I have a canvas thats 100 in width; we'll call this canvas "myCanvas".
    I have items coming out of my database which create checkboxes. Each checkbox has a description (the label field of the checkbox), and these vary in length (e.g. the first item might have a label thats 23 characters in length, the second may have a label thats 50). I'm currently accessing the length of the label by using "myCheckbox.label.length".
    So to recap, we have "myCanvas", and many "myCheckbox" elements being added to the canvas.
    I'm trying to make it so that myCheckbox will go from one side of the canvas to the other side, and if there's not enough room, it will dynamically drop down to the next available position in the y-axis (plus a spacer of 10px or so between the rows).
    Can someone recommend a good example, blog posting, or article of this type of functionality please? I'm new to working with dynamic items in ActionScript, so I apologise again if this seems basic.
    Thanks in advance.

    Hey,
    If you're coding to Spark you can try something like this ... sorry not sure how to format nice looking code in this thing
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="application1_creationCompleteHandler(event)" xmlns:local="*">
    <fx:Script>
      <![CDATA[
       import mx.events.FlexEvent;
       import spark.components.CheckBox;
       protected function application1_creationCompleteHandler(event:FlexEvent):void
        for (var i:uint=0; i<50; i++)
         var newCheckBox:CheckBox = new CheckBox();
         newCheckBox.label = i%2==1? "this is some text": "this is some longer text";    
         myGroup.addElement(newCheckBox);
      ]]>
    </fx:Script>
    <s:Scroller width="100%" height="100%" >
      <s:Group id="myGroup" width="100%" height="100%">
       <s:layout>
        <s:TileLayout horizontalGap="50" verticalGap="10" clipAndEnableScrolling="true"  />
       </s:layout> 
      </s:Group>
    </s:Scroller>
    </s:Application>

  • How to programmatically mimic the user action of selecting a button ?

    I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
    I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
    The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.

    Kiran,
    Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
    So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
        uiThing.initUI(yourBean);And in the initUI method you have:
        public void initUI(DataBean data) {
             cbxBlue.setSelected(data.isBlue());
             txtLastName.setText(data.getLastName());
             // etc...
        }If you take that general approach, you'll find you don't need to simulate user actions.
    In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
         public void actionPerformed(ActionEvent e) {
              if (e.getActionCommand().equals("BlueButton"))
                  this.setBlue();
              //... etc.
         private void setBlue() {
             // whatever
         // somewhere else in the code
         private void someProcess() {
              // other work
              // other work
              if (someCondition) this.setBlue();  // rather than forcing an action event
              // other work
              // other work
         }

  • How to maintain position of cursor while in split screen view?

    When I'm in split screen view, how do I position the cursor at a specific point on the code side and then shift focus to the design side without relocating the cursor?

    Sorry, but the key phrase I used was "shows up". If you can't see it, you don't feel comfortable that it IS where you want it to be.
    Sure it works the way you said, but the comfort level of seeing it in the right place is missing.
    Another way of positioning elements in relation to tags is to use the Tag Selector at the bottom of your Document Window. Click the tag name in the Tag Selector, and the entire Tag and contents is highlighted. Then either strike the left arrow (to go before the tag) or the right arrow (to go after the tag), and you will be precisely positioned vis-a-vis the tag.
    Z

  • Position GUI element in runtime

    Hi All
    I would like to positioning popup window relativ to a GUI element (InputField). How can I read the element position?? That is possible, the generic value helper are positioned relativ to linked element. I would like pisitioning my popup window similiary but i dont know how

    Hi,
    you can try following:
    IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("<WINDOW_NAME>");
    IWDWindowManager manager = wdComponentAPI.getWindowManager();
    IWDWindow _window = manager.createWindow(_windowInfo, true);
    ((IWindow)_window).setWindowPositionControl( "<CONTROL_ID>" );
    <CONTROL_ID> - "<COMPONENT_ID>.<VIEW_NAME>.<UI_CONTROL_ID>" (for example "PFCBCNPF.POSearchCriteriaCV.SearchButton")
    To get it you need to view HTML sources of your generated view in browser, for example "<a ... id="PFCBCNPF.POSearchCriteriaCV.SearchButton"...>"
    pay attention that it is NOT documented feature (setWindowPositionControl method) and you are using it at your own risk.
    Regrads, Maxim R.

  • How to delete elements from a cluster?

    Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
    Solved!
    Go to Solution.
    Attachments:
    test 1.vi ‏16 KB

    Bombbooo wrote:
    What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
    Try this, for example. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test1MOD2.vi ‏9 KB
    SelectFlowOrPressure.png ‏7 KB

  • How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    How do you position tags in a spreadsheet? Can I eSign more than one tab in a spreadsheet?

    Using text tags
    https://workspaces.acrobat.com/app.html#d=Bi-SZ3cbVCHwiWBBp-7G7g
    but spreadsheets are quite difficult to predict as they don't typically have a page size defined. If you can do this in Word it'll be easier.
    or convert to pdf before uploading to EchoSign.
    You an upload a spreadsheet with multiple tab and place tags on each tab and all will get converted.

  • How can I install photoshop elements on a 64 bit windows system?

    How can I install photoshop elements on a 64 bit windows system?

    You just use the appropriate install disk/ download. See this:
    Install Premiere Elements, Photoshop Elements
    Or are you asking about some specific procedures?
    Mylenium

  • How can I use photoshop Elements 8 to make a DVD to play on a regular TV-DVD? [was:DVD-CD-r]

    How can I use photoshop Elements 8 to make a DVD that will show on a regular TV-DVD set-up

    You can't do this in PSE by itself. I'm assuming you have windows, so output your slideshow as a wmv file and then use Premiere Elements to finalize the disc, if you have that. If not, use whatever you do have (if you can burn DVDs, you have software). Even windows dvd maker will do this.

  • How can I create an element in the model node?

    Hi, Experts,
    I create a model node that name is containerNode in the contxt. Cadinility is: 1..n
    I write the code in the method:
      private String getDataForOutputTable( IWDNode wageTypePayslip, IWDNode containerNode ){
           String betrgSumStr = "";
         int index = 0;
         Vector containerVector = new Vector();
         int size = wageTypePayslip.size();
         IWDNodeElement element = containerNode.createElement();// The system report error when I run the application.
         BigDecimal betrgSum = new BigDecimal( 0 );
    I try to create a element in the containerNode, But the system report error when I run the application.
    java.lang.IllegalArgumentException: model object must not be null
         at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:66)
         at besuretech.com.wdp.IPrivatePayDataDispView$IOContainerElement.<init>(IPrivatePayDataDispView.java:1537)
         at besuretech.com.wdp.IPrivatePayDataDispView$IContextNode.doCreateElement(IPrivatePayDataDispView.java:88)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:884)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElementInternal(Node.java:1351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createElement(Node.java:1370)
         at besuretech.com.PayDataDispView.getDataForOutputTable(PayDataDispView.java:251)
         at besuretech.com.PayDataDispView.getAllData(PayDataDispView.java:196)
         at besuretech.com.PayDataDispView.onPlugPayListViewIn(PayDataDispView.java:154)
         at besuretech.com.wdp.InternalPayDataDispView.wdInvokeEventHandler(InternalPayDataDispView.java:391)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    How can I create an element in the model node ?
    Best regards,
    tao

    Hi,
    You need to execute the model before creating the element.
    Regards
    Ayyapparaj

  • How do I move my Elements photo files to a new computer keeping the catalog & version sets?

    How do I move my Elements photo files to a new computer keeping the catalog & version sets?

    I recommend you ask that in the PSE forum. I'm sure there is some import/ export hocuspocus involved...
    Mylenium

  • How to color the text  elements in script?

    how to color the text  elements in script?
    byeeeee
    plz send the answers

    Hi,
    Please go through my blog to know how to do color printing in SAP scripts.
    White Paper on 'Color Printing in SAP Scripts'
    Regards,
    Sireesha Ch

  • How to add a new element to a model node in the view controller?

    View Context
        myNode
             attri1
             attri2
    myNode is a web service model node. How to add a new element to this node?
    Regards,
    Hui
    Edited by: Hui Wang on Feb 15, 2008 12:05 PM

    Sudhir Gorantla wrote:>
    > Hi,
    >
    > myNode
    > attri1
    > attri2
    >
    > IMyNodeElement ele=wdContext.myNode().createMyNodeElement();
    >
    > ele.setAttri1("");
    > ele.setAttri2("");
    >
    > wdContext.nodeMyNode().addElement(ele);
    >
    > Regards,
    > Sudhir
    Hi we need a model as an input parameter when creating a element for a model node. How to get the instance of the model?
    Regards,
    Hui

  • How to instantiate a DOM Element in Forms to call Web Service?

    Hi All,
    I need to call a Java Class that has been converted into PL/SQL in order to run a Web Service.
    The PL/SQL function looks like this:
    -- Method: GetPIValue (Lorg/w3c/dom/Element;)Ljava/util/Vector;
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPI');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Lorg/w3c/dom/Element;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('org/w3c/dom/Element'));
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    where "a0" is of org.w3c.dom.Element argument that is passed into the function as an obj_java.jobject.
    How can I create an ELEMENT object and call this function by passing this Element and its related Attributes. I have tried the following so far but I am getting this ERROR "Unable to call out to Java, Argument 1 can not be null.
    Element.setAttribute(param_1,
    'piTAG',
    'A3TI006.pv');
    It seems to be Complaining about "param_1" and it CANNOT BE NULL. How can I initialize or Create such an Object in Oracle Forms?
    Does any one have a Sample on how to Create an Element Object in PL/SQL?
    Your help is much appreciated.
    Regards,
    Baz

    Hello,
    I am sure that Jan is certainely THE expert. It would be so great if he would find time to blog a litttle bit on this topic, that generates, in fact, a lot of questions ;D
    Francois

Maybe you are looking for

  • Power Mac G5 DP1.8GHz - Bad Logic Board or Power Management Issue?

    I have a Power Mac G5 DP1.8GHz/1.5GB/80GB which I bought non-working. It has not yet been disassembled or examined by a certified tech. This is it's issue (which replicates): the computer powers on. It makes a single warning tone, then the LED flashe

  • Vendor confirmation tab update using idoc ORDERS02

    Hi all, This is the first time i am working on idocs. I have a requirement where i have to update the vendor confirmation tab in ME22n(Purchase order), I am using IDOC type ORDERS02. and i am using segment E1EDP20 to update quantity,date and referenc

  • Problem with "pacman -Syu"

    [root@laptopT23 vasco]# pacman -Syu hi! I wanted to upgrade my sistem, but after the command "pacman -Syu" :: Synchronizing package databases... kernel                     0.2K  837.1K/s 00:00:00 [#####################] 100% current is up to date ext

  • All templates open (by default) in spanish.

      HI, I just bought the pages app and am having trouble changing the templetes to english. I've tried using the inspect>text>more tabs to change the language, but it doesn't seem to do anything. I'm wondering if theirs a bug with this app or am I mis

  • Where is the auditd configuration file?

    Acorrding to a documentation here, there is a file called /etc/sysconfig/auditd. It's the configuration file of auditd. But : jack ~ $ locate audit | grep etc /etc/audit /etc/libaudit.conf /etc/audit/audit.rules /etc/audit/auditd.conf not such file o