Dragging control issues

Hi friends, I'm a movable control, but I have questions.

The first time, it works very well, but on the second attempt it return to its original position, and once again I can move it.

It is very unconfortable :/

         ImageView {

         id: watermark1
         imageSource: watermark.imageSource
         property real dy: 0
         property real currentY: 0
         property real dragThreshold: 40
         touchPropagationMode: TouchPropagationMode.Full
         attachedObjects: [
             ImplicitAnimationController {
                 id: translationControllerY
                 propertyName: "translationY"
             }
         ]
         property real iniX : 0;
         property real iniY : 0;

         onTouch: {

             translationControllerY.enabled = false;
             //translationControllerY.enabled = false;

             if (event.isDown()) {
                 iniX = event.windowX;
                 iniY = event.windowY;  

             }
             if (event.isMove()) {

                 watermark1.translationX = event.windowX - iniX;
                 watermark1.translationY = event.windowY - iniY;
                 console.debug(iniX, iniY)
                 console.debug(watermark1.translationX + " and " + watermark1.translationY)

             }

         }
 }

Can you help me?

Thank you!

Try this...

            onTouch: {
                translationControllerY.enabled = false;

                if (event.isDown()) {
                    iniX = event.windowX;
                    iniY = event.windowY;
                }
                if (event.isMove()) {
                    watermark1.translationX += event.windowX - iniX;
                    watermark1.translationY += event.windowY - iniY;

                    iniX = event.windowX;
                    iniY = event.windowY;
                }
            }

Tags: BlackBerry Developers

