PDA

View Full Version : Checkbox mixin



Peter Crook
12-May-2009, 04:49 AM
Currently my favourite skin is AeroConcepts NormalAeroX. Unfortunately this makes checkboxes all but invisible. I have also noticed that some applications use a checkbox with a depressed edge around the box itself.

The attached mixin can be added to your checkbox and dbcheckbox classes and modifies the effect of applying Form_Border Border_ClientEdge so that it puts the depressed border around only the box and not around the box and its label as happens with the standard class. As far as I have been able to test it behaves just like a regular (db)checkbox in all other respects as long as you don't apply Anchors that cause its size to change. I have added one new message that you can broadcast to depress the borders of all or none of your checkboxes (I have added a checkbox to my skin selection view that broadcasts this message).


Peter