Page 1 of 2 12 LastLast
Results 1 to 40 of 46

Thread: Windows XP Look

  1. #1

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048

    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:
    1. Private Declare Function InitCommonControls Lib "comctl32.dll" () As Long    'this file needs to be on the comp
    2.  
    3. Private Sub Form_Initialize()
    4.     InitCommonControls
    5. 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!

  2. #2
    Fanatic Member
    Join Date
    Jul 2002
    Location
    Australia
    Posts
    635
    You'll need XP to see if it has the xp look.
    A.A. Fussy
    Babya Software Group

  3. #3
    Member alistair4267's Avatar
    Join Date
    Jul 2001
    Posts
    45

    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

  4. #4

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    the button will be disabled until u enter the values for type, name and language (24, 1, 1031)

  5. #5
    Lively Member da_haCKEr's Avatar
    Join Date
    Oct 2002
    Location
    Paradise Isle of Sri Lanka
    Posts
    116

    Talking Manifest ?

    Er..., I don't think you need Resource Hacker just to make ur program have the XP look. The text file should be saved as XXX.manifest. (Sorry about the XXX part, I can't remember what it should be. Maybe it's the name of the app :} . I'll look it up and tell you guys) in the program directory containing the exe.
    .:JanuZ:.
    .:JanuZ:.XtremeSoft


  6. #6

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    i think most people's preference is to have just the prog instead of including the xtra file

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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?

  8. #8

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    correct, the manifest is xml which is xp and up

  9. #9
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    And up?

    What's up from XP?

  10. #10
    New Member DeMoNiCoN's Avatar
    Join Date
    Dec 2002
    Location
    Digital Hell
    Posts
    12
    firstly, longhorn is to use xml.

    secondly, the file should be named PROGRAMNAME.exe.manifest if you are to do it using that method.
    -DeMoNiCoN-
    [Master Of LOG!CAL WARFARE]
    MSN: [email protected]
    ICQ: 177070929

  11. #11

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    dun forget windows server 2003, due w/in a month

  12. #12
    Junior Member
    Join Date
    Oct 2001
    Posts
    21

    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.

  13. #13
    Addicted Member ripple214's Avatar
    Join Date
    Nov 2002
    Location
    In Front of My Computer
    Posts
    141

    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+++

  14. #14

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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

  15. #15
    Lively Member Daschle's Avatar
    Join Date
    Oct 2002
    Location
    Sunnyvale, CA
    Posts
    114
    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

  16. #16

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048

    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

  17. #17
    Addicted Member ripple214's Avatar
    Join Date
    Nov 2002
    Location
    In Front of My Computer
    Posts
    141

    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+++

  18. #18

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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

  19. #19
    Junior Member
    Join Date
    Oct 2001
    Posts
    21

    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?

  20. #20
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  21. #21

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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?

  22. #22
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  23. #23

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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

  24. #24
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Ok I'll try with a new project and let you know how I get on.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  25. #25
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Does nothing now
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  26. #26

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    send it this way

  27. #27
    Junior Member
    Join Date
    Oct 2001
    Posts
    21
    I think Microsoft (or someone) should just make new controls for everything that is affected by WinXP styles.

  28. #28
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    if you want xp style in non-xp oses, then go here: http://www.planetsourcecode.com/vb/s...28804&lngWId=1

    also look at this:

    http://www.planetsourcecode.com/vb/s...27673&lngWId=1
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  29. #29
    Member
    Join Date
    Aug 2002
    Location
    Brisbane, Australia
    Posts
    34

    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

  30. #30
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    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]

  31. #31

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    try using the progress bar from Windows Common Controls 5.0 (SP2)

  32. #32
    Member
    Join Date
    Aug 2002
    Location
    Brisbane, Australia
    Posts
    34

    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.

  33. #33

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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)

  34. #34
    Member
    Join Date
    Aug 2002
    Location
    Brisbane, Australia
    Posts
    34

    Problem with Option Boxes

    I have now discovered that Option Boxes don't work with the XP Look. The are totally black! Any suggestions?


  35. #35

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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

  36. #36
    Member
    Join Date
    Aug 2002
    Location
    Brisbane, Australia
    Posts
    34

    Works a Treat

    That works a treat thanks

  37. #37
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    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.

  38. #38
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    To correct that, Visual Basic apps on XP DO NOT have XP look. And I guess by any OS you meant any Windows?

  39. #39

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048
    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

  40. #40
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Fair enough

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width