|
-
Mar 6th, 2003, 11:39 PM
#1
Thread Starter
Frenzied Member
Windows XP Look
heres how to have the current xp theme apply to your prog
1) put this in the code for prog:
VB Code:
Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long 'this file needs to be on the comp
Private Sub Form_Initialize()
InitCommonControls
End Sub
2) make a txt file w/ this is it
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name=" "
type="win32"
/>
<description></description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
3) use Resource Hacker to open your compiled prog then click action, add new recource
4) add the text file then enter 24,1,1301 for the 3 values then click add
5) click file,save and youre done!!
PS this works w/ all progs, c++ too.. if u do it to vb6.exe your progs will have the xp look while youre making them!
-
Mar 8th, 2003, 01:56 AM
#2
Fanatic Member
You'll need XP to see if it has the xp look.
A.A. Fussy
Babya Software Group
-
Mar 8th, 2003, 08:46 AM
#3
Member
it don't seem to work
hi
i just read what u posted about XP style, but it don't seem to work for me i follow the instruction to the letter but when i click on ADD NEW RESOURCE and add the TXT file i created, it still remains DISABLED (ADD RESOURCE) button.
thanx alistair
-
Mar 8th, 2003, 01:34 PM
#4
Thread Starter
Frenzied Member
the button will be disabled until u enter the values for type, name and language (24, 1, 1031)
-
Mar 10th, 2003, 11:48 AM
#5
-
Mar 10th, 2003, 01:56 PM
#6
Thread Starter
Frenzied Member
i think most people's preference is to have just the prog instead of including the xtra file
-
Mar 11th, 2003, 01:03 AM
#7
Conquistador
Well if they don't have xp, there's no point to this code is there ;o
No other OS's use manifest files, correct?
-
Mar 11th, 2003, 01:15 AM
#8
Thread Starter
Frenzied Member
correct, the manifest is xml which is xp and up
-
Mar 11th, 2003, 01:44 AM
#9
Conquistador
And up?
What's up from XP?
-
Mar 11th, 2003, 04:40 AM
#10
New Member
firstly, longhorn is to use xml.
secondly, the file should be named PROGRAMNAME.exe.manifest if you are to do it using that method.
-
Mar 11th, 2003, 01:53 PM
#11
Thread Starter
Frenzied Member
dun forget windows server 2003, due w/in a month
-
Mar 11th, 2003, 10:36 PM
#12
Junior Member
Cool
How would you use the VB6 resource editor to include that file, and also make it use it, so u don't have to use resource hacker. Also when you put option buttons in a frame, it will go black and you need to put a picturebox or something behind the options, with no borderstyle. You also don't need the code in the prog, it works fine without.
Last edited by Dumsum; Mar 11th, 2003 at 10:39 PM.
-
Mar 18th, 2003, 11:36 AM
#13
Addicted Member
Huh?
Hi,
I can't help but ask this question(I've seen this kind of code before but it doesn't work). I got a win98 os , does this mean I can't use this?
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Mar 18th, 2003, 02:16 PM
#14
Thread Starter
Frenzied Member
if u followed my instructions your prog would in fact run in windows 98.. w/ this code the prog takes on whatever Appearance settings you have applied, so unless the rest of your windows looks like xp the prog will not
-
Mar 20th, 2003, 07:52 PM
#15
Lively Member
Originally posted by da_silvy
What's up from XP?
Windows .NET Server, presumably renamed to Windows 2003 server.
But I think he meant, any version of windows that's XP or above. As in, future versions should work as long as they follow windows' trend of being backwards compatible.
"It's difficult to imagine a world in which people voluntarily choose to listen to liberals. There is no evidence that it has ever happened. " - Ann Coulter
-
Mar 24th, 2003, 04:05 AM
#16
Thread Starter
Frenzied Member
Re: Cool
Originally posted by Dumsum
How would you use the VB6 resource editor to include that file, and also make it use it, so u don't have to use resource hacker. Also when you put option buttons in a frame, it will go black and you need to put a picturebox or something behind the options, with no borderstyle. You also don't need the code in the prog, it works fine without.
u can do that in c++, but for vb u have to use resource hacker to include the file
you dont need the code if your prog uses comctl32.dll in some other way.. if it doesnt your prog will not open after being injected w/ the txt file
-
Mar 24th, 2003, 11:44 AM
#17
Addicted Member
I don't think you got me...
Hi,
I'm a little bit confused by what you said, that your program will only look like xp if you have xp. I got a win98, i installed this program called Download Accelerator Plus and it had an xp look.
How do you explain that?
[vbcode]
If SymptomsPersist Then Goto VBForum
[/vbcode]
This is our world now...the world of the electron and the switch, the beauty of the baud.We make use of a service already existing without paying for what could be dirt cheep if it wasn't run by profiteering gluttons, and you call us criminals. We explore...and you call us criminals. We exist without skin color, without nationality, without religious bias...and you call us criminals. You build atomic bombs, wage wars, murder, cheat, and lie to us and try to make us believe it is for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for. I am a hacker and this is my manifesto.You may stop this individual, but you can't stop us all...after all, we're all alike."
+++The Mentor+++
-
Mar 24th, 2003, 12:10 PM
#18
Thread Starter
Frenzied Member
your program [using this method] will only look like xp if you have xp
the prog u refer to looks like it has an xp theme while running on 98 b/c they included all the images for it to do so
-
Mar 24th, 2003, 06:32 PM
#19
Junior Member
Re: Re: Cool
Originally posted by dis1411
u can do that in c++, but for vb u have to use resource hacker to include the file
you dont need the code if your prog uses comctl32.dll in some other way.. if it doesnt your prog will not open after being injected w/ the txt file
Why is that? What is the resource editor used for?
-
Mar 25th, 2003, 06:08 AM
#20
Retired VBF Adm1nistrator
I've tried using the WindowsXP look in my apps using this method, and it just crashes my apps for some reason...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 26th, 2003, 12:47 AM
#21
Thread Starter
Frenzied Member
Originally posted by plenderj
I've tried using the WindowsXP look in my apps using this method, and it just crashes my apps for some reason...
does the app ever open at all?
-
Mar 26th, 2003, 03:48 AM
#22
Retired VBF Adm1nistrator
No when I double click to open it, Windows then says its not a valid win32 application.
When I use FileMon to check what's going on, Windows looks at the manifest file, but then crashes straight after...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 26th, 2003, 08:36 AM
#23
Thread Starter
Frenzied Member
i have seen this before.. u somehow did not do a step correctly. im not sure exactly which it is but the answer is in the first post
-
Mar 26th, 2003, 08:42 AM
#24
Retired VBF Adm1nistrator
Ok I'll try with a new project and let you know how I get on.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 26th, 2003, 08:49 AM
#25
Retired VBF Adm1nistrator
Does nothing now
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 26th, 2003, 01:23 PM
#26
Thread Starter
Frenzied Member
-
Mar 26th, 2003, 06:49 PM
#27
Junior Member
I think Microsoft (or someone) should just make new controls for everything that is affected by WinXP styles.
-
Mar 27th, 2003, 08:59 PM
#28
The picture isn't missing
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Dec 10th, 2003, 02:45 AM
#29
Member
How about Progress Bars?
All of this looks great for my app's purposes. The original popst by dis1411 works great!!! There are two small problems though.
In VB 6 you can't change the color of buttons.
AND
It does nothing for the standard Progress Bar
I am hoping the links submitted by BuggyProgrammer will give me the solution to the color of buttons, but is there a way to get the style of a progress bar to change?
Alan
-
Dec 10th, 2003, 05:00 AM
#30
Retired VBF Adm1nistrator
Re: How about Progress Bars?
Originally posted by aliddle
In VB 6 you can't change the color of buttons.
Create an option button. Set its style to 1 - Graphical. Change the forecolor
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Dec 10th, 2003, 02:24 PM
#31
Thread Starter
Frenzied Member
try using the progress bar from Windows Common Controls 5.0 (SP2)
-
Dec 10th, 2003, 06:44 PM
#32
Member
Problem with Buttons in Graphic Mode
I have change a few command buttons to graphic mode, but when I do they no longer look like XP buttons.
-
Dec 10th, 2003, 10:48 PM
#33
Thread Starter
Frenzied Member
yup, i thought u were talking about command buttons.. anyway the only thing you can do is change the color of the outline of the button (with style set to 0)
-
Dec 11th, 2003, 01:48 AM
#34
Member
Problem with Option Boxes
I have now discovered that Option Boxes don't work with the XP Look. The are totally black! Any suggestions?
-
Dec 11th, 2003, 02:18 AM
#35
Thread Starter
Frenzied Member
this is because u have the option button in a frame.. put the option button onto the form or put it into a picture box and put the picture box into the frame
-
Dec 11th, 2003, 02:30 AM
#36
Member
Works a Treat
That works a treat thanks
-
Dec 13th, 2003, 07:18 AM
#37
Supreme User
Um if this code only works on XP OS's, then why bother? XP already has the XP look
Besides there are many decent examples with CONTROLS to make any OS have a XP theme.
-
Dec 13th, 2003, 07:33 AM
#38
To correct that, Visual Basic apps on XP DO NOT have XP look. And I guess by any OS you meant any Windows?
-
Dec 14th, 2003, 03:37 AM
#39
Thread Starter
Frenzied Member
Originally posted by Madboy
Um if this code only works on XP OS's, then why bother? XP already has the XP look
Besides there are many decent examples with CONTROLS to make any OS have a XP theme.
sigh.. what Merri said
im not even attempting to provide an XP look for all OSes, so there's no need to tell me that it only works under XP
my opinion is if people want the XP look they should upgrade to XP.. and im not going to weigh my program down with bitmaps, controls etc
-
Dec 19th, 2003, 04:20 PM
#40
Supreme User
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|