
Think I'll add another request though...
Any chance of an extension to GetGadgetAttribute(), say, in order to return the width (or height) of the client area of this control? I think this could be quite useful.
The reason I ask is that I would like to draw right up to the edge of the client area and the dimensions are of course affected by whether the control has a border or not. GadgetWidth(), on Windows at least, returns the entire width of the control regardless of whether there is a border or not! I would rather avoid hard-coding for the width of the border as I am not sure that this would carry from Windows to Linux etc. and the beauty of the canvas gadget is that it offers real cross-platform scope for the creation of new controls etc.
Thanks.