PDA

View Full Version : Addition to cSigCJPushButton



Emil
3-Aug-2009, 10:40 AM
Hi guys

I have extended the cSigCJPushButton class to integrate fully with the VDF framework.

This means that when the codejock button gets the focus it will show the thick border (or blue in XP) and when losing the focus the border will be restored the the previous appropriate border.

The new code is added at the end of the class and consists of:
Default_State (property)
CurrentButtonState (property) PRIVATE
Remove_Object (method) PRIVATE
PrivateSetCurrentButton (method) PRIVATE
KeyAction (method) PRIVATE

Two new mappings are made to the wrapper:
pbEnabled => ComEnabled
pbDefault => ComDefault

On new Private property is added:
private.CurrentButtonState

The Codejock button now also supports the same Default_State behaviour as the VDF button

Regards
Emil Stojanov