Compound of button: how to return the signal of a component to another

Hello, I am quite new in BB10 development. I have a question:

I'm doing button image with text. My idea was that I will create custom component consists of two components:

ImageButton

Label

Label will be the button Image and contain customizable text

It basically works, but it seems that swallows Label click signal and it is not propagated to the ImageButton control. I tried to put

setFocusPolicy (FocusPolicy::None); for the label, but it does not work.

My questio is: how to do it correctly? Should I capture signal clicked() on the label and send it back to the ImageButton control?

Thank you

Tom

Hello!

This can help you!

Refer to overlap touch policies in

https://developer.BlackBerry.com/Cascades/documentation/dev/touch/touch_propagation.html

OR

See how to create the source for the Timer class

https://developer.BlackBerry.com/Cascades/documentation/dev/signals_slots/signals_slots_create_timer...

I think so

The control signal can be connected to the signal of another control.

-Rezé

Tags: BlackBerry Developers

Similar Questions

  • set_item_property changing the text, but how to return the original value

    Hi all
    I use Oracle Forms Builder 10 gr 2 / I have the following problem: in a button I trigger when it is pressed. And then I change a few elements prompt text. But my problem is how to return the original prompt text. A kind of refresh or clear?


    Here is a piece of code that modifies the prompt text:
    set_item_property('XXBG_CE_STATEMENT_LINES_NEW.AGENT_NO', PROMPT_TEXT, get_item_property('XXBG_CE_STATEMENT_LINES_NEW.AGENT_NO', prompt_text) || '*');
    Thanks in advance,
    Bahchevanov.

    This is not tested, but it's something like this:

    declare
       v_item  varchar2(200);
    begin
       v_item := get_block_property('block',first_item);
       loop
          exit when v_item = 'block.'||null;
          set_item_property(...);
          v_item := 'block.'||get_item_property(v_item,nextitem );
       end loop;
    end;
    
  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • Columns of folder: by default, how can return the first column 'Name' without having to move it manually every time?

    Something's happened awhile and when I create a folder which appears the first column is the column 'Date modified '. By default, how can return the first column 'Name' without having to move it manually every time?

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders#section_4

    http://Windows.Microsoft.com/en-us/Windows-Vista/folders-frequently-asked-questions

    It will be useful.

  • When checkboxing 'Use as Button' - how to change the color of overview?

    Smart form with the text: when checkboxing 'Use as Button' - how to change the color of overview?

    In the button shape properties panel, you will find a 'Normal' field, if you open the drop-down list you see the other two States, select and change the Fill/Color/Character...whatever you want.

    If you want to use the States for this button several times, I recommend to save the style or to create styles in the object Style Manager where you can also modify built-in three States: Normal, rollover and down.

  • How to return the approver e-mail notification iProcurement in R12?

    Hi all

    How to return the approver e-mail notification iProcurement in R12?

    Symptom: A Summit a requisition to B, need for approval of B

    (1) B lost the e-mail that is sent by A
    (2) need B a new notification sent by A.

    environment: Oracle R12.1.2 | AIX 6.1




    Concerning
    Terry Chen

    I thank you for your answer, you want to reassign B once again?

    Yes.

    Can I use the feature "Rewind"? Can this function sends notification to the user again?

    Don't know if it would work for notifications of iProcurement, then please try first the option to reassign.

    Thank you
    Hussein

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • How to test the signal strength of an Airport Express, which extends a network?

    I am trying to understand how my Airport Express is actually help to expand my network, and if I should move somewhere different. Any help would be appreciated!

    Current situation: my base station is an AirPort Extreme in our apartment computer room; for the internet, which is plugged into the wall. The wifi network is extended in the living room via an AirPort Express (version 7.6.4). There are on the same cabinet as the AirPort Express to Apple TV. The Airport Express has an optical cable connecting to a sound bar (which has an additional HDMI connection to the TV).

    I don't really know if the AirPort Express Terminal, he does something useful. The network is set to be extended, best I can tell: Airport Extreme network Mode is "Create a wireless network", and network Mode of the AirPort Express is "extend a wireless network. But still, the wifi on my iPad and iPhone signal strength seem to fall much in the living room. Apple TV usually broadcasts music from my desktop computer (in the computer room) well enough, but if I try to play music from my computer via the Apple Express at the soundbar, the connection is terrible and fall. (Which could be a problem with wifi, or could be an aging Airport Express question, could be a cable problem or might be a sound bar problem...)

    An example of what worries me: if I go to the Airport utility on my iPhone and a glance at the Airport Extreme, it has 4 Wireless, including Apple TV clients. But if I look at the AirPort Express, there sometimes a client wireless (iPhone), but never shows the Apple TV: even if the Apple TV is about 30 cm of the Airport Express. It's as if the 30cm distant to the Airport Express connection is weaker than the connection of two-rooms-distant Airport Extreme, but I am probably wrong that.

    In any case, is there a way to test what speed is through the AirPort Express, compared to through the extreme? I tried to use applications like CloudCheck on my iOS devices, but those only measure the speed of my network, and it is unclear whether or not he uses the Extreme or Express.

    Thanks in advance and all apologies if I used (almost inevitably) 'Express' when I should have used "Extreme", or vice versa, somewhere at the top.

    One way to see the strength of the signal is the Alt (option) key while clicking on the WiFi icon in the menu bar.

    But you see not directly related to the airport of arrival. Also the Airport utility does not give much information.

    You can see a lot more with the free app (Appstore) called "WiFi Scanner".

    The problem could be that the place you have chosen for the Airport Express can be better: it should be somewhere in halfway (in force) between the Real and where you sit with the iPad/iPhone.

  • How to calculate the signal / noise from the graph?

    In my current project, I read a periphera voltage signal. the signal lead noise even after filtering.  So, to identify the necessary data, I averaged the signal.

    I have attached the file with an image of graphics. In this graph, the recorded data are drawn black and medium online graph is plotted in red. Now, I have to calculate the ratio of signal to noise to specify with these peak values. How to do?

    As the signal passes through zero, be careful in the way you set the signal / noise.  For sinusoidal signals, that ratio is defined as the RMS value of the noise (the signal with the desired sinusoidal signal deleted) divided by the effective value of sinusoidal component.

    First of all I would like to subtract the average value of the raw signal.  The difference is the noise.  You can set the signal / noise.  A RMS calculation might work.  If you have a mathematical model for the desired signal, a fitting for this model can be useful too.

    Lynn

  • How to trace the signal acquired against the clock all the time fixed by using Graph XY?

    Hello

    My goal is to trace the signal acquired against the clock all the fixed time dynamically. In General, it is like trace the waveform of the signal against the clock in a graph, but don't keep the recent 10 min waveform. My current approach is to get the timestamp by a VI and the express VI to use XY graph to make the plot. The result keep all data in the history which is not what I want. My question is that how to achieve my goal?

    Thank you very much

    Hao

    One way to show the last ten minutes of data is to use a graphic instead of a graph. Set the size of the history of the ranking for the number of samples you acquire in ten minutes.

    If you want to use the graph XY, you will need to manipulate the data yourself. If you don't want data from the last ten minutes and you want to throw all the old data, set up a circular buffer sized to hold the ten minutes of data. Once the buffer is full (after the initial ten minute break) adding a data point removes the oldest point. Make the buffer of a 2D with X data table in a line and the data Y in the next line. A queue with loss can be used in recent versions of LV to implement a circular buffer. In older versions, a driving force would be a good choice.

    Lynn

  • How to select the signals from the output of a DAQ assistant

    Hello!

    I am a new user of Labview 8.5 and I work with a USB-6210. I have two different instruments connected to the same USB device, half of the channels are used for the transducers of pressure where I only need reed and record data, while the other half are associated with TCD detectors where I need to perform an analysis of the signal to get and save the data. I'm in the first stage of construction the block diagram, once I have defined each of the signals that its correspondent of channel using the DAQ assistant, I need to select and separate the signals coming from sensors of pressure from those who come by the TCD detectors, before that I can continue to draw the block diagram. I am using the function select Signal, but I don't know how to do this. Can you get it someone please let me know at least in which manual, I can find a good explanation? I have read the getting started and the LabView user manual, but they have not been very helpful so far.

    Thank you!

    I fixed it. As you say, I had some mistakes in the thread, but it's working now. Thank you very much for your help! It was very useful.

  • HTML Help Home button - how to change the content

    I use Robohelp 11 and we post our content as microsoft HTML help.  I wonder how to change the content of the button the top of the page next to the front buttons and back at home.  Since it's HTML Help I can't use a skin to change the buttons, but I need to change what is displayed when you click the home button.  I can't find how to change when the button links to.  I just want to link to our home page.

    Thank you!

    Matthew

    Hello

    On luck outside, that you are not really wanting to address the 'skin in a CHM' quite yet, try this.

    First, note the path and the name of the file that you want to appear when the user clicks on the Home link.

    Open the pod of setting up a project. (View > pods > project configuration)

    Expand Windows, and then double-click the CHM window. (If you do not see a CHM window, you will need to create a)

    In the Properties window, click the Advanced Properties button.

    And from the Advanced Properties dialog box, you type (Yes, you heard that right, TYPE) the path and the name of the file you want. (Remember this first step?) Note that you can also type a URL pointing to a website here.

    Hope this helps... Rick

  • How to return the lines after a selected line

    Hi there, I need return the straight after that the condition I have is filled...

    given the following table:

    date col ID
    123 Y 29/02/2013
    123 X 27/02/2013
    * 123 Y 26/02/2013 *.
    123 Z 26/02/2013
    * 123 X 25/02/2013 *.
    123 Z 25/02/2013

    I need a query that retrieves all rows that come immediately after col = 'Z' it is
    123 X 25/02/2013
    123 Y 26/02/2013

    Any help would be appreciated,

    Hello

    Martel wrote:
    Hi there, I need return the straight after that the condition I have is filled...

    given the following table:

    date col ID
    123 Y 29/02/2013
    123 X 27/02/2013
    * 123 Y 26/02/2013 *.
    123 Z 26/02/2013

    The 2 highest ranks (and the 2 lines below, by the way) seem to have the same date. I guess there is something that you are not showing that puts unqmbiguously in the order listed.

    * 123 X 25/02/2013 *.
    123 Z 25/02/2013

    I need a query that retrieves all rows that come immediately after col = 'Z' it is
    123 X 25/02/2013
    123 Y 26/02/2013

    It's just that the analytic LAG function.

    Any help would be appreciated,

    Here's one way:

    WITH   got_prev_col     AS
    (
         SELECT     id, col, dt     -- DATE is not a good column name (id isn't so good, either)
         ,     LAG (col) OVER ( PARTITION BY  id  -- or omit PARTITION BY clause
                                    ORDER BY      dt
                          )  AS prev_col
         FROM    following
    )
    SELECT     id, col, dt
    FROM     got_prev_col
    WHERE     prev_col     = 'Z'
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data. For example, what makes one of the lines 26/02/2013 come in front of the other. Explain what id role plays in this problem. better yet, include a couple of different id values in the sample data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • How to return the sprite object?

    I want to load both image and add each image to each sprite object, like photo one sprite1 and photo b to spriteb, I know that I can load a pictue with the following code:

    loadImage ('a');
    loadImage ('b');
    private void loadImage(imagePath:String):void {}
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);
    Loader.Load (new URLRequest (imagePath));
    }
    private void onImageLoaded(event:Event):Sprite {}
    var loaderInfo:LoaderInfo = event.target as LoaderInfo;
    _loadedBitmap = LoaderInfo.Content as Bitmap;
    Return runPostImageLoad (_sprite);
    }
    private void runPostImageLoad(_sprite:Sprite):Sprite {}
    ... photo of //load
    }

    But I want to make my code like the following, because I want to use sprite1, sprite2 for something else:
    var sprite1:Sprite = loadImage ('a');
    var sprite2:Sprite = loadImage ('b');

    I don't know how to change the loadImage function to return the sprite object. Could someone tell me how to do?

    Thank you

    use:

    private var _sprite:Sprite;

    .

    .

    private void loadImage(imagePath:String):Sprite {}

    var loader: Loader = new Loader();

    Loader.Name = "Loader";

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);

    Loader.Load (new URLRequest (imagePath));

    _sprite = new Sprite();

    _sprite. AddChild ("Loader");

    return _sprite

    }

    private void onImageLoaded(event:Event):void {}

    var loaderInfo:LoaderInfo = event.target as LoaderInfo;

    _loadedBitmap = LoaderInfo.Content as Bitmap;

    runPostImageLoad();

    }

    private function runPostImageLoad (): void {}

    just draw the shape of the irregular part

    If (_loadedBitmap...) {

    _sprite.removeChild (_sprite.getChildByName ("loader"));

    _sprite. Graphics.drawRect (...);

    }

    }

    p.s. Please check the correct and useful.

Maybe you are looking for