With the help of the ImageView as a button

no idea how to do this? Thank you

Hello

You can check the sample of the github and the project name is CascadeCookBookqml.

Link: https://github.com/blackberry/Cascades-Samples

In the folder property button.qml contains the ImageButton demo you can refer to that.

Thank you

Megha.

feel free to accept as a solution or the post.

Tags: BlackBerry Developers

Similar Questions

  • Show/hide an element with the click of a button - Script works does not in Firefox

    Hi all

    Basically, I'm looking for show/hide a DIV with the click of a button.

    The script works in IE but fail in FF.

    I am sure that I am the problem here.

    <script type="text/javascript">

    function toggle(box) {
         var el = document.getElementById('box');
         el.style.display = (el.style.display != 'none' ? 'none' : '' );
         
         
         value = document.getElementById('content').value;
         if(value=="Show Calendar"){
         document.getElementById('content').value="Hide Calendar";
         }
         else{
         document.getElementById('content').value="Show Calendar";     
    }
    }
    </script>


    <style type="text/css">
    #box{
         background-color: #C0C0C0;
         height: 100px;
         width: 100px;
    }
    </style>
    </head>

    <body>

    <div id="box">
    </div>

    <input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />
    </body>
    </html>

    WE

    He also worked if you had changed-

    
    

    on this subject.

    
    
  • Problem with the report as a button link

    Apex 3.2

    I had a relationship with a column of link to another page.

    The user wanted a button instead of one of the standard icons, so I change the link text to

    < button type = "button" > Clean < / button >

    If I use firefox, then this link works very well, but in IE, nothing happens when I click on the button.

    Gus

    Hello

    Perhaps this example help

    https://Apex.Oracle.com/pls/Apex/f?p=39006:35

    I created request report

    SELECT empno,
      ename,
      job,
      APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:37:&APP_SESSION.::&DEBUG.::P37_EMPNO:' || empno,NULL,3) AS linkurl
    FROM emp
    

    Then I change the LINKURL Link Text column

    
    

    Link attributes

    class="hideMe508"
    

    Target URL and URL # (sharp right)

    Kind regards

    Jari

  • Problem with the Code/Design view buttons

    (My bad... maybe a clearer title will help you...)

    OK, I work with DW CS4 v.10.0 Build 4117 on a platform of Win XP Pro SP3.

    When you work with files from my site, they open in Code view.  The Split and design buttons are grayed out.  When I click the page layout button, the check mark is sometimes next to the option Code, but sometimes next to Design (even if the page is clearly displayed only in Code view!).

    To view the file in Design view or split view, click the page setup button, click on the Code, click on the button layout again, click Design or split view and then it will display the page in this way file.

    It's SO frustrating!  Is this a bug in CS4?  (I scanned through the other topics and can't seem to find anything about it.)  I don't remember having this problem with CS3 and have spoken with other DW CS3 users who also say that they have never had this happen.

    What can I do?

    Thanks in advance for any help you can provide.

    Susan

    Hi Susan,.

    I might have a solution for this one. I had the same problem. It would be 'reliable' whenever I would create a new PHP file.

    "File" > "New" > "PHP" > Layout 'None' > 'Create' - no buttons 'Split' or 'Design' (grey)

    In 'preferences' under 'File Types/errors', there is a section "open in code view".

    I removed the. The extension PHP from here, tried again and it worked!

    Maybe it will work for you.

    Good luck

    Tony

  • ThinkPad e555: with the new drivers, brightness button do not work.

    I have a Thinkpad with AMD A6 7000 and graphic card R4 e555.

    I already installed the new version of the video drivers AMD www.support.lenovo.com

    After installing new drivers, version 15.200.1060.0, the bar control of brightness (from settings panel) and the brightness keys (F5 and F6) to stop work.

    Restore driver previus version brings back all work orders.

    Thank you for your attention.

    Sorry for my English...

    Problem solved!

    I did a clean install of Windows 10.

    With the drivers 15.200.1065.0 works now!

    I have not installed the latest version of Catalyst from AMD. Maybe there is interference between the pilots.

  • Smartphone blackBerry OS with the top PASSWORD Lock button

    Hello

    To begin, I HATE how the top button snaps no more. I just updated my OS to the latest version.

    I would like to know the most recent operating system that still has the lock button high locking with password lock.

    NO ALTERNATIVE SOLUTION (for example press alt + entry, set the convenience etc keys)

    I used to have a 5.0.0.4xx, and now it's 5.0.0.6xx or something. I did some research and I think that the newer operating system with the password lock is 5.0.0.536.

    Can anyone confirm or deny? I have to go with an older OS?

    loaded 5.0.0.415 on the phone and the locking password works.

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • change the opacity of a row of buttons with the click of a button

    Hello

    I created a button with an instance name of "ClickMe" and also five buttons with their own instance name (B1 - B5). I want to change their opacity to zero onclick preferably as an interpolation from where they are now in the (100%) opacity to zero. I need help with that.

    I know it is to import the classes and the creation of a function. I also believe that I can control all of the 5 buttons with iteration.

    ClickMe.onPress = function() {
       
        for (var i=1; i<=5; i++) {
            ['B1_'+i].changeopacity = MyMC!['B1_'+i].changeback;

        }

    I know that's not how, but something along the lines of what I need.

    you don't know.  the alpha property varies from 0 to 1.  If you want a 20% alpha, utilisez.2

  • Problem with the play, pause, stop buttons etc on Satellite M30 842

    I have tried pretty much everything I can to get these buttons to work, but it seems that their just their for pleasure. any suggestions?

    I also wonder if anyone knows if it is possible to download the drivers for the sd card reader able to read cards mmc...?

    Hello

    I put t believe that the buttons were eating here just for fun. If the laptop is not preinstalled with recovery CD all tools must be installed correctly. I don't know, but TOSHIBA controls V3.01.0400 tool is responsible for this button.

    To read SD cards, you need to install a tool SD Card Driver Set V2.0.4 and TOSHIBA SD Memory Card Format V2.0.1.1. Try it.

  • I get only a single level of cancellation with the pop method / Cancel button

    Hello.  Why this code produces only a single level of cancellation?  I thought whenever the pop method is triggered on a table, the table shrinks and you can continue to pop as long as the table is not less than 0.

    Here is my code:

    import flash.display.MovieClip;

    import flash.display.Shape;

    import flash.events.MouseEvent;

    import flash.events.Event;

    // http://www.Kirupa.com/Forum/showthread.php?309502-AS3-spiral-effect ... it's one used previously in other files

    // http://hub.tutsplus.com/tutorials/create-a-basic-drawing-application-in-Flash--active-1627 ... it's the one used here

    var my_mc:MovieClip = new MC();

    var container: MovieClip = new MovieClip();

    stage.addEventListener (MouseEvent.MOUSE_DOWN, startDrawing);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopDrawing);

    var shape: Shape = new Shape();

    var myArr:Array = new Array();

    var myArrRedo:Array = new Array();

    var myArrObj:Array = new Array();

    var undo_btn:MovieClip = new Btn_mc_undo();

    var redo_btn:MovieClip = new Btn_mc_redo();

    undo_btn.x = 10;

    undo_btn.y = 350;

    redo_btn.x = 110;

    redo_btn.y = undo_btn.y;

    addChild (undo_btn);

    addChild (container);

    stage.addChild (redo_btn);

    var nums:int;

    undo_btn.addEventListener (MouseEvent.MOUSE_DOWN, undoEvent);

    redo_btn.addEventListener (MouseEvent.MOUSE_DOWN, redoEvent);

    function undoEvent(e:MouseEvent):void {}

    container.removeChild (myArrObj.pop ());

    }

    function redoEvent(e:MouseEvent):void {}

    nothing yet

    }

    var num:int = 0;

    function startDrawing(e:MouseEvent):void {}

    Shape = new Shape();

    container.addChild (shape);

    Shape.Name = String (num);

    myArr.push (shape.name);

    myArrObj.push (shape);

    shape.graphics.lineStyle (3, 0xcccccc);

    shape.graphics.moveTo (mouseX, mouseY);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, whileDrawing);

    NUM ++;

    }

    function stopDrawing(e:MouseEvent):void {}

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, whileDrawing);

    }

    function whileDrawing(e:MouseEvent):void {}

    shape.graphics.lineTo (mouseX, mouseY);

    }

    a couple of these lines are surplus to troubleshooting (for example the num ++);

    I offered him work.  Maybe you have something else in the file which you have not realized.

    If you put a trace (e.target) according to your drawing, you'll see that it calls the function of drawing when you click the button (s).

    Here is a link to an example file using your code with a few adjustments for lack of content...

    http://www.nedwebs.com/Flash/AS3_Draw_Undo.fla

    Another remedy would be to create a separate drawing area of the buttons and target this area instead of the scene for your drawing listeners.

    It would also be a good idea to use a CLICK listener to the buttons and not a MOUSE_DOWN.

  • Spinnerlist with the click of a button

    Does anyone have a code example showing how to open a spinnerlist with a click of a button?

    I had it myself, here is the code:

  • problem with the command stop and buttons

    Hello world.

    Here's my scenario

    I have a project where I have 5 buttons (all on separate layers) I want to put a link to the image 2, image 3, image 4, part 5 and part 6.

    Thus, for example, I want my topic is to link to the Framework 2 and last new button, to link to the image 3

    The separate pages are housed on the layer 'layer of page '.

    Please see the image below to see what I mean

    screenshot.jpg

    I'm using the code snippets in cs5 to do this, so I am using the command "click go to frame and play" and change the number of the framework accordingly.

    My problem is when I use the command to stop on the first frame. If I do not use the command the swf allows to select the 6 images constantly, but when I use the command stop buttons do not work because the application has stopped.

    Anyone could shed some light on this problem?

    It may be a case for the use of your gotoAndPlay() where you need gotoAndStop().  If you are on the frame you say to go to play, he can't go anywhere to get there, and stop it is already sold out, so it will play thru to the next stop.

  • Rotate a 360º mc step-by-step 'smooth' 45 degrees with the left and right buttons

    Hello world

    I thought it should be easy.

    I have a circular mc (wheel2) and this must turn "smooth" in increments of 45 °, left and right (buttons).

    The script I use on the button (to the right);

    {We (Release)}
    var turn: function = function (obj:MovieClip) {}
    obj._rotation += 3;
    If (obj._rotation == 45) {}
    clearInterval (interval);
    }
    };
    var interval: Number = setInterval (rotation, 10, wheel2);
    Stop();
    }

    He moves ok "once" and then turns 360 °. Should I set a new value for my mc?

    Thank you

    Pascal

    To disable the buttons you will need to assign instance names in the properties panel, let's say that you name them leftBtn and rightBtn...

    {We (Release)}

    leftBtn.enabled = rightBtn.enabled = false;

    var turn: function = function (obj:MovieClip) {}
    obj._rotation += 3;

    stepCount += 1;
    If (stepCount == 15) {}
    clearInterval (interval);

    stepCount = 0;

    leftBtn.enabled = rightBtn.enabled = true;
    }
    };
    var interval: Number = setInterval (rotation, 10, wheel2);
    }

  • Tabs aren't appearing online with the Firefox drop-down list button.

    Here is a screenshot of the problem: http://i.imgur.com/y2binxI.png

    The tab bar is not the tail with the drop-down list button, and nothing I've tried yet fixed.

    Things I've tried:

    - Un-maximising and re-maximising the window (this has worked in the past when I have this problem, but not this time)
    - Moving things around in the Customize screen to see if something got moved out of place
    - Restarting with add-ons disabled
    - Checking for any toolbars to hide/unhide
    

    I have not yet tried to do a full uninstall/reinstall again because, well, that would be a little pain.

    Any suggestions?

    You run Firefox with an enlarged screen?

    You can set the Boolean pref browser.tabs.drawInTitlebar true on the topic: config page to see if that helps.

  • Widget slideshow full screen with the ToolTip widget

    Hello!

    I'm Muse learning and building my own portfolio site to scroll down a page.

    http://nsfun.BusinessCatalyst.com/index.html#cargo

    During the portion of the cargo, I need a 100% with the slide show with the unique tips and buttons on each slide.

    I tried 2 different solutions, but none of them works:

    1. full screen slide show widget, but it is not allowed to combine with the ToolTip widget

    2. blank publication widget. It is possible to combine with the ToolTip widget, but I can't set it to 100% width and a little hard to hide thumbnails

    I'm happy to walk there is a solution for this problem. I would be happy to buy a paid so widget if this helps

    Thanks for your help!

    You can use the composition for this slideshow does not allow to insert elements, whose composition, you can resize the container so that it should cover the area 100% page rendering in browsers.

    You can also check these options:

    http://musewidgets.com/collections/all/slideshow

    Thank you

    Sanjit

Maybe you are looking for

  • Photos app, download more pictures I have in my library

    I'm looking for help.  I just (painfully, because of my slow internet) downloaded about 40 photos from my iPad in iCloud photos.  Once home, I made some basic changes, on the iMac and should have to wait for a download more.  Of course, at the beginn

  • Need driver audio for Windows Vista - Satellite M100

    Hello I'm a new Member here and I have a problem with the audio driver for vista for Satellite M100-222, he gives me .inf file not found.Can someone help me please? Thanx

  • Subvi as a parallel or called proceeding?

    Hello. I'll put up a QFSM. The basis of the example in https://decibel.ni.com/content/docs/DOC-32964, there are a few vi (procedures 1 and 2) that run in parallel with the vi main. These vi have their own QFSM. My question is this: is it better to us

  • Save problem

    I use Sage accounts and save it on an external hard drive. I can't open files while my PC trying to open them in Word. I gave the portable player to my accountant who could open the files Sage o his office, so the problem seems to be with my PC. Any

  • Server to the client

    Dear all, I wrote a lookout process and now I have to use the client server architecture, please help me build the client version of the initial process. Best regards, Mohammad javad Danesh