Similar Questions

  • IOS App Remote - Volume control issues

    OK, so I downloaded the app recently released for Apple TV IOS. Everything works as expected, except the inconsistent Volume control.

    I have two Vizio TVs in my house - E701i-A3 and models M401i-A3. The volume via IOS app works perfectly on my E701i-A3 - pressing iPhone volume buttons triggers change in volume on the soundbar attached to this set.

    No luck with my M401i-A3 not set - by pressing the volume iPhone buttons does cause changes in local ringtone volume iPhone... that tells me something is not right with audio control EAC between ATV4 and the TV set. I do not use soundbar with this set - internal speakers only.

    Both sets are running the latest firmware of Vizio and CEC/audio is enabled. No problem to control the volume or turn the sets/turn off via the remote Siri material.

    Kind of ideas here... anyone have any ideas as to what the problem may be with my Vizio M401i-A3 defined? Someone at - it got IOS volume remote control works with other models of TV?

    Volume control requires HDM - CEC to ensure compatibility. It is quite possible that only one of your TV is compatible.

  • Simple control issue!

    Hello! I am a newbie in LabView. I started using LabView 8.2.

    My question is this: How can I make control of the 3 value, and how I can change the value of this command on mouse click.

    Also... I want that this control is a button led (as a Boolean control) and I want it to change color on the change in value.

    How can this be achieved? Any ideas?... I searched the Forum but has not stumbled upon any clear solution.

    4 thank you for your time!

    Hai,

    If you want a control with three States there are number of ways to do this.  A simple solution of right is to use the checkbox that has now, OF mixed States mixed system and switch between States with the click of mouse.

    The alternatives are to create an Enum with three identical elements can be applied to the ring.

    Feel free to post for queries.

  • y500p, remote control issues

    the title suggests, my lenovo y500p VOLUME remote control does not work, specifically the volume and the mute button, the play, the buttons fast forward etc. etc. also does not work with wmp or wmc. The problem is that he actually used to work. Please help thanks.

    BTW, battery is new and the arrows works

    BTW has anyone noticed in lenovo y500p, when you close the lid to the upper-left corner of the laptop, it's not complete farm? Push down to hear a 'click' before she is fully closed, or is it just my laptop? THX in advance

    broken hinge question, lenovo contact hotline ask for replacement.

  • HP Touchsmart 600 - remote control issues

    I have 3 questions on the remote control for my HP TouchSmart 600, which works well for almost 4 years (not jinxies).

    #1 can no longer change the channel of the program guide.

    When I press the Guide button, the TV guide is displayed as expected. I can page up/down through the guide but when I press the button (the Center button on the remote control) to switch to the selected channel, it takes me to the library menu and position myself to the TV option saved rather than change the channel. He used to work. Note: I did take the trouble to restart the Live TV app like this seems to require to reach for the mouse.

    What I did or I'm doing wrong?

    #2 remote to 'enlarge' / 'restore down '.

    Is it possible to use the remote control to "enlarge" / "restore" in the Live TV window? Currently, I do it with my mouse.

    #3 remote sometimes loses focus

    I have never been able to identify, but the remote sometimes seems to lose focus. By this, I mean that it is as if the computer ignores all of a sudden. For example, many times I press the Guide button, the TV guide will go up but the up / keys does not work. I see that the computer receives the infrared signal because the blue light on the front flashes whenever I press a button on the remote control. Finally, after having rejected the guide and press different buttons on the remote control in a crazy attempt to clear the confusion, the remote control starts actually behave as expected.

    Advice would be appreciated.

    Thank you.

    Hi ou81aswell,.

    #1: looks like your remote can give wrong signals.  Have you tried restarting the computer?

    #2: no, the remote doesn't have this feature.  You will need to use the mouse

    #3: I've noticed that sometimes windows pop ups will steal focus from Media Center.  I found that by pushing the round button of Media Green Center of the remote control will take back you in Media Center.

  • dialog jquery apex 5.0 by dragging the issue

    Hello

    Always try to get used with 5.0 and its modal (or not) dialogue.

    Below is the sample app, modal dialog box stylized dialogue-based

    You questions:

    1. appendTo is only way to get response dialogue inside the shape?

    2 jQueryUI seems to have some problems with dialogue by dragging the function above problem under IE and FF (Chrome seems to have no problem with it), but it is more suitable to solve it?

    3. modal dialog in the apex gives defined resolutions of modal window: it can replace the jQueryUI however dialogue how set I've automatically adapted to the content?

    apex.jQuery( this.affectedElements ).dialog( 'destroy' ).appendTo( 'form#wwvFlowForm' );
    apex.jQuery(this.affectedElements).dialog({
        closeOnEscape   : true,
        draggable       : true,
    dialogClass : 'customStyles',
        height          : '300px',
        modal           : false,
        resizable       : true,
            width           :'900px',
    collision: 'fit',
    drag: function(event, ui) {
                    var fixPix = $(document).scrollTop();
                    iObj = ui.position;
                    iObj.top = iObj.top - fixPix;
                    $('.ui-dialog').css('top', iObj.top + 'px');
                },
      open          : function(event, ui){
        // Bind click handler on the overlay, to force dialog closing
        apex.jQuery('.ui-widget-overlay').bind('click', function() {
          apex.jQuery(this).prev().find('div:nth-child(2)').dialog('close');
          });
      }
    
    });
    

    Thank you

    Hi jareeq,

    I see now that the source of confusion may be that the application example dialogue always includes a page using the jQuery UI dialog box. Sorry about that. I had recommended to delete this page and I thought he had, but clearly, he didn't. For the reasons given in the blog referenced above, there is a lot of work to get jQuery UI dialogs well operate in an APEX application. So I highly recommend people to use the APEX for the dialogues in line (modal region) and modal pages.

    The jump from the dialog box down on the drag problem does not happen with APEX inline dialogues or modal pages so I recommend you to use those.

    Kind regards

    -John

  • Version control issues

    Hello world

    Can someone please tell me how to create a copy of a project that can be opened, edition, etc without affecting the project we have in Visual SourceSafe? We strive to create documents printed from our CHM files, and instead of playing with our project work, we want to test a copy first. I copied the project in Explorer, it opened and got an of SourceSafe Options dialog box. We went to file-> delete the Version control and that the project work, away from SourceSafe.
    All I want is a copy of the draft to play with until we get it to look like we want to, and then make the changes in the working draft.

    This is a repetition of the procedure.

    To clone a project under RoboSource Control:

    1. a copy of the project.
    2 remove the following files from the root of the new project:
    -pblsvrs.sss (if applicable)
    -mssccprj.scc (if present)
    -projectname.cpd
    -projectname.pss
    3. in Notepad, open projectname.xpj.
    4 remove all entries between and , but let the two tags.
    5. close Notepad, and then save the xpj file.
    You now have a project that is removed from the source control.
    6 open the project in HR and rename the project.

    You now have a new independent project.

    G

  • ThinkPad 10 support and quality control issues: Moderator/Support, help please

    Please ignore, or even support/moderator - I don't want to waste your time

    Hello

    I got a Thinkpad Tablet 10 Thursday directly from China. The Tablet has a manufacturing defect. There is a piece of land under the layer of glass/digitizer, but higher on the LCD in the middle of the screen. Since I had the Tablet, we have taps ghosts since the beginning of the unit for the first time. This morning, I started the unit to see that I have no sound. There are sound through the headphone jack, but not the speakers. I have completely restored the tablet to nine after that. After the factory restore, the unit still has no sound.

    I called twice to take charge in Atlanta. The agents were nice, but both finished transfer me to an extension that hung up.

    Unfortunately, this is not the first time that I had problems with Lenovo. When the TPT 2 came out, I bought a. The first unit was a problem of speaker and sent repair. The party remained on order for a week. It turned out that the part will not be available for a month. After that, an agent has replaced the tablet with one of the CEP. The second Tablet has arrived and would not start out of the box. I contacted the agent who sent yet another 2 TPT. It worked well for almost 2 years and still works as far as I know. That said, it took a month and a half before receiving a working machine.

    I know everyone tries his best, but I find myself in the same situation I was in before - work to do, without a Tablet for work or idea when or if it will actually get repaired - forget the fact that I'm going to actually get a new repaired tablet.

    Please, if a support person sees this, give me a way to contact someone who can do something. I really want to like this product that I could finally enjoy the latest iteration of this tablet. I realize that I'm probably just bad luck, but, right now, if there was another Tablet Wacom 64 bit there, I wouldn't buy Lenovo. I won't be the case.

    Thank you for your time,

    JD Strohl

    Jdstrohl,

    Thank you for sharing your comments and I'm certainly interested by your system to understand why you've had these problems out of the box and why the support experience do not go as planned.

    Would you please send me a private message with your details, system type and serial number and a case of service if you have received one during your support call.

    We'll see what we can work.

    Thank you!

    Mark

  • Audio, video and control issues game!

    I accidentally deleted the area of suppression of software/hardware sound wave for Audio and now I can not here anything, nor can I see games on Facebook.  Is it possible to reinstall it?  What I have to do.  I tried a system restore and update windows and I've also updated for service pack 3 hoping it would help, and it didn't.  Any help is greatly appreciated.  Thank you.

    Re-install your audio drivers.

    Go to the Web site of the manufacturer of your PC/laptop, then on the relevent to your download of machine support page, then install the audio driver files.

    See you soon,.

    Jerry

  • Interface IDS 4215 control issue

    Int2 interface is connected to a switch 2950 (outside PIX).

    Int3 interface is connected to a switch 2950 (inside the network connected via a PIX).

    Event Viewer ID the ID is to find & blocking signatures that I have activated but only on the interface int2. I don't see anything coming from int3 interface.

    The port is enabled on the ID & is listed in the Group of the interface.

    Things to try:

    Check the output of 'show interfaces' wait a few minutes and re-run.

    Check that the increase in number of rx on the interface int3 package is close to the increase in number of package rx for the Group interface statistics.

    Looking at the statistics of the interface group, you can see if these packets are observed in the form of IP packets and even in some cases the TCP/UDP/ICMP protocol.

    So see if the number of packets for these protocols is increasing.

    In addition there are lines for packages not processed because the Protocol is different. See what is the percentage of packets with the editing in this category. Normal switch management protocols appear in this category. If it's the majority of the counties package then we can often indicate that the switch is not configured to correctly copy (span) packets to the sensor.

    In addition, the statistics for the group will show how many alarms were generated. You can watch to see if the number is up.

    Check your switch and make sure that your span session is configured correctly. The duration must be configured to copy traffic between the firewall as good traffic to the firewall. If the sensor sees that traffic in one direction then it will usually not be able to well monitor and generate alarms.

    Another thing to try is intentionally send an attack to test through your firewall. Before you send the attack you can enable iplogging for the ip address you are attacking from. Once the attack and the Log of IP full, then you can download the intellectual property journal and see if packets have been seen by the sensor.

  • Animate to AIR for the FPS Desktop control issues

    Hi guys! I worked on a project in 60 fps.  When I publish in the embedded player, it works perfectly.  However, when I make (AIR 21.0 for desktop), it runs only at about 30 frames per second.  I tried to force the FPS to 60 via actionscript, but it does make a difference.  As far as I know, I do not have anything graphic or intensive process that he would even slow.  I also tried the three Modes to no effect.

    I'm doing something wrong?

    Scout from adobe allows to determine the problem, profile SWF tool | Download Adobe Scout CC

  • Playhead Drag / Lag issue

    Hi all

    I've been visiting these forums too often after the El Captain update. To add to the GPU problem, does anyone have any idea what's happening here?

    My head of reading in the source window is late my mouse and then retraces its steps.

    Please advise, thanks in advance.

    El Capitan is the ish... the OS had more bugs for more programs that I have seen in a long time... Apple is out patches to fix things slowly, check the updates it y...

    Neil

  • Drag and reposition a control

    I tried to find a way to drag controls (i.e. imageView) around a page and that's what I come up with so far

                onTouch: {
                    var iniX = 0;
                    var iniY = 0;
    
                    if (event.isDown()) {
                        iniX = event.windowX;
                        iniY = event.windowY;
                    } else if (event.isMove()) {
                        myImage.translationX = event.windowX - iniX;
                        myImage.translationY = event.windowY - iniY;
                    }
                }
    

    However, this doesn't seem to work. I think there could be a mismatch of type for the myImage.Translation property, but I was not able to understand this. Any thoughts? Or maybe is there a better way to slide items?

    All the move event is generated, you are reseting gwenael and iniY!

    Create gwenael and iniY properties and put inside ' if (event.isDown ())'.

  • Media on screen Volume control problem

    I'm unable to reduce or increase the volume on my screen when it comes to a media volume... Volume ring tones and notifications I can.

    Steps to reproduce:

    * Play a song or any games
    * Try to click the volume button that is on the side of the phone
    * volume media appears on the screen try reduce or increase the volume on the screen that does not happen.
    * but able to control via the side button

    Could you let me know phone is designed is such a manner or it should work. Can someone confirm please.

    Thank you!

    Andy,

    I am using lenovo vibe P1 update the latest patch... It seems that the fix was pushed back to the last update was done. Although I have some

    Android version: 5.1.1
    Build last updated: S137_ROW
    Model: Vibe P1

    There is a glitch while using the wide button to lock with an option screen click. Let's see if you can find it. But the media volume control issue is corrected.

    See you soon,.
    Just4onlineuse

  • Move the controls the façade of a VI. How do you get a reference to a whole "grouped" controls?

    Fundamental problem (boring, if not disastrous - but common - at least for me):

    When you try to two sktick different screws together and you copy the block diagram from one to the other, it sticks all the controls in the middle of nowhere.  Then, you will need to spend about 10 minutes by dragging controls to the screen from one end of the diagram to another - sometimes more than 15 screens.  Surely, there must be a better way?

    * Either by the way, you might think that labview would have this kind of parameters in the 'properties' of the control in the right click menu - but not joy.

    I guess the obvious thing is that you can write a VI that will get a reference to a particular control, then say together, that is the position (x, y) to zero.  The only thing is that generally, there will be a selection of controls, and often they will be organized nicely - after bring them to zero that you don't want to rearrange their new.  I tried grouping, controls, but then the problem is - how to get a reference to a group of controls.  If you move one of them it does not keep the spatial arrangement.  At this point, I lost - and easily spent more time that should fix this problem.

    Any thoughts?

    If I understand you correctly, when you copy the block diagram of the second VI in the first, the controls of the second end of VI place far-field on the left on the front panel of the first, correct?  I think that these added controls will maintain their relative positions between them so you should be able to find them all as a group in the left field. Then it's all just a matter of how to get them enmasse to the rest of the controls on the front panel. There are some easy ways to do this. There is a button on the toolbar at the top of the front window that allows objects to resupply/group/dissociate the façade. You can select all the orders/lights out in left field and ' ' together them. (As an alternative, you can also drop them all on a tab control that will serve as a container for them). Then you select this group and with selected scroll back on to the existing façade and search and select (shift) ALSO a control/indicator to group existing too. Then with the TWO existing of the selected control and the new group (or a tab with the new group control) selected using the ALIGN buttons to quickly bring a corner of the new group in the alignment of the old control. At this point, you can unlink the news and move it where it should be.

