BUTTON_CreateEx() and Encoder.

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

  • BUTTON_CreateEx() and Encoder.

    Hello,
    I have a problem. I built a dialog with GUI_CreateDialogBox() with many buttons, and i can navigate between them with my encoder, and until so good.
    Now I need to add 4 buttons to my dialog, and also make it navigable with my encoder.

    I created my 4 buttons with the function BUTTON_CreateEx() in the WM_CREATE. After, I attached the new handle buttons to handle parent ( dialog handle) in the branch WM_POST_PAINT with WM_AttachWindow().


    the creation of 4 new buttons is successful; but i can't navigate between them with my encoder.

    does anyone have any suggestions?
    Thanks to all
    Andrea
  • Hello Andrea,

    Attaching the buttons to a certain window should not be necessary, because there is a parameter hParent which can just be used. I would suggest you to use the handle of the client window. Use the function WM_GetClientWindow() in order to receive its handle.

    Best regards,
    Adrian