Connect TRootEmbeddedCanvas in sub-frame with button

Dear Rooter,

I have a problem when I try to connect TRootEmbeddedCanvas with a button.

I divide my main Frame into 2 vertical frame (v11frame and v12frame). In the first vertical frame, I put buttons (bt_load, bt_exit), and in the second frame I put my canvas (fECanvas).

I want that when I click the button bt_load, there will be a graph on the canvas, but it does not work now. Please help me.

Thank you for helping me.peakprogram.C (3.5 KB)

Hi,

Try this way: peakprogram.C (3.1 KB)

Cheers, Bertrand.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.