i just reread some usc files and wrote a simple example:
ExampleCtrl.usc
ctrl ExampleCtrl {
group "Complex"; //will add this Ctrl to the Complex group
GetMinSize() {return Size(100,50);}
GetStdSize() {return Size(400,150);}
bool privateVar = true; // so you can configure your private variables in the Layout Designer
Paint(w) {
r = GetRect();
//have a look at CtrlLib.usc for many usefull functions
//but as far as i have read you can "only" draw rects, images and text
//these three lines draw a white Ctrl with a black thin border
w.DrawRect(r,:SBlack);
DeflateRect(r); //makes the rect smaller by one on each side
w.DrawRect(r,:SWhite);
}
}