Contact event in PRC management?

I want to manage touch event on CPP and not qml.

Redo exactly the same as the solution of http://supportforums.blackberry.com/t5/Native-Development/touch-does-not-fire-for-q10/td-p/3026980

with no qml whatsoever.

Touch the event indicates on the label.

Click event displays on the console.

applicationui.cpp:

#include "applicationui.hpp"

#include 
#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

using namespace bb::cascades;

ApplicationUI::ApplicationUI() :
        QObject()
{
    // prepare the localization
    m_pTranslator = new QTranslator(this);
    m_pLocaleHandler = new LocaleHandler(this);

    bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
    // This is only available in Debug builds
    Q_ASSERT(res);
    // Since the variable is not used in the app, this is added to avoid a
    // compiler warning
    Q_UNUSED(res);

    // initial load
    onSystemLanguageChanged();

    //Create Page
    Page *page = new Page();

    // Create Label
    label = new Label();
    label->setMultiline(true);

    // Connect Tap handler
    TapHandler *tapHandler = TapHandler::create()
        .onTapped(this, SLOT(onTappedHandler(bb::cascades::TapEvent*)));

    // Create Container, add Label and Gesture Handler to it and connect to touch event
    Container *container = Container::create()
        .layout(new DockLayout)
        .horizontal(HorizontalAlignment::Fill)
        .vertical(VerticalAlignment::Fill)
        .add(label)
        .addGestureHandler(tapHandler)
        .onTouch(this, SLOT(onTouch(bb::cascades::TouchEvent*)));

    // Add Container to Page
    page->setContent(container);

    // Set created root object as the application scene
    Application::instance()->setScene(page);
}

void ApplicationUI::onSystemLanguageChanged()
{
    QCoreApplication::instance()->removeTranslator(m_pTranslator);
    // Initiate, load and install the application translation files.
    QString locale_string = QLocale().name();
    QString file_name = QString("TestContainer_%1").arg(locale_string);
    if (m_pTranslator->load(file_name, "app/native/qm")) {
        QCoreApplication::instance()->installTranslator(m_pTranslator);
    }
}

void ApplicationUI::onTouch(bb::cascades::TouchEvent* event){
    switch(event->touchType()) {
        case TouchType::Cancel: {
            addToLabel("TouchType: Cancel");
            break;
        }
        case TouchType::Down: {
            addToLabel("TouchType: Down");
            break;
        }
        case TouchType::Move: {
            addToLabel("TouchType: Move");
            break;
        }
        case TouchType::Up: {
            addToLabel("TouchType: Up");
            addToLabel("X: " + QString::number(event->windowX()) + "Y: " + QString::number(event->windowY()));
            break;
        }
        default: {
            addToLabel("UNDEFINED");
        }
    }
}

void ApplicationUI::onTappedHandler(bb::cascades::TapEvent* event) {
    qDebug() << "Tapped";
    qDebug() << "X:" << event->x() << "Y:" << event->y();
}

void ApplicationUI::addToLabel(QString text) {
    label->setText(text + "\n" + label->text());
}

applicationui. HPP:

#ifndef ApplicationUI_HPP_
#define ApplicationUI_HPP_

#include 
#include 
#include 
#include 

namespace bb
{
    namespace cascades
    {
        class LocaleHandler;
    }
}

class QTranslator;

/*!
 * @brief Application UI object
 *
 * Use this object to create and init app UI, to create context objects, to register the new meta types etc.
 */
class ApplicationUI : public QObject
{
    Q_OBJECT
public:
    ApplicationUI();
    virtual ~ApplicationUI() {}
private slots:
    void onSystemLanguageChanged();
    void onTouch(bb::cascades::TouchEvent* event);
    void onTappedHandler(bb::cascades::TapEvent* event);
private:
    void addToLabel(QString text);

    QTranslator* m_pTranslator;
    bb::cascades::LocaleHandler* m_pLocaleHandler;

    bb::cascades::Label* label;
};

#endif /* ApplicationUI_HPP_ */

Tags: BlackBerry Developers

