| View previous topic :: View next topic |
| Author |
Message |
JD Guest
|
Posted: Thu Aug 18, 2005 12:49 am Post subject: XPTheme |
|
|
Does any one have some xp theming source that they'd like to
share?
~ JD
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Aug 18, 2005 1:43 am Post subject: Re: XPTheme |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote
| Quote: | Does any one have some xp theming source that
they'd like to share?
|
Please elaborate.
Gambit
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Aug 18, 2005 9:01 am Post subject: Re: XPTheme |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote:
I want to add Theming to a TStringGrid and TInplaceEdit
decendent where the grid draws it's headers themed and
the edit draws a themed ellipse, drop down and up/down
glyph.
I know that I need to check if XP and if theming is enabled
but haven't found any examples of anything to get me started.
~ JD
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Aug 18, 2005 9:16 am Post subject: Re: XPTheme |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote
| Quote: | I want to add Theming to a TStringGrid and TInplaceEdit
decendent where the grid draws it's headers themed and
the edit draws a themed ellipse, drop down and up/down
glyph.
|
Good luck. That would require essentially re-writing all of the
TStringGrid's drawing code from scratch. And believe me, TStringGrid has a
lot of custom drawing going on.
| Quote: | I know that I need to check if XP and if theming is enabled
but haven't found any examples of anything to get me started.
|
Then you aren't looking very hard. There is a whole chapter in MSDN that
shows how drawing code is supposed to take themes into account.
Using Windows XP Visual Styles
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/userex/cookbook.asp
Look at the "Using Visual Styles with a Custom Control" section.
Gambit
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Aug 18, 2005 10:08 am Post subject: Re: XPTheme |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote:
| Quote: |
Good luck. That would require essentially re-writing all of
the TStringGrid's drawing code from scratch. And believe me,
TStringGrid has a lot of custom drawing going on.
|
I'm really only concerned with the grid's fixed cells and
can't I handle that in it's DrawCell method?
As for the TInplaceEdit, I'm already drawing the glyphs using
DrawFrameControl so wouldn't that be more easily accomplished?
| Quote: | Then you aren't looking very hard. [...]
|
I hadn't seen this before but it would have been nice if
someone else had already digested it for me <g>.
~ JD
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Aug 18, 2005 4:46 pm Post subject: Re: XPTheme |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote
| Quote: | it would have been nice if someone else had already digested it for me
g>. |
Why? You don't learn anything that way.
Gambit
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Aug 18, 2005 8:59 pm Post subject: Re: XPTheme |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote:
| Quote: |
Why? You don't learn anything that way.
|
LOL. C'omoooooon! I don't need to know how to build a car to
drive one ;-)
I know you have what I want ... cough it up.
<stroke>
Besides, I'd learn alot more from your examples!
</stroke>
~ JD
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Thu Aug 18, 2005 10:24 pm Post subject: Re: XPTheme |
|
|
So you want people to read it to you?
Don't hold your breath.
.. Ed
| Quote: | JD wrote in message
news:4304f6cf$1 (AT) newsgroups (DOT) borland.com...
LOL. C'omoooooon! I don't need to know how to build a car to
drive one ;-)
I know you have what I want ... cough it up.
stroke
Besides, I'd learn alot more from your examples!
/stroke
|
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Fri Aug 19, 2005 1:05 pm Post subject: Re: XPTheme |
|
|
"Ed Mulroy" <dont_email_me (AT) bitbuc (DOT) ket> wrote:
| Quote: |
So you want people to read it to you?
|
All joking aside, I *never* ask for source and *always* share
mine (nonpropriatary). It's just that I have way too many
priorities that need to be accomplished and need a little help
to expidite.
| Quote: | Don't hold your breath.
|
If you cancel your post (and this one) maybe Gambit will
pretend that he hasn't seen them and take pitty on me <g>.
~ JD
|
|
| Back to top |
|
 |
|