Re: wxAuiNotebook, changing the close button bitmap?

Tony Kennedy <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Sorry, I should have provided more details. Developing on Windows (but also 
release on the Mac) and variable width tabs. As with most things, it's 
tricky for me to unpick the code I've got so as to provide an example.

I'll have a go at setting the measuring font to be the bold version when a 
tab is selected. But now I know about GetTabSize, that does the job as well.

Thanks again so much for your help. You've got me to the point where it's 
all working well now (and looking great too).

Tony. 



On Thursday, 23 November 2023 at 20:23:18 UTC PB wrote:

> Hi,
>
> regarding the truncated caption for the active tab. You did not provide 
> any information on which platform are you using or what exactly do you do 
> code and flag-wise (e.g., do you use fixed-width tabs), nor provided 
> minimal but complete code showing what you do, similar to one I posted 
> above.
>
> Anyway, the wxAuiTabArt API provides two virtual methods to measure the 
> tab width. The default implementation seems to use the bold variant of the 
> font as the measure font. If the truncated text can be reproduced in the 
> original tabart (I could not) , it is the tabart issue. If it cannot, it is 
> a bug in your code you need to find and fix. I am afraid I cannot be of any 
> further help here.
>
> Regards,
> PB
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/8388c7b8-f805-42e7-8372-fc170f2bfd14n%40googlegroups.com.
EqnEditorjpg.jpg (image/jpeg, 46 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.