View previous topic :: View next topic |
Author |
Message |
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sun Jan 29, 2006 5:31 pm Post subject: Button and Tab Colors? |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Sun Jan 29, 2006 6:49 pm Post subject: |
|
|
You can use VDSGUI.dll from Codescript. It's available for dl on vdsworld.com. Works great btw!
and the Advanced Tab Control DSU for tabs _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon Jan 30, 2006 5:19 am Post subject: |
|
|
I've tried VDSGUI but DYNACOLOR seems to have no effect on tabs.
Thanks anyway... |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jan 30, 2006 4:54 pm Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Mon Jan 30, 2006 5:02 pm Post subject: |
|
|
Hey Codescript...
Ever got my PM from last year about the TAB DSU you did? |
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon Jan 30, 2006 6:33 pm Post subject: |
|
|
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 |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jan 31, 2006 5:16 pm Post subject: |
|
|
I don't think any app can use XP theme when the Theme services are disabled globally... _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1563
|
Posted: Wed Feb 01, 2006 1:47 am Post subject: |
|
|
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 |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Feb 01, 2006 10:52 pm Post subject: |
|
|
What controls in VDS are owner drawn and which are not?
Is the Table element or Button element owner drawn? |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1563
|
Posted: Thu Feb 02, 2006 5:13 am Post subject: |
|
|
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 |
|
|
filip Valued Contributor
Joined: 07 Aug 2004 Posts: 340
|
|
Back to top |
|
|
|