[wx-dev] Re: CanApplyThemeBorder()

Julian Smart julian at anthemion.co.uk
Wed Jan 2 06:11:20 PST 2008


Vadim Zeitlin wrote:
>  To be honest, I care much more about the API consistency than about full
> support of all possible border styles. IOW I'd personally settle for just
> one style indicating whether the border is wanted or not. But other people
> may have different opinions
Last time we had this debate opinion was divided. But I, and some 
others, would prefer sunken borders to still be an option where possible.
>  and, especially, if it works with
> wxBORDER_SUNKEN &c why shouldn't it work with wxBORDER_THEME?
Sure, why not. I don't suppose it'll be much extra work.
>  Besides it
> should make the code simpler AFAICS because it would remove the special
> handling of wxBORDER_THEME we have now.
>   
Sorry, not sure what special processing you're referring to.

>  And another point that still remains: it must be enough to override
> GetDefaultBorder() to return false to have no border (by default) for the
> window. It is wrong that you currently need to also override
> CanApplyThemeBorder() to achieve this goal and this must be corrected.
You don't. I don't know why you think that's case. This only tells wxMSW 
whether it already paints the themed border itself or not. I must be 
missing something...

Regards,

Julian

-- 
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD:     www.anthemion.co.uk/dialogblocks




More information about the wx-dev mailing list