Results 1 to 10 of 10

Thread: *Xp style command buttons w/ out XP Manifest*

  1. #1

    Thread Starter
    Addicted Member DKasler's Avatar
    Join Date
    Jan 2005
    Location
    Brooklyn, NYC
    Posts
    177

    *Xp style command buttons w/ out XP Manifest*

    Hey all,

    I made up some XP style button images to use as a replacement for the command buttons on OS other than winXP (or for people who dont want to use the XP Manifest).

    So, hope ya like'em =)
    Attached Images Attached Images    
    -----MY SITES-----
    BayRidgeNights.Com - NYC Nightlife Forums

    Fight Communism - Rate Posts!

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: *Xp style command buttons w/ out XP Manifest*

    Or you can some code like attached here.
    It's code for an XP Button. It can take many styles...and loads of customisation too. I am still working on some image code so it's not 100% complete yet.

    I got the code from planet source code and have modified it considerably...can't remember the link though

    Woka
    Attached Files Attached Files

  3. #3

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: *Xp style command buttons w/ out XP Manifest*

    I thought you wrote the whole thing. Boooo Bad Woka *Slap*

    I see you got the sourcesafe file removed.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: *Xp style command buttons w/ out XP Manifest*

    No no I cheated a little on this one. However, I could write one from scratch if I wanted, but it's more fun moulding someones code into a better version of your own up to a point where the code doesn't resemble anything that the original author has, complete rewrite essentially. The thread is posted in another thread about XP buttons...hang on...

    Here:

    http://www.vbforums.com/showthread.p...woka+xp+button

    Look at the planet source code link. Download the code and look at it.
    I have stripped out loads of code, well over 4/5 ths of it, and am improving the rest of it as I go along.
    Added many more properties now and cleaned up a lot more code.

    It doesn't do all the other button styles that the original code does...but it's much better code for just an XP button. It still requires a lot of work, but it's fully functional so why not use it. I need to add the DisabledPicture property sicne when the button rendered the icon for disabled mode it looks pants, so I have to replace this with a picture or figure out some better runtime code to convert the image to be disabled.

    Woof

  6. #6
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: *Xp style command buttons w/ out XP Manifest*

    I created one from scratch that supports the 3 main XP color themes, XP Blue, XP Silver, and XP Olive, also supports icons/images.

    I made it along time ago when I was still pretty new to VB but it's all owner-drawn using code.

    The mouse-over is handled with a timer, I still need to update it so it uses subclassing for mouse hovering, but if you want it let me know and I'll attach it here.

  7. #7

  8. #8
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: *Xp style command buttons w/ out XP Manifest*

    Quote Originally Posted by Wokawidget
    Yea...post your code

    Woka
    Ok, here it is.
    Attached Files Attached Files

  9. #9
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: *Xp style command buttons w/ out XP Manifest*

    Making the color scheme dynamic so the user can set it to any colors is easier than hard coding 3 different styles...plus it adds more functionality to your app.
    Nice coding though. good work.

    Take a peek at the code I posted, maybe you could ad some of the functionality from the code into your app.

    Woof

  10. #10
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: *Xp style command buttons w/ out XP Manifest*

    I agree, hard-coding the theme's colors was a bad idea...

    I've been working on a new one just haven't gotten around to finishing it yet. I made that one along time ago and kind of forgot about it...

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