Maybe you are looking for

  • HP Envy 860se Phoenix: Overclocking HP

    I recently bought a Phoenix envy with a k 5820 in it, and I'm looking to do some overclocking. I want to mention comes with HP cooling by closed circuit water, which I don't know. I was wondering how long should I overclock the 5820 k (I heard it was

  • USB, check on VL900A - format file not supported

    I managed to record from my VL900a to a USB HDD and USB flashHowever when I try to play again on the VL900a I get the message "unsupported file format" both drives are FAT32. Help?

  • I can update my windows mail with outlook2010

    I have windows vista with windows mail, can I update my windows mail with outlook 2010

  • Laptop Acer with a single disc DVD - RW not recognised in Win Vista

    DVD drive has disappeared, but I see still physically! The machine is an Acer laptop with a single disc DVD - RW Win Vista Home Premium 32 running with all the latest updates installed. Any ideas? I noticed a few other posts which look similar to min

  • HOW TO UPGRADE VIDEO DRIVERS?

    HEY,. HOW CAN I UPDATE MY SONY VAIO VIDEO DRIVERS? THE WEBSITE OF SONY OR AMD? I PLAYED A GAME AND SUPPORT TEAM TOLD ME THAT I HAVE OR TO DATE VIDEO DRIVERS! I HAVE AMD RADEON HD 7650M... IF YOU COULD HELP, I'D APPRECIATE IT!