Solved

Win2k GUI?

Posted on 2000-04-02
8
171 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 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

11 Experts available now in Live!

Get 1:1 Help Now