HorizontalCenter and X position

hello
i have given the horizontalcenter and verticalcenter 0,0 to
a image for proper working of zooming image.
but i am facing difficulties in rotation and antirotation it
is not taking originX and originY
here is the cide

Check out the next_navigation_item option for the get_item_property procedure. If you use this you can do the process without having to navigate from one item to the next.
You can do something like this (untested) to move and resize the items (other than the first in the block):
PROCEDURE move_and_resize(p_item IN ITEM, p_width IN PLS_INTEGER) IS
  prev_item ITEM := Get_Item_Property(p_item, PREVIOUS_NAVIGATION_ITEM);
BEGIN
  Set_Item_Property(p_item, WIDTH, Get_Item_Property(p_item, WIDTH) + p_width);
  Set_Item_Property(p_item, X_POS, Get_Item_Property(prev_item, WIDTH) +
                                   Get_Item_Property(prev_item, X_POS));
END move_and_resize;
move_and_resize(myitem, -30);

Similar Messages

  • HorizontalCenter and verticalCenter

    Hi all, how do I get the horizontalCenter and verticalCenter
    values of a container after I drag and drop the component in the
    container?
    Any help is very much appreciated. Thanks.

    I posted the example earlier in this thread.
    The problem is the objects don't stay in one place or stay one size.  They change sides and resize.  Sticking them in groups seems to limit the ability to smoothly transition them to new positions and sizes.
    Picture two objects, one left side and one right.  The objects always need to be centered in their side, even as they change size or *switch* sides.  They also need to automatically use all available space on their side while maintaining an aspect ratio (like 4:3, 16:9, etc).  So if the user resizes the browser, aspect ratios must be maintained as the items resize.
    You as the user have the option to do the following:
    1.  Have the objects switch sides (reverse)
    2.  Have the objects resize (left side gets big and right gets small, or the opposite, or have the two size equally)
    3.  Have one object disappear and the other take over full screen
    4.  Have the other object disappear and the first one take over full screen
    These movements are animated with easing transitions.  Centering them within a column is as simple as changing the horizontalCenter position with respect to the column.  How would you do that with groups? 

  • Postback and Alert position

    Hello,
    I'm new to JSF so this is probably a silly question. I'm developing a web-app in Netbeans using the Woodstock library,
    and I'm having difficulty using the Alert component. To be exact, I want to implement a 'basket' functionality where the user selects rows from a table (by clicking on the last column which is filled with a button) which are then added to the basket showed on the page where the button's action navigates to. But when the user tries to add a row which is already in the basket I want an Alert component to show up and display that error. So I've added an Alert component to the page but with setVisible(false) and when the duplication occurs (which is detected inside the action method of the button of each row) I use setVisible(true) and return null to re-display the same page. The problem is that the table is not re-positioned a little bit lower than the Alert component, thus ..cutting the Alert component in half..
    Any ideas?
    Thanks in advance,
    Antony

    I am not aware of a way to do that. There is no property for position for alerts. You can of course write your own alert functionlaity using a window and set the x and y positions of the window with the set_window_property built-in.

  • How do I convert the single x and y coordinates returned by a CWGraph Click event to the Cursor X and Y Positions?

    I am trying a work around for another problem.
    cwCSnapNearestPoint does not give me a CursorDown event (TrackMode = cwGTrackDragCursor). I need to know when the user has clicked on a Cursor. I need to figure out when the user has clicked on a cursor.
    The click event gives you coordinates as "Single" which are an OLE_XPOS_PIXELS. How do I convert to the Cursor coordinates (or vis a vis)?
    Or better yet is there another way to figure that a cursor has been clicked on (while using cwCSnapNearestPoint and TrackMode = cwGTrackDragCursor )

    Here are a couple potential fixes for the problem. If you are dealing with cursors on the graph, I would look into CursorChangeEvent, CursorMouseDown, CursorMouseUp, and CursorMouseMove. The ChangeEvent is triggered upon repositioning of the cursor. MouseDown triggers on the depression of a mouse button on a cursor, while MouseUp triggers on the button's release. MouseMove is triggered when the mouse is moved over a cursor. These each give X and Y positions in the arguments. If you used these and then made a Sanp to nearest point, you should have the coordinates before you sanpped to the point.

  • Will play count and playhead position sync back to iTunes?

    I have a bunch of smart playlists that contain all the unplayed episodes of my favorite podcasts. If I drag these onto the Shuffle, will the play count and playhead position from my Shuffle sync back to iTunes?
    It seems like the answer is no -- this is really a one-way copy to the Shuffle, and not a "sync".

    The iPod shuffle is supposed to maintain a "played" flag for played tracks. I don't know if podcasts will work the same way as normal tracks, but I can't think of a good reason why they wouldn't. Having said that, after the iTunes 8.1 update, my shuffle's marking the wrong tracks as "played" and leaving the actually played tracks unmarked, so until the iTunes team comes up with a fix for all the bugs they introduced in that update, anything goes.

  • How to set the X-position and Y-position

    I started an application but was struck due to a problem.
    The problem was : I was unable to set the X-position and Y-position in the desired place... Any one who can help please help me to continue my application......
    I wanted to set my choice group elements in the center of the screen.. help me plz....

    You want to change to x/y position of what? The main frame?
    If it is the Frame class take a look into the CDC/PP specification:
    "An implementation may prohibit resizing of Frames by a user. In such a case, attempts to make any Frame resizable will fail silently"

  • Adjust front panel to screen size and re-position objects on different systems automatically

    Hello, i have designed a vi that contains 5 led's placed at the 4 corners and center of the front panel which occupies the entire screen. However, this vi is to be used on different systems having different screen sizes. But on every screen, i'll need the front panel size = screen size and the led's to  be placed to the centers and corner of this new screen size automatically without any manual operations and positioning bieng done every time. Will the resize option perform this task completely or do i have to go for some other techniques?
    Solved!
    Go to Solution.

    As far as I know, what you want is not easy to do but it is doable but you have to programmatically do it (no Labview setting). Here is an example for only 2 LEDs but I suppose that you will be able to make it work for your other LEDs.
    This VI maximizes the front panel and then positions the 2 LEDs in the center and top right corner upon running. The LEDs are positioned according to their own top left  corners, not according to their centers.
    Marc Dubois
    HaroTek LLC
    www.harotek.com
    Attachments:
    Position LEDs.vi ‏14 KB

  • Can we have 3 way vertical toggle switch, with unstable position at top, neutral position in center and stable position at bottom. the shape of the switch should be same as that of vertical toggle switch.

    can we have 3 way vertical toggle switch, with unstable position at top, neutral position in center and stable position at bottom. the shape of the switch should be same as that of vertical toggle switch.

    Avon,
    You've asked the same question and received several replies in two recent threads here and here.
    Rather than start a third thread, it would be best to just respond in one of them with details as to your problems with the proposed solutions (e.g. use of picture control).
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."

  • Control horizontal and Vertical position of a line ..

    Hello,
    triying to fulfill the requirments on the diagramm of a dashboard, i need to control the vertical and horizontal position of a Line (for example). depending on a calculated formula the line should be 10 mm from Top and 10mm from left (for example).
    Do anybody have an idea how realize it .. ?
    Thanks

    If there is just two positions: just make two lines and flip the visibility.
    If there are multiple positions: make a line chart. Do not show the markers and remove all further stuff (no mouseovers, axes gone, backgrounds gone etcetera) and just add a series. Now change either the scale of the axes according to your distance thresholds or change the value of the datapoints.

  • I want to switch dashboard and desktop positions when I touch the trackpad by 3 fingers and go up. Is there anyway to do that?

    I want to switch dashboard and desktop positions when I touch the trackpad by 3 fingers and go up. Is there anyway to do that?
    I tried to drag and drop but unfortunately that didn't work as well.
    I am using mac pro without retina.

        Ambersikes17, we don't want you to cancel your service. Let's get your phone working properly. Are you using the original charger that came with the phone? If so, does it the phone respond to the charger if it is positioned in a different manner?
    Have you noticed if the freezing occurs with certain actions like messaging or using an application? Are these issues that you have had with all of the devices or just your current phone? Have you tried using your phone in Safe Mode? http://vz.to/1d0SZSq
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • The code to set focus and cursor position fails in a mobile browser

    In two previous discussions (http://scn.sap.com/message/15176399 and http://scn.sap.com/message/15205348) I received help on how to set the focus on an OpenUI5 mobile input field and then how to position the cursor at the end of any text that might be in that field.
    That all works well in desktop browsers (Chrome, Firefox and IE10).
    However that same code seems to fail when I test it on browsers on mobile devices. At first I thought this was working in Chrome on an iPad but now it does not (could our taking new OpenUI5 code recently affected that?). I do not think I have ever see this work in Chrome on a, Android tablet.
    Has anyone had success setting the focus and cursor position on a mobile input field running in a mobile environment?

    Wasn't sure where to turn with this problem. There is talk on the web that there is a problem in Chrome on Android and that this will be fixed in version 37. We I get that version I will try and update this post.

  • Tree control's nodes and ites position

    Hello,
    Is there a way to get tree's nodes and items position,or
    get it by ElementVisualizationMode and Hit event ?
    Thanks,
    Assaf

    Hi
    Using the new features, and I think I have found a bug that I was wondering if anyone else can comment on.
    GetNodeLeft(BSTR key) ... perfect
    GetNodeTop(BSTR Key) ... perfect
    GetNodeHeight(BSTR Key) ... perfect
    BUT
    GetNodeWidth(BSTR Key) ... returns weird values, except for the first item in the tree.
    The function then returns what seems to be:
    (Control Width - (Height * Absolute Position))
    The deeper one goes into the tree, the smaller the width becomes ...
    Surely this is a bug ....

  • Changing the horizontalCenter and verticalCenter of image

    I have a Image that is vertically and horizontally centered.  I have a button that makes the image rotate on it center point when it is hit.  when I drag and drop the image and hit the buttton again the point stays in the same place so the image rotates wide.  Is there a way to move the horizontalCenter and verticalCenter when I drag and drop the image?

    This is no easy task!
    The simpler of these two request would be the brightness.
    To make a color brighter would involve shifting the color value in RGB space toward white (255,255,255). This shift in color values can not be a fixed amout for all three components (RGB) but should be scaled based on the original color and its distance in color space from white.
    I believe brightness will be the easier part because it involves only comparing a single pixel color with white and adjusting.
    Contrast is more complicated because it will involve shitfting some of the colors toward white and others toward black.
    So...
    The image Toolkit just may be worth it cost!
    Ig you write this yourself, please share what you find. The world of images and color are both s
    ubjects that interest me.
    Trying to help,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Data pump for HR Jobs and HR positions for v11i

    I am trying to use Datapump (v11i/11.5.2)
    to load the data for HR Jobs and Hr Positions. I am loading HR_PUMP_BATCH_HEADER and HR_PUMP_BATCH_LINE TABLEs with records having required valid values but I am getting error. I have succefully loaded the employee data using same method before.
    Have anybody done this ? PLase help.
    null

    I got the below from Metalink.
    Pl. see whether it is helpful for you, since I have little knowledge about HRMS.
    The HR_PUMP_BATCH_LINE_USER_KEYS table must be seeded with value in order for the package that follows to work. In some cases, the user must provide this value.
    I ran into this problem when trying to run the create_job_requirement API through the Data Pump. Within my PL/SQL block, this is how I passed the value to my variable:
    pv_id_flex_num_user_key := sel.sun_job_id| |sel.name| |sel.job_requirement_id| |sel.id_flex_num| |':ID FLEX NUM USER KEY';
    I then performed the following after calling the insert_batch_line procedure and passing all the parameter values:
    SELECT hpbl.batch_line_id,
    coj_hr_ci.devl_seq_s.nextval,
    coj_hr_ci.devl_seq_s.nextval
    INTO v_batch_line_id,
    v_sequence1,
    v_sequence2
    FROM hr_pump_batch_lines hpbl
    WHERE hpbl.pval058 = pv_id_flex_num_user_key;
    INSERT INTO hr_pump_batch_line_user_keys(batch_line_id,
    unique_key_id,
    user_key_id,
    user_key_value)
    VALUES(v_batch_line_id,
    50141,
    v_sequence2,
    pv_id_flex_num_user_key);
    null

  • How to show x and y position on a xy graph??

    Hi,
    I am dealing with a project that monitors the x and y position on a touch screen. The touch screen interpretes the position as 4 voltage outputs from its 4 corners, and by mathematical manipulation, we can now convert them back to the x and y positions. Then we want to plot these x and y positions on a xy plot, and people suggest us to use xy graph function. Then the problem comes: the xy graph function requires input as array, but i don't know how to make my analog input into array. If anybody has any idea, could you please let me know? Thanks a million!
    Xiaofei

    You can use the "built xy graph" express VI. (Simply place the xy-graph from the express palette and it will appear).
    You can also built your graph in a shift register. For simplicity, I would use a complex array in this case.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Iphone 3gs problem with network after upgrading to 5.1.1

    Hi... I have Iphone 3gs and requested official unlock from my provider. They said they did it and all I have to do is connect it with iTunes. I had ios 3.x and upgraded to 5.1.1 through iTunes. But now after upgrade, my phone is not unlocked and niet

  • Subreport totals are not displayed correctly in Preview

    I'm using Crystal Reports 2008.  I have a subreport that sorts hiearchically.  It is placed in the Report Header of the main report.  Within the subreport, it has calculated totals for each hiearchy grouping.  When ran, those totals are incorrectly d

  • Navigation to the web page was cancelled

    Hi All, I have a requriement where ABAP code in ISTEP1 is returning some 20,000 values. I could see that the program is executed in a jiffy and also returning values. But when I execute the query from Query Designer, the internet explorer runs for 10

  • Error 12000 Can't register credit card

    I'm trying to make purchases in the App world and tried to register 3 different credit cards but getting error message 12000 and that my card can't be registered. All 3 cards are working cos I make internet purchases with them. Please what should I d

  • Comand-Line Listener Pattern???

    Hi all gurus and thanks in advance for any help. I have a basic question relating to command-line input. Is there an easy way of monitoring when a user enters some text through the command-line? I know how to read text off the command line but I�m as