Run time call back

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

  • Run time call back

    I would like to add widgets to a window at run time, so that all same type will use the same call back routine (for example all buttons will use the same call back which will act according to the button ID),
    can I add a callback to a widget, or only to the window? if window , do I need to as child of the container window?
    Help on this will be appreciated.
    Thanks