Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP Styles on Excel Form

Is it possible to have XP Styles on an Excel VBA form? How is this done?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default XP Styles on Excel Form

Hi

I think it is hard to do that.
So far we enable the XP styles by using the manifest file in the unmanaged
code.
That is for the controls in the comctl32.ocx.
Here is KB link for your reference.
INFO: Visual Basic 6.0 Does Not Support Windows XP Themes or Visual Styles
(309366)
http://support.microsoft.com/default...B;EN-US;309366

For excel, if we add the manifest file as above and named it as
Excel.exe.manifest and save it where the excel.exe is located.
If we use the controls from comctl32.ocx,e.g. Microsoft Slider Control,
Microsoft StatusBar control, it will be enable the XP Style.
But as above it is not supported.

In addition, the Control in the default control which will be added onto
the UserForm is not from the comctl32.ocx, it is Office buildin control, so
that did not apply to the scenario.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP Styles on Excel Form


As Peter has indicated, you cannot use XP Styles except if you us
control ocxs/dlls that support this.

I have done this with the progressbar. You need to create this via Wi
API's using the progress control from the comctl32.dll Version 6.0 i
conjunction with the manifest.
As Peter has said the controls supported in this method are Microsof
Slider Control, Microsoft StatusBar control and a few more. For button
I beleive that is possible but requires a lot more work in the API area

--
Ivan F Moal

-----------------------------------------------------------------------
Ivan F Moala's Profile: http://www.excelforum.com/member.php...nfo&userid=195
View this thread: http://www.excelforum.com/showthread.php?threadid=38027

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
some unknown Cell styles are shown in cell styles Vaibhav Dhawade Excel Worksheet Functions 0 March 6th 10 05:11 AM
Office 2007 Styles create issue with "Too many different cell form RyanAtWork Excel Discussion (Misc queries) 1 December 17th 09 03:48 AM
Excel Cell Styles - Quick Styles? Dean@DCF Excel Discussion (Misc queries) 0 November 15th 07 10:40 PM
Styles in Excel MLoftusNYC Excel Discussion (Misc queries) 1 October 5th 05 08:27 AM
XP Styles in Excel Form bjoeylouie[_7_] Excel Programming 0 June 13th 05 11:52 PM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"