Problems with ScrollViewer inside a Kinect Region

Hi,
I'm building a WPF application using KinectRegion. I have a Scrollviewer inside the KinectRegion, scrolling with HandPointer works fine. I want to know when the scrolling interaction has finished (the user open his/her hand). Which event should I use? I
thought it was ManipulationCompleted (and ManipulationStart for closing the hand) but it is not being fired.
I also noted that the scrollviewer goes on scrolling even when the user's hand is moving outside the "screen zone", how can i disable this behavior? (so scrolling stops in the border of the screen).
Thank you.

Thanks Carmine, I will explain myself better.
I would like to build a "carousel" component: a ScrollViewer with several images inside. I would like it to have some kind of "gravity effect" so when the user "drops" the carousel it will automatically navigate to a certain
position (according to the extent of the scroll action). I can track scroll changes through the proper event in the ScrollViewer, but I need to know when the scrolling interaction has finished.
For a different component, I'm using the code Rob Relyea posted here to
build a custom IKinectControl so I can attach event handlers to Kinect Manipulation events (and I know when a dragging interaction has finished through ManipulationCompleted event in the IKinectController), but if I use a similar pattern for the carousel,
the ScrollViewer inside the IKinectControl seems to capture the events and ManipulationCompleted for the parent element is never triggered.
How can I access to low level interaction for a ScrollViewer? I don't know how KinectRegion handle interactions for child elements.

