Solved

Win2k GUI?

Posted on 2000-04-02
8
170 Views
Last Modified: 2010-05-02
Is it just my eye sight or something. Somebody tell me that Windows 2000 has a different default grey tone that Win98. All of my forms seem to be a different slightly lighter tone of grey than Win98. I have noticed this on my undoubtedly Theme Compliant buttons which have the old Win98 grey, and so all my buttons look ***king crud.

HELP!!!??

thanks
0
Comment
Question by:LeXien
  • 4
  • 4
8 Comments
 
LVL 4

Expert Comment

by:Nazdor
ID: 2677730
The colour of the 'default grey tone' can be defined by each user by setting the '3D Objects' colour in Display Properties / Appearance.

What you need to do is make sure your buttons use colour = "Button Face" (VB6)(colour = H8000000F&)

Then they will change colour depending on the user's preferences (eg, if they choose 'rose' scheme then the buttons will automatically be pink instead of dark gray)

0
 

Author Comment

by:LeXien
ID: 2690953
i tried that, but its my icons in the buttons which are the old colour grey. Can't i make them transparent some how?
0
 
LVL 4

Accepted Solution

by:
Nazdor earned 15 total points
ID: 2692457
Using a bitmap for the image, it's not very easy to set the background as transparant (but I think it's supposed to be possible, something to do with the Mask colour and the first pixel in the picture).

However, if you use a Gif or Icon (.ico) for the image, then they can be designed with transparant backgrounds.

Have a look at Microangelo (www.impactsoft.com) which is a very good icon editor and is easy to set the background as transparent (though there are lots of icon editors about of course).


Otherwise, change your theme colours so they match your buttons! :-)
0
 

Author Comment

by:LeXien
ID: 2696116
mmm,
actually it is quite important for me to use BMP files or the latter - GIF. Because i found that if i use ICO files which contain both a 32x32 and 16x16 pixel image, then on systems which have Large Icons enabled - all of my 16x16 icons are enlarged to 32x32 and so my program looks crud. Thats what made me change to BMP. Looks like im gunna have to change all my images to GIF or PNG.

I'll have ago in the week, ill get back to u soon.

thanks
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 4

Expert Comment

by:Nazdor
ID: 2697337
I had the same problem with ICO files - but if you use an icon editor, you can remove the 32x32 icon and it will always use the 16x16 one.

Have a look at the "Mask" property - I'm sure it must be possible for bitmaps.
0
 

Author Comment

by:LeXien
ID: 2697485
yeah, i can Mask the color of Command Buttons, but i also have Picture Boxes and Image Boxes - they don't support Mask colors. But not to worry, i spent about an hour of boredom yesterday converting all of my BMPs to Transparent GIFs. So now all my icons are in GIF format, with transparencies. This worked great and reduced the size of my application by 250k! Seems to make the forms load faster too.

Thanks for your help Nazdor, ill give you the points for the help. 15 POINTS
0
 

Author Comment

by:LeXien
ID: 2697487
Thanks Nazdor.

For all other people having the same problem, i reckon you should get a decent graphics package such as Adobe Photoshop and use its functionality to convert all of your Grey BMP backgrounds to transparent using the 'Magic Wand' tool and Cut and Paste.

Thanks,
0
 
LVL 4

Expert Comment

by:Nazdor
ID: 2699432
Thanks for the update - glad you've got it working.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now