BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XPTheme

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
JD
Guest





PostPosted: Thu Aug 18, 2005 12:49 am    Post subject: XPTheme Reply with quote




Does any one have some xp theming source that they'd like to
share?

~ JD

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Aug 18, 2005 1:43 am    Post subject: Re: XPTheme Reply with quote




"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





PostPosted: Thu Aug 18, 2005 9:01 am    Post subject: Re: XPTheme Reply with quote




"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote:
Quote:

Please elaborate.

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





PostPosted: Thu Aug 18, 2005 9:16 am    Post subject: Re: XPTheme Reply with quote


"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





PostPosted: Thu Aug 18, 2005 10:08 am    Post subject: Re: XPTheme Reply with quote


"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





PostPosted: Thu Aug 18, 2005 4:46 pm    Post subject: Re: XPTheme Reply with quote


"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





PostPosted: Thu Aug 18, 2005 8:59 pm    Post subject: Re: XPTheme Reply with quote


"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





PostPosted: Thu Aug 18, 2005 10:24 pm    Post subject: Re: XPTheme Reply with quote

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





PostPosted: Fri Aug 19, 2005 1:05 pm    Post subject: Re: XPTheme Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.