Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > Menu - Background and foreground coloring


Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2002, 05:15 PM
Agent Agent is offline
Senior Contributor
 
Join Date: Oct 2001
Location: North Carolina of the U.S.A.
Posts: 1,008
Post Menu - Background and foreground coloring



What is the simplest way to change the color of a
standard menu's foreground (text) and background
color?

Also, does Windows like it when I do this? Does it
require subclassing?
Reply With Quote
  #2  
Old 05-19-2002, 05:17 PM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Owner Drawn menus courtesy of The Hand. And yes, it is subclassing.
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #3  
Old 05-19-2002, 05:33 PM
Agent Agent is offline
Senior Contributor
 
Join Date: Oct 2001
Location: North Carolina of the U.S.A.
Posts: 1,008
Default

I don't see nothing about changing the text color. Is that possible you reckon?
Reply With Quote
  #4  
Old 05-19-2002, 06:24 PM
Aspen2K's Avatar
Aspen2K Aspen2K is offline
Contributor

Retired Leader
* Expert *
 
Join Date: Jan 2001
Location: Ohio
Posts: 717
Default

Try looking in the Private Sub useCustomFonts(aBoolean As Boolean) sub.

Further, you can change this line to another rgb color of your choice.
Code:
gMenuFontColor = RGB(118, 107, 209)
Hth
Aspen2k
__________________
A man is a success if he gets up in the morning and gets to bed at night,
and in between does what he wants to do. - Bob Dylan

Vb code does not go through spell check very well - Me
Reply With Quote
  #5  
Old 05-19-2002, 07:55 PM
Agent Agent is offline
Senior Contributor
 
Join Date: Oct 2001
Location: North Carolina of the U.S.A.
Posts: 1,008
Talking


Dag on it! I didn't know I had the old version. That
is why I didn't see that line. Thanks anyways or
thank you.

Reply With Quote
  #6  
Old 05-19-2002, 08:10 PM
Garrett Sever's Avatar
Garrett Sever Garrett Sever is offline
Strange Brewer

Retired Moderator
* Guru *
 
Join Date: Jun 2001
Location: AddressOf Insomnia
Posts: 2,815
Post

I will post a newer version sometime soon that works with multiple forms, MDI forms, and toolbars.

Its on my list of to-dos as part of the Forum Client articles.
__________________
"The lights below
You know they'll bleed forever
Get back as the cores blow
Let me fall..." - Dismantled, "Cornered"
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->