Similar Questions

  • you just bought an iPhone6. My contacts were transferred a manager of T-Mobile Samsung Galaxy 6 mt. I can't find them on the new phone. Help, please! Thank you.

    you just bought an iPhone6. My contacts were transferred a manager of T-Mobile Samsung Galaxy 6 mt. I can't find them on the new phone. Help, please! Thank you.

    You still have your old phone?

    Were your contacts on email like Outlook or Gmail?

    Switch from Android to iPhone, iPad, or iPod touch - Apple Support

  • Event ID 7024 Manager Service control on cold start

    When I do a cold start I get event Service Control Manager 7024 and the system restarts several times until it's OK.

    However a warm reboot is successful immediately. Is there something wrong with my hardware?

    Hello Mike,.

    Refer to the procedure described in KB314094.

    http://support.Microsoft.com/kb/314094/en-us

    Also look at:

    How to install and use the Recovery Console in Windows XP

    http://support.Microsoft.com/kb/307654

    http://support.Microsoft.com/kb/307545

    Perform a repair to start the computer.

    http://pcsupport.about.com/od/OperatingSystems/SS/instxprepair1.htm

  • Is blackBerry smartphones there a way to edit your contacts in the Desktop Manager?

    I'm trying to understand how to change your contacts via the Desktop Manager... is it possible?

    So now you have the contacts in Outlook?

    So, edit your contacts in Outlook, get them as you want.

    And then you use the Desktop Manager > Sync > back to your BlackBerry.

    You are doing things.

    You cannot edit contacts directly in Desktop Manager... it doesn't work just like that on a BlackBerry, as users might be accustomed to using a Palm, which has its own separate software to do this. BlackBerry decided not to reinvent the wheel by creating a whole new software, when many many users already have a demand on their PC that does it well.

  • Contact for Continua Bluetooth Manager for Windows window

    Hi all
    Could someone kindly provide information on "continued Bluetooth Manager for Windows? The original Web page is about Alliance health continued:

    http://www.continuaalliance.com/certified-products/Continua-Bluetooth-Manager-for-Windows-manufactured-by-Toshiba.html

    How to contact the related service about this product? I can't find information on the Web from TOSHIBA site.

    Thank you!

    Hello

    I don't very well if it could be useful or not, but here's a Toshiba BT m Portal:
    http://APS2.toshiba-tro.de/Bluetooth/

    There is an option called: maybe your comments, you can use this contact form to get comments on this theme

    Welcome them

  • Question touch event for mutil - Manager on a screen

    Hi all

    I will say the case:

    I have a screen there is a main VerticaFieldManager that holds two VerticalFieldManager and a field

    the two children-VerticalFieldManagers hold some LabelField.

    When one of them is selected, it will be lit high.

    Then, extending from screen and override touchEvent() and shows a "Hit" said dialog and highlight the OK field.

    because the touchEvent is a shipped process, where the touchEvent occur, each field will receive this event.it never check what field is developed and send the event in this area, (if I'm wrong, please advice).

    Here's the question.

    When user getX and getY to get point touch, then the user getFieldAtLocation on crib, if X / is greater that the extensions Manager, RIM API returns the field expanded.

    This does not look good.

    Here is my source code:

    /*
     * VFMTester.java
     *
     * © , 2003-2008
     * Confidential and proprietary.
     */
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.servicebook.*;
    import net.rim.device.api.ui.container.*;
    
    /**
     *
     */
    public class VFMTester extends UiApplication{
        public static void main(String args[]){
            UiApplication app = new VFMTester();
            app.enterEventDispatcher();
        }
        VFMTester() {
            pushScreen(new AScreen());
        }
    
        class AScreen extends MainScreen
        {
            VerticalFieldManager vfm;
            public AScreen()
            {
                super();
                vfm = new VerticalFieldManager();
                vfm.add(new LabelField("Test",Field.FOCUSABLE));
                VerticalFieldManager v1 = new TouchVerticalFieldMananger1();
                for(int i=0;i<10;i++){
                    v1.add(new LabelField("F" + String.valueOf(i+1),Field.FOCUSABLE));
                }
                VerticalFieldManager v2 = new TouchVerticalFieldMananger2();
                for(int i=0;i<10;i++){
                    v2.add(new LabelField("S" + String.valueOf(i+1),Field.FOCUSABLE));
                }
                vfm.add(v1);
                vfm.add(v2);
                this.add(vfm);
            }
            public boolean trackwheelClick(int time, int status){
                Dialog.alert("click");
                return true;
            }
            protected boolean touchEvent(TouchEvent te){
                UiApplication.getUiApplication().invokeLater(new Runnable()
                {
                    public void run()
                    {
                        Dialog.alert("touched!");
                    }
                });
                return super.touchEvent(te);
            }
        }
    
        class TouchVerticalFieldMananger1 extends VerticalFieldManager
        {
            TouchVerticalFieldMananger1()
            {
                super();
            }
            public boolean touchEvent(TouchEvent te)
            {        if(!this.isFocus()) return true;            switch(te.getEvent())
                {
                    case TouchEvent.CANCEL:
                        System.out.println("CANCEL");
                    break;
                    case TouchEvent.CLICK:
                        System.out.println("CLICK");
                    break;
                    case TouchEvent.DOWN:
                        System.out.println("DOWN");
                    break;
                    case TouchEvent.GESTURE:
                        System.out.println("GESTURE");
                    break;
                    case TouchEvent.MOVE:
                        System.out.println("MOVE");
                    break;
                    case TouchEvent.UNCLICK:
                        System.out.println("UNCLICK");
                    break;
                    case TouchEvent.UP:
                        System.out.println("UP");
                    break;
                }
                if(!te.isValid()) return true;
                int x = te.getX(1);
                int y = te.getY(1);
                int index = this.getFieldAtLocation(x,y);
                if(index < 0 ) return true;
                Field f = getField(index);
                f.setFocus();
                this.invalidate();
                return true;
            }
        }
        class TouchVerticalFieldMananger2 extends VerticalFieldManager
        {
            TouchVerticalFieldMananger2()
            {
                super();
            }
            public boolean touchEvent(TouchEvent te)
            {
    
                if(!this.isFocus()) return true;            switch(te.getEvent())
                {
                    case TouchEvent.CANCEL:
                        System.out.println("CANCEL");
                    break;
                    case TouchEvent.CLICK:
                        System.out.println("CLICK");
                    break;
                    case TouchEvent.DOWN:
                        System.out.println("DOWN");
                    break;
                    case TouchEvent.GESTURE:
                        System.out.println("GESTURE");
                    break;
                    case TouchEvent.MOVE:
                        System.out.println("MOVE");
                    break;
                    case TouchEvent.UNCLICK:
                        System.out.println("UNCLICK");
                    break;
                    case TouchEvent.UP:
                        System.out.println("UP");
                    break;
                }
                if(!te.isValid()) return true;
                int x = te.getX(1);
                int y = te.getY(1);
                int index = this.getFieldAtLocation(x,y);
                if(index < 0 ) return true;
                Field f = getField(index);
                f.setFocus();
                this.invalidate();
                return true;
            }
        }
    }
    

    1:

    If the user has first select a field on one of them VerticalFieldManager, it will always be there and cannot be changed to the other domain.

    2:

    even if I check the field has focus or not, but it doesn't work anymore.

    Is there something wrong on my source code? or logical is false, or my understanding is wrong?

    Any advice pls.

    Thank you.

    We see this issue as well. Our workaround for this is to check the coordinates x, y of touch to make sure that they are within the scope of the current field, and then re - delegate the event so if x is outside the scope of the field.

  • The service of event 7001 control management

    So whenever I start my laptop it freezes all programs start up I can get it runs in safe mode I was wondering if the underside of neck ld be causing it and if yes, how can I solve this

     

    Log name: System

    Source: Service Control Manager

    Date: 2010-11-17 04:42:49

    Event ID: 7001

    Task category: no

    Level: error

    Keywords: Classic

    User: n/a

    Computer: TheJoe

    Description:

    The computer browser service depends on the Server service which failed to start because of the following error:

    The dependency service or group was able to start.

    The event XML:

      

        

        7001

        0

        2

        0

        0

        0 x 8080000000000000

        

        120132

        

        

        System

        TheJoe

        

      

      

        Computer browser

        Server

        % 1068

      

    Hello

    Your computer is in selective startup mode?

    If not, then follow these steps, you are able to start in safe mode, you can move forward by starting the computer state to boot to safe mode that will help narrow down the issue. Follow the steps below:

    Safe mode again to restart the computer to boot and check if the problem still persists. Link below will help you to start the computer in clean boot: http://support.microsoft.com/kb/929135

    Make sure that you reset the computer in normal mode after repair (you can see step 7)

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Question of optimization: 1 handler for multiple events or 1 Manager by the event?

    Something I can't decide, simply because I'm not sure what would be most effective.

    Example: I have a few menus, each with a handful of icons click on (say a total of 10 objects that can be clicked on).

    Would it not be better to have 1 stage.addEventListener (MouseEvent.MOUSE_DOWN, clickHandler); with 10 if (e.target.name == "nameX") who is called on each click.

    Or would it be better to have 10 separate objectX.addEventListener (MouseEvent.MOUSE_DOWN, clickHandlerX); for each menu item that can be clicked?

    I suppose my confusion comes from not knowing what a listener does exactly, it uses all the resources I look for an event?

    (added)

    After typing all this, a good comparison would be closer to an event listener is nothing else than a way to call a function and is not otherwise using resources?

    My question is still, but I'm leaning towards several Auditors and managers.

    (add 2)

    Sorry my brain blurs, I'm not good at explaining things.  I think it's a little clearer.

    For 1 menu I 1 this.addEventListener, and in the Manager, he has several if (menu_itemX.name == "nameX").
    It is better to have 1 eventListener in this situation, or would it be better to have several menu_itemX.addEventListener and managers separated for each action?

    (follow-up question)

    I did addEventListener when the menu opens and removeEventListener when the menu closes.  If the event listeners do not use 'no' resources unless their event fires is a bad practice for simple click and mouseover events mouseout/mouseouthandler()?  Should I just leave the event listeners here all the time?

    (sample code)

    If this makes it more clear which of these would work better?

    Version 1:

    this.menu1.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler1);
    this.menu2.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler2);
    this.menu3.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler3);
    this.menu4.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler4);
    this.menu5.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler5);
    
    function clickHandler1(e:Event):void{}
    function clickHandler2(e:Event):void{}
    function clickHandler3(e:Event):void{}
    function clickHandler4(e:Event):void{}
    function clickHandler5(e:Event):void{}
    

    version 2:

    this.addEventListener(MouseEvent.MOUSE_DOWN, clickHandler);
    
    function clickhandler(e:Event):void{
    if(e.target.name == "menu1"){}
    else if(e.target.name == "menu2"){}
    else if(e.target.name == "menu3"){}
    else if(e.target.name == "menu4"){}
    else if(e.target.name == "menu5"){}
    }
    
    

    the leave it alone as long as your menu works as expected while adding them.

    leaving the listener takes memory.  removing it frees this memory.

    but free up memory and adding memory uses system resources, especially when free memory flash gc.  It is unnecessary to repeatedly the gc objects that will be added to memory later.

  • Update scheduled task orchestration event custom password manager problem

    Hello experts,

    I'm trying to run a custom on-demand updating the user password in IOM 11.1.1.5

    Taken into account in the file input stream, there are 5 users
    TSTUSR1
    TSTUSR2
    TSTUSR3
    TSTUSR4
    TSTUSR5

    Problem that I face is when the update of password change fails for a user and for future users also obtain failed. Say to TSTUSR3 change the password has failed for some reason any (take the example user does not exist) then TSTUSR4 and TSTUSR5 also it is failed.

    Note: here the changepassword to TSTUSR4 and TSTUSR5 is get called but I get an orchestration event manager exception like below.

    < 9 March 2012 06:26:12 THIS > < WARNING > < oracle.iam.platform.kernel.impl > < IAM-00 80002 > < Orchestration validation failed on the event handler - the password change operation failed >.
    Exception occurred during password change
    oracle.iam.identity.exception.UserManagerException: the password change operatio n failed.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:3024)
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:2959)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.changePasswordx (exercise wn Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJo inpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisit orImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.c allback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentIntercepto r.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocat ionInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopPr oxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy331.changePasswordx (Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.__WL_invoke (unknown Source)
    to weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke (its sionRemoteMethodInvoker.java:40)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.changePasswordx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke (distance BusinessIntfProxy.java:85)
    to $Proxy195.changePasswordx (Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynami cAopProxy.java:198)
    to $Proxy328.changePasswordx (Unknown Source)
    oracle.iam.identity.usermgmt.api.UserManagerDelegate.changePassword (U're Source)


    And here is the code snippet I use
    ####################

    Try
    {
    CsvReader fileName = new CsvReader (actualPath);
    fileName.readHeaders ();

    While (fileName.readRecord ()) {}

    Try
    {

    String username = fileName.get("USR_LOGIN").toUpperCase ();
    Password String = fileName.get ("USR_PASSWORD");

    If (! isNullOrEmpty (username) & &! isNullOrEmpty (password))
    {
    userAPI.changePassword (username, password.toCharArray (), true);
    }
    on the other
    {
    System.out.println ("file is empty");
    Err.Add (FileName.getRawRecord ());
    }
    } catch (Exception e) {}
    Err.Add (FileName.getRawRecord ());
    System.out.println ("Exception occurred during password change");
    e.printStackTrace ();
    System.out.println ("continues with the next record");
    }
    }

    catch (Exception e) {}
    e.printStackTrace ();
    }

    ####################

    Your entry to most early would be useful.

    Thank you
    DK

    Published by: 875142 on March 8, 2012 22:56
  • Simple questions on the earphones of events and memory management

    I am brand new to AS 3.0 (have not coded in 10 years!) and I have a two part question on the management of event listeners.

    1. is it possible to use variables or loops to simplify the process of creating event listener? For example, I have a scene that animates the leaves when they are hit. There are 25 or more leaves, so I need to handlers of 25 and 25 functions, even if the animation is the same. Right now my code looks like this:

    leaf1.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf1);
    leaf2.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf2);
    leaf3.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf3);

    etc. And then the functions all alike as well.

    function animateLeaf1(e:TouchEvent): void {}
    leaf1.gotoAndPlay ("animationStart");
    }

    function animateLeaf2(e:TouchEvent): void {}
    leaf2.gotoAndPlay ("animationStart");
    }

    etc. My instinct tells me there is an easier way to do this, but I don't know if it's just because I see a model and want to put it in a loop or if there is really a better way to do it. I have event listeners are doing right?

    2. How can I clean my waste? Each of my frames will have 100-300 earphones of events inside, for animations, etc., mainly because a single button can have 3-5 event listeners (touch Start, end touch, touch roll on, roll off touch, etc.). Is this too much for a mobile device to manage? When can I disable event listeners to make sure that they are the garbage collector to release the memory? I don't want memory leaks, but the event listeners must be active when the frame is active and destroyed when the setting is inactive; I don't know how to program which, or if such a garbage collection is already inherent in Flash.


    Thank you very much!
    Amber

    leaf1.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);

    leaf2.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);

    leaf3.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);

    leaf4.addEventListener (TouchEvent.TOUCH_BEGIN, animateLeaf);

    function animateLeaf(e:TouchEvent): void {}
    e.currentTarget.gotoAndPlay ("animationStart");
    }

  • Question about the events of list management

    I searched in the circles of a response to this problem for a while now.

    Background information:

    I have an application that uses a number of listservs. However, some end users have complained about this particular control since you not only have select from the popup LOV, but you then have to click on the 'Add' button until the selected value will be submitted to the page. They would like me to display some callback types click on 'Add' when a value is selected, but not yet added.

    I found the names of the different elements of the list manager and created a simple javascript function to change the background color of the text box where the selected value is displayed and attached that work to the onchange event.

    My problem is that if something enter the text box fire the onchange event, by clicking on the 'Add' button does not work. In other words, I can put a red background (or whatever I end up doing) if they have not yet added value, but I can't put it right back when the user clicks on 'Add '. The best work around I came uses the list manager onmouseover event, but is not as clean as I like it.

    The 'Add' button has an onclick (obviously) the events that first calls a function "appendToList" and then deletes the text box.

    {color: #0000ff} & lt; "input type ="button"name =" "value ="Add"onclick =" appendToList (return [0].p_v99.value.toUpperCase (), return [0] .p_v04); return [0].p_v99.value = "" / & gt;

    {color} {color: #000000} The appendToList function is defined in the body of the page, just forward to the & lt; fieldset & gt; tag that creates the list manager, leading me to believe that there is a template somewhere.

    Question:

    Is it possible to edit the template for the list manager so that I can call my function when the user clicks on the button "add"?

    or

    Is it possible to redefine the function appendToList somewhere on this page, so I can place a call to function within this function?

    or

    Is there another way to restore the appearance of the text box when the user clicks on the button 'Add' that I thought not again?


    Thanks for any help you can provide. This is bugging me. {color}

    Hello

    I think that what follows may work for you.

    Suppose you have a component called P4_LIST_MANAGER list manager. Add the following code in the Footer area of the region setting:

    <script type="text/javascript">
    var lm = document.getElementById("P4_LIST_MANAGER_ADD");
    lm.onchange = function()
    {
     if (lm.value.length > 0)
     {
      lm.style.backgroundColor = 'red';
     }
    }
    var lmfs = document.getElementById("P4_LIST_MANAGER");
    lmfs.onclick = function()
    {
     if (lm.value.length == 0)
     {
      lm.style.backgroundColor = 'white';
     }
    }
    </script>
    

    The main problem you see is that for an input element onchange event is not raised when its value is changed via javascript on the page. The above assumes that the user has clicked in the area of field set to use either the Add or Remove buttons, and then resets the background color.

    Andy

    Published by: ATD 15 January 2009 19:02

  • Case of event Structure to manage the value between

    I put in place a structure of the event to enter data in a multicolumn listbox.  I wanted to use a table, but it was difficult to place symbols in the first column; even using the odd fonts (Webdings, etc.) to get check marks, x, etc...  I don't want the user to change some of the columns, so a MCL with a structure of the event to detect user input works well in the test code.

    When the user clicks on a cell in the LFA, then I place a transparent control chain on the cell of the same size, so the user, it seems that they enter data.  I pre-fill the chain with the existing content of the cell control and site selection at the end of the string.  After you enter a string, the control of transparent string is moved outside the LFA, so all the clicks of the mouse in the LFA are always detected.  It all works very well.

    If the user changes the value and press 'Enter' or click on the button Enter text under the file menu check box, the structure of the "Change value" event triggers then.

    If the user keeps the same value and presses 'Enter' then the structure of the 'Touch Up' event where ScanCode = 28 detects the press 'Enter '.

    However, if the user wants to keep the same value and presses the button check box on the file menu and then the structure of the event does not detect it.  I added a bunch of advanced control of the chain, but if the user moves the mouse away from the control and then the tip appears only for a few moments.

    Some of my users are used to click the box to enter the channels, so I'd like to understand how to handle this event.

    What can I add to the structure of the event to detect user maintaining the same value by clicking the checkbox?

    Thanks for any advice.

    Leif Kirschenbaum

    P.S. I'm using LV 7.1 because my startup employer cannot justify the money to upgrade right now.  Yes, in more modern versions are nodes property to indicate the line & column clicked in a MCL, but I don't have access to it, so I use the position sizes and the row/column of MCL up/left to determine what cell they clicked in.

    You could hide the toolbar of the VI during the race, this disables the option click on the button "enter".

    Or you can run a small loop to see if the string still has key-focus, I discovered that when you enter the main focus is removed from the control of the chain.

    Tone

  • How to fix always get an error for MatSvc in computer event viewer of management, zone applications? All help and support says is 'we're sorry. "

    Event type: error
    Event source: MatSvc
    Event category: no
    Event ID: 4
    Date: 26/04/2013
    Time: 19:23:58
    User: n/a
    Computer: RICHARD-PJG4Q7K
    Description:
    CARPET service met with failure when downloading data. HR = 0xC004F018

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    I could have given you a link to sp3. :)

    -----------------

    for errors:

    http://www.EventID.NET/display.asp?eventid=861&eventno=4615&source=security&phase=1

    ------------------

    you have xp pro, use Group Policy to not to look for these failures, the wire above want to disable ICS, which I don't want, I'm using pro and not have implemented event viewer for audit failures.

    http://TechNet.Microsoft.com/en-us/library/dd277403.aspx

    above is about group policy configuration

    Note: If you keep your antivirus software up-to-date, and a running malware scanner often you typically will not need to worry.  JMO

    http://ServerFault.com/questions/59645/event-ID-861-the-Windows-Firewall-has-detected-an-application-listening-for-i

    http://social.technet.Microsoft.com/forums/en-us/winserverManagement/thread/c2ec953e-FFDF-4E0B-A7FA-4c80d98186cd/

    on error 861 and group policy

  • Change post events for attribute Manager process

    Hello

    Can I trigger my piece of code in the post processing handler if one particular attribute is changed to IOM?

    Basically, I want to trigger e-mail notifications only when the user changes his password. This email must inform the Manager of the users that the user has changed his or her password.

    Thank you

    Yes, that's right, you set the operation in the XML file. There is also a RESET_PASSWORD operation for a reset if you need from the administrator password.

  • PIM/PDAP add example contacts/events

    Hello

    Is there an example of Blackberry which details how to interact with PIM?

    I read online that net.rim.blackberry.api.pim has been replaced by
    NET. RIM. BlackBerry.API.PDAP but impossible to find examples.

    Thank you

    JO

    Will look @ PIMDemo example, as shown in another forum

Maybe you are looking for