[wx-dev] Re: CanApplyThemeBorder()
Julian Smart
julian at anthemion.co.uk
Wed Jan 2 06:35:43 PST 2008
Vadim Zeitlin wrote:
> On Wed, 02 Jan 2008 14:11:20 +0000 Julian Smart <julian at anthemion.co.uk> wrote:
>
> JS> > and, especially, if it works with
> JS> > wxBORDER_SUNKEN &c why shouldn't it work with wxBORDER_THEME?
> JS> Sure, why not. I don't suppose it'll be much extra work.
>
> I hope not. And the consistency is important [enough to do it].
>
> JS> > And another point that still remains: it must be enough to override
> JS> > GetDefaultBorder() to return false to have no border (by default) for the
> JS> > window. It is wrong that you currently need to also override
> JS> > CanApplyThemeBorder() to achieve this goal and this must be corrected.
> JS> You don't. I don't know why you think that's case.
>
> Because Robert wrote that he couldn't get rid of the border without doing
> this. I'm awfully sorry if I misunderstood him but I thought this whole
> thread started because Robert couldn't find how to remove the themed border
> even when not using wxBORDER_THEME. Sorry again if I misunderstood it.
>
Sorry, I confused things! I'm not sure why I suggested overriding that
function now :-( I think I thought the control already drew its own
border so didn't need the extra one. Anyway it should certainly be
possible to use wxBORDER_NONE or wxBORDER_DEFAULT along with
GetDefaultBorder returning wxBORDER_NONE. Apologies!
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