Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone adding Theme/Non-Theme logic to control classes
Message
From
04/05/2005 10:10:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Anyone adding Theme/Non-Theme logic to control classes
Miscellaneous
Thread ID:
01010756
Message ID:
01010756
Views:
58
Anyone adding Theme/Non-Theme logic to their base classes - if so what type of properties are you adjusting so that your controls look great in non-themed environments?

For example, one might change the BackColor of certain controls (form, page, button) to match the lighter appearance typical of XP styles, change SpecialEffect properties of buttons, etc. Some ideas to get this thread started following my signature.

Looking forward to hearing what properties you're changing and why.

Thank you,

Malcolm

...

Form (whose main surface is a pageframe)

* darker background to contrast with lighter page backgrounds (below)
.BackColor = rgb( 208,208,208 )

...

Pageframe pages

.BackColor = rgb(250,250,250) && similar to XP themed background

...

Buttons

.BackColor = rgb(240,236,236) (gray) | rgb(228,228,228) (pinkish)
.SpecialEffect = 1 (plain) | 2 (hot tracking)

* add a border
loBorder = .Parent.Addobject( .Name + "Border", "Shape" )
with This
loBorder = .Move( .Left - 1, .Top - 1, .Width + 2, .Height + 2 )
endwith
with loBorder
.BackStyle = 0 && transparent
.BorderColor = rgb(160,160,160)
.Zorder(1)
.Visible = .T.
endwith

...

Textbox

.SpecialEffect = 1 && plain
.BorderColor = rgb(160,160,160)
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Reply
Map
View

Click here to load this message in the networking platform