in reply to Detecting memory leaks.

Is there any difference between Wx::StaticText->new(...) and i_staticText->new(...) ?

Replies are listed 'Best First'.
Re^2: Detecting memory leaks.
by Steve_BZ (Chaplain) on May 04, 2015 at 16:37 UTC

    Hi Richard,

    Yes, Wx::StaticText->new(...) is the standard call, but on Linux you cannot set the background attributes.

    i_staticText->new(...) is based on Wx::Panel, to give it a background and then Wx::StaticText->new(...) is within the panel. That way I can adjust the background attributes like background colour and length of field.

    Regards

    Steve