Button not react in multi layer configuration

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Button not react in multi layer configuration

    Hello, I use a stm32f7 cpu in multi layer configuration.
    When I create a button in first layer (background layer 0), it 's work fine but when I create button in foreground layer, button don't react and no message is send to callback window function. I have just a touch message send to background layer callback function. It seem touch message work only with with layer 0 (background or default layer).


    Thank.

    The post was edited 1 time, last by iens ().

  • Hi Jens,

    please make sure that you set the correct layer when writing touch coordinates into the PID buffer.

    Like this:

    C Source Code

    1. StatePID.Layer = LayerIndex;
    2. StatePID.Pressed = 1;
    3. StatePID.x = GetXFromTouch();
    4. StatePID.y = GetYFromTouch();
    5. GUI_PID_StoreState(&StatePID);


    The same has to be done if using the multi touch interface.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.