Hello Lucas, GUIX Studio template windows gather window and its children under single instance that can be easily duplicated. The event handler for each template window is different (just as it would be for a widget), however you only get access to one event handling function for all widgets (inside and outside of the template). What you can do in your application, is create an event handler-like function that would call first inside actual event handler for each individual window. This function would handle events from widgets inside temple (you can use GX_SIGNAL(widget_id, event_id) to receive child events at the parent level). Once it returns, the actual event handler would perform window-specific tasks. There are also other ways of getting the functionality you described. If all you require is to place some header/footer overlay on the window, you can use custom drawing function that would first call the default drawing function (gx_event_draw(p_window)) and then perform canvas drawing using gx_context_* and gx_canvas_* functions. Alternatively, you can also create nested windows. Your top-level window will contain header and footer and act as a parent for other windows. In case when you need to change between windows, you can simple detach/attach windows to the top-level window, rather than root window. Regards
↧