<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Hi There,</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Can I somehow get the object which owns a Canvas? e.g.:</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">function GetCanvasOwner(ACanvas: TCanvas): TObject;</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">begin</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"> Result := ACanvas<font color="#ff0000">.Owner;</font></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">end;</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">pb := TPaintBox(GetCanvasOwner(pb.Canvas);<br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Thanks!</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Xiangrong</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div><div class="gmail_signature"><div dir="ltr"><img src="https://docs.google.com/uc?export=download&id=0B3cr36sBDhsCbjdsUFlJQTFIRlk&revid=0B3cr36sBDhsCT3k0STNYRXJ6UlZQd2w2WSt6Z0MyNzNJVlpjPQ" width="96" height="95"><br></div></div></div>
</div>