Thursday, December 20, 2012

ssClose

ssClose 1 to 3 are just a small image that serves as the exit or close button of your form.  Please see previous posts regarding those.

ChangeLog as of December 20, 2012:
  • I accidentally removed form pinning capability via user interaction on ssSwitch.  Fixed.
  • Changed previous skin because it now looks "bland" to my taste.  Created skin # 2.
  • Added nSkin parameter in the end with default value of 1.  Right now it only has two values, i.e., 1 or 2.
Here are the current skins:



Like every class in my library, its usage is very simple:



And as you can see, the first parameter is nPosition. It has possible 4 values which are:
1 = top left
2 = top right
3 = bottom left
4 = bottom right

Meaning, by simply changing the value of that first parameter, the class will auto-positions itself on any of the four corners of your form.



For those who are not familiar with its form pinning capability, it means you can drag around the form where this class is except when you click the switch and it turns into red, then you can no longer move your form.  To move it around again, click again that switch so it will be in the OFF position.


Cheers!


No comments:

Post a Comment