forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Button and Tab Colors?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up
View previous topic :: View next topic  
Author Message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sun Jan 29, 2006 5:31 pm    Post subject: Button and Tab Colors? Reply with quote

Has anyone figured out how to change the colors of standard buttons and tabs possibly with API or otherwise?

Currently, my most important question is concerning the TAB element. How can I make the tabs of the tab element change color as the rest of the element can? It seems strange that the you can change the color of the main part of the tab element but not the tab itself.
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1731
Location: Space and Time

PostPosted: Sun Jan 29, 2006 6:49 pm    Post subject: Reply with quote

You can use VDSGUI.dll from Codescript. It's available for dl on vdsworld.com. Works great btw! Smile

and the Advanced Tab Control DSU for tabs

_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Jan 30, 2006 5:19 am    Post subject: Reply with quote

I've tried VDSGUI but DYNACOLOR seems to have no effect on tabs.

Thanks anyway...
Back to top
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Mon Jan 30, 2006 4:54 pm    Post subject: Reply with quote

Neither Advanced Tab DSU nor the DYNACOLOR function of VDSGUI implements custom coloring of tabs(ownerdrawn tabs) due to some obstacles caused by msg handling by the VDS Dialog. However it is possible if one provides a custom tab control in the dll itself but I am busy to do such a thing now.
As an alternative U can simulate Tab control in VDS itself using images if U don't have too many tabs in Ur dialog. I think Pgware implemented one such before VDS had a tab element built into it.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Mon Jan 30, 2006 5:02 pm    Post subject: Reply with quote

Hey Codescript...

Ever got my PM from last year about the TAB DSU you did?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon Jan 30, 2006 6:33 pm    Post subject: Reply with quote

Codescript,

I noticed in your Advanced Tab DSU that you used API to turn off the XP theme on the tab control. How hard would it be to turn on XP Themes for a dialog where the user has XP but the global theme is set to Windows Classic?

I like the way my app looks with an XP theme but I can't tell the end users to use the XP theme just for my app.
Back to top
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Tue Jan 31, 2006 5:16 pm    Post subject: Reply with quote

I don't think any app can use XP theme when the Theme services are disabled globally...
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1541

PostPosted: Wed Feb 01, 2006 1:47 am    Post subject: Reply with quote

CodeScript is right, once you switch themes in XP you are bound to the new theme for your application; provided you are not overriding controls/windows with your own owner-drawn controls. Where you would be simulating the design of objects, and handling the repainting, painting and input of data within the control - basically doing everything that Windows does automatically with most controls such as editboxes, buttons etc.
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Feb 01, 2006 10:52 pm    Post subject: Reply with quote

What controls in VDS are owner drawn and which are not?

Is the Table element or Button element owner drawn?
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1541

PostPosted: Thu Feb 02, 2006 5:13 am    Post subject: Reply with quote

Owner-drawn simply means you override the automated drawing/handling of the control away from Windows; allowing you to control how the control looks and acts.

To my knowledge it's very difficult to do this with VDS controls.
Back to top
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Thu Feb 02, 2006 8:05 am    Post subject: Reply with quote

Just a suggestion...

You can try a eComStation demo cd it runs fast from cd...

http://www.ecomstation.com/democd/
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group