Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 2nd, 2003, 12:17 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default changing colors in standards controls

hi there...

im developing an app that's needs to be pretty (the users are graphics designers, imagine yourself)..
well, i have some problems with frames, grids, and sstab because i cannot change some of their colour to match the rest of the app..

did anyone see around there something to accomplish it??

i was looking for a couple of days, and the only thing i found is how to make hover buttoms (that works perfect) but not the rest..

also they want the menu bar to be in the middle of the screen, I try with a coolbar, because i can use a background with it, but then i have to put a toolbar on it and lost the background.. any work around???

thanks in advance..

Gonzalo Bianchi
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
Reply With Quote
  #2 (permalink)  
Old December 2nd, 2003, 02:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Gonzalo,
VB is not the best tool to make a custom interface. The only way to change the view of standard controls is to subclass them and change their properties via API in the WM_PAINT event. This is why there is a whole pletora of third party components, and also why people spend 30% of their develepment time to design their own user controls.
The only third party component I still use is the ActiveBar (version 1) by DataDynamics because was cheap, light weight and doing a good job for a detachable tool bar controls. In the 2.0 version they added a lot of other components I do not need, and therefore I cannot speak of.
Marco
Reply With Quote
  #3 (permalink)  
Old December 3rd, 2003, 08:15 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

well.. i know is hard to accomplish good look and feel.. but i manage to do some things with some api's and i found a nice button with hover capacity and flat...

but thanks for your answer...

and at least for the moment.. im not subclassing anything...


Gonzalo Bianchi
Reply With Quote
  #4 (permalink)  
Old December 24th, 2003, 06:08 AM
Registered User
 
Join Date: Dec 2003
Location: Pune, Maharashtra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Minal
Default

Hi Gonzalo,

I also want to do the same thing as you. I want to paint my complete SSTab control with some color.
Did you get any clue, how to do that?
If so please let me know.

Thanks,
Minal
Reply With Quote
  #5 (permalink)  
Old August 24th, 2005, 04:59 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Technically the only way is to subclass it.
Tried it too and works, but can loose performance easily.

If you want a quick fix, just lay a label in the ssTab object and do this for every page.
After that change the label to the colour you want.
Basically the same effect and no performance loss.
Reply With Quote
  #6 (permalink)  
Old August 24th, 2005, 05:02 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by zoenie
 Technically the only way is to subclass it.
Tried it too and works, but can loose performance easily.

If you want a quick fix, just lay a label in the ssTab object and do this for every page.
After that change the label to the colour you want.
Basically the same effect and no performance loss.
Oh yeah, don't forget to send the label to the back in the sstab, so other objects will display on top of it!
Reply With Quote
  #7 (permalink)  
Old September 22nd, 2005, 03:11 PM
Registered User
 
Join Date: Sep 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to scancode
Default

well, you can make your interface using BMP's, and 100s of PICTURE controls

Reply With Quote
Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the colors of items in a listbox Thorgal ASP.NET 2.0 Professional 0 June 7th, 2006 02:37 AM
How to bind colors to controls in an formview leverell ASP.NET 2.0 Professional 0 May 31st, 2006 02:00 AM
problems changing colors demdivers VB.NET 2002/2003 Basics 0 September 27th, 2005 08:07 AM
Changing colors of numbers - forumla wise? drarem Excel VBA 1 April 20th, 2004 08:20 AM
Changing colors of numerous disabled controls mariak Pro VB.NET 2002/2003 3 February 26th, 2004 05:18 AM



All times are GMT -4. The time now is 07:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.