DirectSkin problem on Tab,Calendar & Slider Controls in VB6.0

Hi.

I am trying to use DirectSkin for VB 6.0 application.

Skinning works for all controls except TabStrip,SSTab control & Smart Tab Control ( a Third Party control).
As you can see the color of the tab changed but the effect did not come.

However it worls for MS FlexGrid control which is again a third party control

 

It does not work for MS  Calendar control 8.0 & Slider controls.

In case of calendar control, the color of the control changed but effect did not come.
In case of slider control, the style of the slider changed but the background color remained the same.

Can you please let me know if this is a drawback or there is another way to apply skin on these controls ?

Regards,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4,185 views 2 replies
Reply #1 Top

Some controls look like standard controls but are different under the skin.  Those tab controls are unfortunately like that.  I know the SSTab control will never skin.  The best you would get would be for it to pickup the skin colours in which case ForceSystemColours might be required.

Generally speaking any third party controls made since Windows XP came out are likely to have the ability to be skinned.  You may need to add a themeaware manifest to your application and call UxThemeEmulation (TRUE) before DoWindow to make them skin.

Regarding the bad background colour, ForceSystemColours (TRUE) before DoWindow may help there.

I have a feeling we added in support for the VB progressbar control recently, though I may be wrong.

Typically DirectSkin support is handled directly via [email protected] rather than the forums as it is easier to help one on one especially when customers may be working with software they would rather keep confidential.

Reply #2 Top

As an additional note, you would need to call SetVersionExpected (213) before DoWindow to enhance the support for VB controls like that progressbar.