
--- Axel Simon
Note that in both settings it is possible to put one button into two different container. But only in the Object I/O approach this can easily be detected (you keep all created rIds in an array and see if they have been used yet). In GIO you would need to traverse the whole widget tree of all windows to determine if a button is already inserted somewhere else.
I don't know how this is made with wxWindows, but in GIO for Port the container for the button is specified as argument to "button" function. Once created the button cann't change its parent. I the trouble here is with "layout" attribute. Its setter should chech when all widget inside the Layout data are assigned to the target widget. I suppose that with wxWindows the case is similar with the Port. Krasimir __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com