Similar Messages

  • Problems with graphics inside fax & mail form

    Hi everybody.
    I've a problem with compiling some mail forms.
    I've to load a logo inside a mail form that can be sent also as a fax.
    I tried insert a .bmp image in different ways : graphic node, intranet URL, web URL, but I have always the same problems:
    1)When I send the fax , even if the preview shows me the logo, the fax is always sent without logo.
    2) Sometimes the preview doesn't load the image.
    Somebody could help me?
    Thanks everybody
    Regards

    Hi,
    e-mail, fax or paging/SMS via SMTP configured in the SAP Web Application Server & Which prerequisites and settings are required outside the SAP system?
    Brodly there are five steps to configure
    1. Profile parameters
    2.User administration (transaction SU01)
    3. Client assignment (transaction SICF)
    4.SAPconnect administration (transaction SCOT)
    5. Settings on the mail server (SAP-external configuration)
    For step by step visit smtp configuration guide at
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/ea000fb4b31a71e10000000a422035/content.htm
    <b>Rewards point if helpfull</b>
    Thanks
    Pankaj Kumar

  • Problem with adf tables in dynamyc region

    Hello.
    I have a problem when use ADF tables within dynamic regions. It happens that if the table is inside the first task flow that is loaded (by default) in the dynamic region, retrieves the data perfectly, but if the table is in a second, third and so on. task flow, does not retrieve data. This happens only with adf tables and graphics, if I use a component form, for example, does not present any problem.
    Any idea that can be happening?
    I'm using Jdveloper 11.1.1.1.0
    Appreciate any ideas or help with this problem
    In iexplorer 8 gives the following error:
    Detalles de error de página web
    Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
    Fecha: Wed, 2 Dec 2009 16:17:48 UTC
    Mensaje: 'null' is null or not an object
    Línea: 1105
    Carácter: 2
    Código: 0
    URI: http://seisbd101.dgac.cl:7001/SGLadf-ViewController-context-root/afr/partition/ie/default/opt/collection-11-r1.js

    Hi,
    set the managed bean scope for the bean that switches between the regions to a scope larger as request: for example, set it to viewScope or pageFlowScope. This fixes the problem
    Frank

  • Problems with button inside draggable movie clip

    I am building a click through presentation that has some small text in it. To maintain the design and allow for readability, I have added a zoom feature.
    Here is the structure of the movie,
    Stage - contains pages movie clip and forward/reverse click buttons for changing pages
         pages_mc - contains 24 frames, one page per frame and buttons
    There is a button at the _root level that uses a tweener to scale the pages_mc up to 170%. When this is clicked, it allows the pages to be dragged around the screen so you can look at different sections. When you click the button again, it returns the pages back to their original size stops drag.
    My problem is, on the pages, there are buttons with links to external sites. Once startDrag has been invoked, I cannot touch the buttons inside the movie clip. Is there a way to make these buttons work?
    I need the finished quickly so any assistance is welcome.
    Code below
    magUp_btn.onRelease = function() {
    this._visible = false;
    TweenLite.to(pages_mc, .25, {_x:-250, _y:-193, _xscale:170, _yscale:170});
    TweenLite.to(magUp_mc, .75, {_alpha:0});
    TweenLite.to(magDown_mc, .75, {_alpha:25});
    magDown_btn._visible = true;
    pages_mc.onPress = function(){
    this.startDrag();
    pages_mc.onRelease = function(){
    this.stopDrag();
    pages_mc.onReleaseOutside = function(){
    this.stopDrag();
    pages_mc.useHandCursor = false;
    TweenLite.to(instr_mc, 1, {_alpha:100});
    magDown_btn.onRelease = function() {
    TweenLite.to(pages_mc, .25, {_x:0, _y:0, _xscale:100, _yscale:100});
    TweenLite.to(magUp_mc, .75, {_alpha:25});
    TweenLite.to(magDown_mc, .75, {_alpha:0});
    this._visible = false;
    magUp_btn._visible = true;
    pages_mc.onPress = function(){
    this.stopDrag();
    TweenLite.to(instr_mc, 1, {_alpha:0});
    I don't know how to turn drag off when I zoom out without using the onPress command, but I know that this is probably what is getting in the way of the button working?
    Thanks!

    One option is to make the background of the pages be the draggable parts rather than the movieclips that contain the pages and buttons.  That way, the buttons could be atop the background and not have their access blocked.
    Instead of coding the pages_mc, you would essentially have the background coded for the drag...
    pages_mc.bkgnd.onPress = function(){
        startDrag(this._parent);

  • Problem with XML inside a class

    OK. This is a setter function in one of my classes. It's
    supposed to load an xml document into an array when i call it with
    the address of the xml document. When I debug i see the array but
    there's no data in it.
    I'm pretty sure i'm doing something just really dumb that's
    probably really easy to spot... sorry - i'm new to this!
    Thanks so much!
    (i've included the code, and the xml file under the code so
    you can see what I'm aiming at...)

    Inside call back handlers the members of the class go out of
    scope. You can solve this in several ways. In the code you posted
    you can use a local reference to the class (the current object). In
    other cases you might want to use the Delegate Class.

  • Problem with AppleScript inside automator app

    Creating an Automator Application that I want to run by itself (hence application instead of workflow). The firs thing asks for a folder, then it goes to run the following applescript, followed by some more automator applications and another applescript. Everything works perfectly when i run it inside automator, but when I run it as a standalone app it fails on the first applescript. Here it is:
    on run {input, parameters}
         set aFolder to input
         tell application "Finder"
              set folderName to name of folder aFolder
         end tell
         set value of variable "SeasonNumber" of front workflow to "0" & ((characters -1 thru -1 of folderName) as string)
         return input
    end run
    I'm thinking it has something to do with the fact that I am setting a value to an automator variable (SeasonNumber) but not sure. If so, I have attached the second applescript in case something needs to be fixed in both. Thanks in advance.
    on run {input, parameters}
    set whichFile to input
    set epNum to 1
    set sNumber to get value of variable "SeasonNumber" of front workflow
    repeat with aFile in whichFile
         if epNum < 10 then
              set ifZero to "0"
         else set ifZero to ""
         end if
         set textBox to "What is episode title for S" & (sNumber as string) & "E" & epNum & "?"
         tell application "Finder"
              set filename to name of aFile
              set nameEnding to ((characters -4 thru -1 of filename) as string)
              display dialog textBox default answer ""
              set text_returned to text returned of result
              set name of aFile to "S" & (sNumber as string) & "E" & (ifZero as string) & (epNum as string) & " - " & text_returned & nameEnding                    
         end tell
    set epNum to epNum + 1
    end repeat
    return input
    end run

    Awesome. Figured since now it is just a ask for finder items and run applescript, might as well convert the whole thing to applescript and save as application in script editor. So the first thing is ask for finder items, which I have as:
    set a     set aFolder to (choose folder with prompt "Select Season Folder" default location "afp://DiskStation._afpovertcp._tcp.local/Entertainment/TV Shows") as text
    But I keep getting an error saying that it can't make it into type alias. What is the correct way of changing the default location to this? It is a Folder called TV Shows that is on my NAS, connected through afp. Let me know as I have tried putting POSIX file, I have tried Network/DiskStation/Entertainment/TV Shows, among other things. DiskStation is the server and Entertainment is a partition. Thanks in advance.

  • Problem with variable inside split-join

    Hello,
    I'm using Oracle BOM Suite 10.3.0.0 and i want to use the split gateway.
    In general the split activity ends with a join.
    the problem is when i affect a value to a variable between the split and join, it could not get this value after the join, which means after the join the variable becomes empty just like it was before the split.
    could anyone help me please.
    thanks

    HI
    Case 1: Instance variables are not shared:
    At join you can copy the variables from one of the branches to the main instance (that waits at join).
    this.instanceVar = copy.instanceVar
    This will copy the value of variable 'instanceVar' from the instance that just arrived at join to the instance that was waiting at join (main instance)
    Case 2: Instance variables are shared:
    This would mean that the main instance shares its variables with the child instances (instances between split - join). In such a case, when a variable is updated by any of the branches, the change is reflect in all the copies.
    You can set the property to share or not to share instance variables, in the advanced properties of the split activity.
    HTH
    SAtinder

  • HELP- VISTA problem with div inside of div

    Hi all,
    I need some Dreamweaver CSS help. I put together a profile Web site, http://lizconnolly.com/index.html and in VISTA/IE the yellow bio box inside the gray box is being pushed down. The box looks fine in Firefox and Safari, and I am not sure what the problem is.
    My css file link is: http://lizconnolly.com/Connolly.css
    Please help if you can.
    Thank you for your help.
    Liz

    As I said in my earlier post, the pages look similar in both IE7 and FFox. The text is very close to the bottom line, but not spilling out of the box.

  • Problem with image inside UL

    I have a UL with a width of 200px width by 55px height. I
    have created a background image for the UL with the same
    measurements. When I add the image as a background image inside the
    UL the UL is about 40px wider than the image and I have to resize
    the UL down to about 160px. - less than the image size.
    Whats going on? There is nothing inside the UL at the moment
    apart from the background image.

    A-ha!! I'd set the margin, but forgotten the padding. Sorted
    now thanks :)

  • Problem with images inside of table cells

    I've run into a problem on this web page:
    http://www.solidrocknet.org/index2.html
    The the background of the table cells which contain an image
    is showing
    through in the form of a strip at the bottom of the cell. You
    can see
    this as a black strip in the cells which contain the logo
    graphic,
    centerpiece photo, and the photo strip and as a blue strip
    under the 4
    separate photos on the bottom.
    These problems are appearing in Firefox. It almost looks
    correct in
    IE6/7 except that the blue strip appears under the bottom
    photos.
    Can anyone see what I am doing wrong?

    The best practice is to include -
    a img { border:none; }
    in your CSS so that any image inside an anchor tag is
    prevented from having
    the border.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "K0rrupt" <[email protected]> wrote in
    message
    news:f5i5fc$bhp$[email protected]..
    > sometimes browsers like to display a blue lines around
    pictures. So as
    > good practice you should add it.
    >

  • Problem with Crystal Report XI and Regional Settings

    Dear All,
    I am working on Crystal Report XI under Chinese Windows 2000 Professional and Chinese Visual Foxpro 9.0.
    I created a User defined Function Library under VFP9.0 as an ActiveX with a function that return a String. I could saw the function in CR XI and the function works fine when returning English. When the function returning a Chinese String, CR XI gives different result. The Chinese text returned from the function only works when my regional settings (control panel -> regional settings) is set to Chinese Taiwan otherwise it shows "??????".
    It is queer, the text object always correct, shows Chinese text, no matter what regional settings is. I did try my best in VFP to convert the string to double byte, unicode, etc but it stilll doesn't work.
    Could anyone help me please. Thank you.
    Regards,
    Antony

    If you have the correct font, it will actually say "MS Arial Unicode" in any of the font drop downs - CR Designer, MS Word or any other software. So, you'll have to ensure that the font is installed.
    Ludek

  • Problem with JPanel inside JScrollPane

    I want to make a simple graphic editor (like MS-Paint) with Java.
    I create the frame using JFrame, and use many Swing component. But I found
    some difficult when I tried to create the drawing area (the area where user
    performs drawing). I use JPanel as drawing area and I put it in JScrollPane.
    I use JScrollPane in case if user want to create a big drawing area.
    What I want to do with drawing area is, to put it in JScrollPane with size smaller than JScrollPane but I can't get it because the size of drawing area (JPanel) is always be the same as JScrollPane size. In MS-Paint you can see that the canvas (drawing area) size is able to be resize. And the canvas default color is white, and the Scroll Box around it has darkgray color. How can I make it like that (MS-Paint)? Please help. Thanks...
    Irfin

    I haven't actually tested this, but I think it should work...
    Add a JPanel to the scrollpane setting it's background to grey (i think the dark grey in MSPaint is something easy like 128,128,128). Set the layout on that panel to null, then add a second panel to that panel, at freeze it's size (ie. setMaximumSize). Doing it this way will allow you to set like a (10,10) position or something like that, giving the second panel a position away from the edge of the scrollpane.
    Seeing as you will be using mouse listeners anyways, you might even be able to allow for the second panel to be resized by checking the mouse position to see if the mouse is over the edge of the panel. I won't go into detail, that'll ruin the fun for you.
    Good luck, hope this helps.
    Grant.

  • Problem with scope, inside custom class

    I'm having trouble with the code below- can anybody explain
    why "class_obj" is undefined in my xml.onLoad handler? even though
    its available through out the class instance?

    See my answer to your other post.

  • Problem with taskflows within the Dynamic region

    Hi,
    I am creating a application which have two bounded taskflows search-flow and admin flow.In admin-flow taskflow i have two jsff pages admin_login and welcome.whenever we click login button present in login.jsff it should navigate to welcome page.I have created the control flow case (from outcome is welcome).I have created a Home.jspx in adfc-config.xml.Using the splitter i divided the page into two facets.In facet 1 there are two command links search, admin.In the second facet i have dropped search flow as dynamic region and written the following beanclass.
    package com.Search;
    import oracle.adf.controller.TaskFlowId;
    public class Search {
    private String SearchtaskFlowId = "/WEB-INF/Search-fllow.xml#Search-fllow";
    private String AdminTaskFlowId = "/WEB-INF/Admin-flow.xml#Admin-flow";
    private String currentTF = "home";
    public SearchFlight() {
    public TaskFlowId getDynamicTaskFlowId() {
    if (this.getCurrentTF().equalsIgnoreCase("home"))
    return TaskFlowId.parse(SearchtaskFlowId);
    else
    return TaskFlowId.parse(AdminTaskFlowId);
    public void setCurrentTF(String currentTF) {
    this.currentTF = currentTF;
    public String getCurrentTF() {
    return currentTF;
    When i click the admin link in home.jspx the admin_login.jsff page is opening.After entering the credentials and clicking login button it is going to the search page of search task-flow not to the welcome.jsff.
    The admin_login.jsff is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:decorativeBox id="db1">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1" inlineStyle="width:50cm; height:50.0cm;">
    <p>
    <af:inputText label="UserName" id="it1"
    binding="#{LoginBean.userName}"/><af:inputText label="Password"
    id="it2"
    secret="true"
    binding="#{LoginBean.password}"/><af:commandButton text="Login"
    id="cb1" binding= "#{LoginBean.login}"
    action="#{LoginBean.login_action}" />
    </p>
    <p>
    <af:commandButton text="Cancel" id="cb2"/>
    </p>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="top">
    <h:outputFormat value="Administrator Login" id="of1"
    style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:large; color:Purple;"/>
    </f:facet>
    </af:decorativeBox>
    <!--oracle-jdev-comment:preferred-managed-bean-name:NewLoginBean-->
    </jsp:root>
    The loginbean for the admin_login.jsff is
    package com.LoginBean;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.jdbc.OracleDriver;
    public class Login {
    public Login() {
    private RichInputText userName;
    private RichInputText password;
    private RichCommandButton login;
    public void setUserName(RichInputText userName) {
    this.userName = userName;
    public RichInputText getUserName() {
    return userName;
    public void setPassword(RichInputText password) {
    this.password = password;
    public RichInputText getPassword() {
    return password;
    public void setLogin(RichCommandButton login) {
    this.login = login;
    public RichCommandButton getLogin() {
    return login;
    public String login_action() {
    // Add event code here...
    String UserName = this.getUserName().getValue().toString();
    String Password = this.getPassword().getValue().toString();
    Connection conn;
    try {
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT 'x' FROM administrator where username = '"+UserName+"' and password='"+Password+"' " );
    if (rset.next()) {
    conn.close();
    return "welcome";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "error";
    public static Connection getConnection() throws SQLException {
    String username = "hr";
    String password = "hr";
    String thinConn = "jdbc:oracle:thin:@localhost:1521:XE";
    DriverManager.registerDriver(new OracleDriver());
    Connection conn =
    DriverManager.getConnection(thinConn, username, password);
    conn.setAutoCommit(false);
    return conn;
    }

    in your web.xml find this entry and put success_url. to weblogic.jspx
    <servlet>
        <servlet-name>adfAuthentication</servlet-name>
        <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
        <init-param>
          <param-name>success_url</param-name>
          <param-value>/faces/index</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>

  • Problems with Wait inside Switch inside While

    Hi!
    I have implemented a process that does something like this (BPEL 10.1.3.3):
    1. reads some data and sets some variables
    2. has a While activity that tries for 5 times to post some xml message to specified URL
    3. if it doesn't succeed than set some error parameters and continue
    The way I've done this:
    [xml]
    <while name="While_1"
    condition="bpws:getVariableData('RetryNum') &lt;= 6 and bpws:getVariableData('ReturnStatusCode') != '202'">
    <sequence name="PostXML">
    <switch name="AbortDesision">
    <case condition="bpws:getVariableData('RetryNum') > 5">
    <assign name="AssignFailure">
    <copy>
    <from expression="string('202')"/>
    <to variable="ReturnStatusCode"/>
    </copy>
    + some more copy operations...
    </assign>
    </case>
    <otherwise>
    <sequence name="Sequence_3">
    <switch name="TimeoutDecision">
    <case condition="bpws:getVariableData('RetryNum') > 1">
    <sequence name="Sequence_2">
    <wait name="Wait2S" for="'PT2S'"/>
    </sequence>
    </case>
    <otherwise>
    <empty name="Empty"/>
    </otherwise>
    </switch>
    <bpelx:exec name="PostXML" language="java" version="1.4">
    <![CDATA[try     
    Some Java code that calls the URL and sets some variables including ReturnStatusCode
    }]]>
    </bpelx:exec>
    <assign name="IncreaseCount">
    <copy>
    <from expression="bpws:getVariableData('RetryNum') + 1"/>
    <to variable="RetryNum"/>
    </copy>
    </assign>
    </sequence>
    </otherwise>
    </switch>
    </sequence>
    </while>
    [xml]
    What I've tried to achieve is: for the first time don't wait, just execute Java code. If status code != '202' than wait 2 seconds and retry. Do this for five times. If I don't succeed then I should set statusCode variable to 202 manually and then continue the process. The problem is that the last wait never ends. Even if I change condition in switch name="AbortDesision" to <case condition="bpws:getVariableData('RetryNum') > 2">it is the same, the first wait never ends. Can someone please tell me how to solve this. If it is important, the java code throws an exception that is not handled. Could this be the problem?
    Thank you in advance,
    BB

    I found out one very interesting thing:
    When I changed condition case condition="bpws:getVariableData('RetryNum') > 5" to case condition="bpws:getVariableData('RetryNum') = 6" everything is working OK.
    Nice, ha :)
    Regards,
    BB.

Maybe you are looking for