[archived content]
Dfl /

So you want a label of text on your form but have it keep the form's background...

import dfl.all;
import dfl.internal.winapi;

/// A simple label that does not show a background and does not accept mouse or click events.
class SimpleLabel: Label
{
        protected override void onPaintBackground(PaintEventArgs ea)
        {
        }


        protected override void createParams(inout CreateParams cp)
        {
                super.createParams(cp);
                cp.exStyle |= WS_EX_TRANSPARENT;
        }
}

You can even use this in Entice Designer by adding a regular Label to your form, right-clicking it, going into the Properties, and changing the type to SimpleLabel.

Page last modified on September 14, 2007, at 11:30 AM